mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
Java: fix error message (IDEA-364189)
(cherry picked from commit 6ddc29ca9af9523ac8597bc00b920b872a4250b6) GitOrigin-RevId: 4ae3e61c614cde608f4593ec7fa758b2ed6c1a5d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
dfd169a1dc
commit
8e0d1b142f
@@ -163,7 +163,7 @@ missing.return.type=Invalid method declaration; return type required
|
||||
duplicate.method=''{0}'' is already defined in ''{1}''
|
||||
constructor.call.must.be.first.statement=Call to ''{0}'' must be first statement in constructor body
|
||||
constructor.call.only.allowed.in.constructor=Call to ''{0}'' only allowed in constructor body
|
||||
constructor.call.must.be.top.level.statement=Call to ''{0}'' must be a top level statement in constructor body
|
||||
constructor.call.must.be.top.level.statement=Call to ''{0}'' must be top-level statement in constructor body
|
||||
only.one.constructor.call.allowed.in.constructor=Only one explicit constructor call allowed in constructor
|
||||
direct.abstract.method.access=Abstract method ''{0}'' cannot be accessed directly
|
||||
unrelated.overriding.methods.return.types=methods have unrelated return types
|
||||
|
||||
@@ -20,14 +20,14 @@ class b extends a {
|
||||
|
||||
b(String s) {
|
||||
try {
|
||||
<error descr="Call to 'super()' must be a top level statement in constructor body">super(2)</error>;
|
||||
<error descr="Call to 'super()' must be top-level statement in constructor body">super(2)</error>;
|
||||
}
|
||||
finally {
|
||||
}
|
||||
}
|
||||
b(String s, int i) {
|
||||
{
|
||||
<error descr="Call to 'super()' must be a top level statement in constructor body">super(2)</error>;
|
||||
<error descr="Call to 'super()' must be top-level statement in constructor body">super(2)</error>;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ class b extends a {
|
||||
}
|
||||
class Z {
|
||||
Z() {
|
||||
Object x = <error descr="Call to 'super()' must be a top level statement in constructor body">super()</error>;
|
||||
Object x = <error descr="Call to 'super()' must be top-level statement in constructor body">super()</error>;
|
||||
}
|
||||
}
|
||||
class O extends A.B
|
||||
|
||||
@@ -31,14 +31,14 @@ class B extends A {
|
||||
|
||||
B(String s) {
|
||||
try {
|
||||
<error descr="Call to 'super()' must be a top level statement in constructor body">super(2)</error>;
|
||||
<error descr="Call to 'super()' must be top-level statement in constructor body">super(2)</error>;
|
||||
}
|
||||
finally {
|
||||
}
|
||||
}
|
||||
B(String s, int i) {
|
||||
{
|
||||
<error descr="Call to 'super()' must be a top level statement in constructor body">super(2)</error>;
|
||||
<error descr="Call to 'super()' must be top-level statement in constructor body">super(2)</error>;
|
||||
}
|
||||
}
|
||||
B(boolean b, int i) {
|
||||
|
||||
@@ -28,14 +28,14 @@ class B extends A {
|
||||
|
||||
B(String s) {
|
||||
try {
|
||||
<error descr="Call to 'super()' must be a top level statement in constructor body">super(2)</error>;
|
||||
<error descr="Call to 'super()' must be top-level statement in constructor body">super(2)</error>;
|
||||
}
|
||||
finally {
|
||||
}
|
||||
}
|
||||
B(String s, int i) {
|
||||
{
|
||||
<error descr="Call to 'super()' must be a top level statement in constructor body">super(2)</error>;
|
||||
<error descr="Call to 'super()' must be top-level statement in constructor body">super(2)</error>;
|
||||
}
|
||||
}
|
||||
B(boolean b, int i) {
|
||||
|
||||
Reference in New Issue
Block a user