mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-17 20:11:25 +07:00
[Java. Inspections] Add tests for not showing popup for add exception to method signature
IDEA-358300 GitOrigin-RevId: a7b8c716d772ae5ca631037ebb923bb796946af9
This commit is contained in:
committed by
intellij-monorepo-bot
parent
770a11d8ba
commit
940f66f53d
@@ -0,0 +1,14 @@
|
||||
// "Add 'throws UnsupportedOperationException' to method signature" "true-preview"
|
||||
class A {
|
||||
@Override
|
||||
public String toString() {
|
||||
return super.toString();
|
||||
}
|
||||
|
||||
static class B extends A {
|
||||
@Override
|
||||
public String toString() throws UnsupportedOperationException {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
// "Add 'throws UnsupportedOperationException' to method signature" "true-preview"
|
||||
class A {
|
||||
@Override
|
||||
public String toString() {
|
||||
return super.toString();
|
||||
}
|
||||
|
||||
static class B extends A {
|
||||
@Override
|
||||
public String toString() {
|
||||
throw new Unsupport<caret>edOperationException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user