[java] (IDEA-227433) remove doc comment when Use existing implementation of method fix is applied + test added

GitOrigin-RevId: 742a0995a87056cfd71ae61c02fa280a02ea18d8
This commit is contained in:
Olga Klisho
2022-04-11 15:21:05 +03:00
committed by intellij-monorepo-bot
parent 68e83ee982
commit 42615cdffd
2 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
// "Use existing implementation of 'm'" "true"
interface SampleInterface {
/**
* Specified in the interface
*/
public void m();
}
class Test3 implements SampleInterface {
public void m() {
System.out.println("Test1 implementation");
}
}
class Test1 implements SampleInterface {
/**
* Test1 implementation
*/
@Override
public void m() {
System.out.println("Test1 implementation");
}
}

View File

@@ -0,0 +1,20 @@
// "Use existing implementation of 'm'" "true"
interface SampleInterface {
/**
* Specified in the interface
*/
public void m<caret>();
}
class Test3 implements SampleInterface {
}
class Test1 implements SampleInterface {
/**
* Test1 implementation
*/
@Override
public void m() {
System.out.println("Test1 implementation");
}
}