[java-intentions] DefineParamsDefaultValueAction: do not copy @Override annotation

GitOrigin-RevId: ca02de483aeeab6e7a516a839edda6cae1515195
This commit is contained in:
Tagir Valeev
2024-04-25 11:54:58 +02:00
committed by intellij-monorepo-bot
parent 15eef62c4e
commit 514e918516
3 changed files with 31 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
// "Generate overloaded method with default parameter values" "true"
class Test {
void method(int x, int y) {}
static class SubTest extends Test {
void method() {
method(0, 0);
}
@Override
void method(int x, int y) {}
}
}

View File

@@ -0,0 +1,9 @@
// "Generate overloaded method with default parameter values" "true"
class Test {
void method(int x, int y) {}
static class SubTest extends Test {
@Override
void meth<caret>od(int x, int y) {}
}
}