[java-highlighting] JavaCompilationErrorBundle.properties proofreading (DOC-34381)

GitOrigin-RevId: 05bdca159a63027ea0d1e3d767d4adb9b258f47e
This commit is contained in:
Tagir Valeev
2025-02-13 14:28:26 +01:00
committed by intellij-monorepo-bot
parent 4408629488
commit 2350d69472
58 changed files with 157 additions and 157 deletions

View File

@@ -15,7 +15,7 @@ interface IQ {
}
<error descr="'f()' in 'WW' clashes with 'f()' in 'IQ'; attempting to use incompatible return type">class WWW extends WW implements IQ</error> {
<error descr="'f()' in 'WW' clashes with 'f()' in 'IQ'; incompatible return type">class WWW extends WW implements IQ</error> {
}

View File

@@ -105,7 +105,7 @@ enum TestEnum
{
A(<error descr="Cannot refer to enum constant 'B' before its definition">B</error>), B(A);
TestEnum(TestEnum other) {
<error descr="Call to super is not allowed in enum constructor">super(null, 0)</error>;
<error descr="Call to 'super' is not allowed in enum constructor">super(null, 0)</error>;
}
}

View File

@@ -4,5 +4,5 @@ interface I{
abstract class A {
abstract int foo();
abstract <<error descr="'foo()' in 'A' clashes with 'foo()' in 'I'; attempting to use incompatible return type"></error><error descr="'foo()' in 'A' clashes with 'foo()' in 'I'; attempting to use incompatible return type"></error>T extends A & I> void bar(T x);
abstract <<error descr="'foo()' in 'A' clashes with 'foo()' in 'I'; incompatible return type"></error><error descr="'foo()' in 'A' clashes with 'foo()' in 'I'; incompatible return type"></error>T extends A & I> void bar(T x);
}

View File

@@ -9,16 +9,16 @@ abstract class C<T> {
<A> A get() { return null; }
}
abstract class D<U> extends C<C<U>> {
abstract <error descr="'f(int)' in 'D' clashes with 'f(int)' in 'C'; attempting to use incompatible return type">U</error> f(int t);
abstract <error descr="'f(int)' in 'D' clashes with 'f(int)' in 'C'; incompatible return type">U</error> f(int t);
// overloaded, not overrridden
int ff(int u) { return 0; }
<error descr="'ff(C<U>)' in 'D' clashes with 'ff(T)' in 'C'; attempting to use incompatible return type">int</error> ff(C<U> u) {
<error descr="'ff(C<U>)' in 'D' clashes with 'ff(T)' in 'C'; incompatible return type">int</error> ff(C<U> u) {
return 0;
}
<error descr="'covariant1()' in 'D' clashes with 'covariant1()' in 'C'; attempting to use incompatible return type">Object</error> covariant1() { return null; }
<error descr="'covariant1()' in 'D' clashes with 'covariant1()' in 'C'; incompatible return type">Object</error> covariant1() { return null; }
D covariant2() { return null; }
<A> A get() { return null; }
@@ -43,15 +43,15 @@ class CC<T> {
int fPrimitive() { return 0; }
}
class DD<T> extends CC<T> {
<error descr="'f()' in 'DD' clashes with 'f()' in 'CC'; attempting to use incompatible return type">DD<String></error> f() { return null; }
<error descr="'f()' in 'DD' clashes with 'f()' in 'CC'; incompatible return type">DD<String></error> f() { return null; }
DD<Integer> f2() { return null; }
CC f3() { return null; }
<P,O> <error descr="'f(O)' in 'DD' clashes with 'f(V)' in 'CC'; attempting to use incompatible return type">O</error> f(O o) { return null; }
<P,O> <error descr="'f(O)' in 'DD' clashes with 'f(V)' in 'CC'; incompatible return type">O</error> f(O o) { return null; }
// incompatible although assignable
<error descr="'fPrimitive()' in 'DD' clashes with 'fPrimitive()' in 'CC'; attempting to use incompatible return type">double</error> fPrimitive() { return 0; }
<error descr="'fPrimitive()' in 'DD' clashes with 'fPrimitive()' in 'CC'; incompatible return type">double</error> fPrimitive() { return 0; }
}
interface Gen<T> {
@@ -500,7 +500,7 @@ interface C extends A,B {
}
class s implements C {
public <error descr="'f()' in 'ideadev.s' clashes with 'f()' in 'ideadev.B'; attempting to use incompatible return type">A</error> f() {
public <error descr="'f()' in 'ideadev.s' clashes with 'f()' in 'ideadev.B'; incompatible return type">A</error> f() {
return null;
}
}

View File

@@ -94,7 +94,7 @@ interface I2 {
//IDEA-9321
abstract class MyMap<K, V> implements java.util.Map<K, V> {
public <error descr="'put(K, V)' in 'MyMap' clashes with 'put(K, V)' in 'java.util.Map'; attempting to use incompatible return type">Object</error> put(K key, V value) {
public <error descr="'put(K, V)' in 'MyMap' clashes with 'put(K, V)' in 'java.util.Map'; incompatible return type">Object</error> put(K key, V value) {
return null;
}
}

View File

@@ -133,8 +133,8 @@ class ClassLiteral<T> {
Object c1 = <error descr="Cannot access class object of a type parameter">T</error>.class;
Object c2 = <error descr="Cannot access class object of a type parameter">T[]</error>.class;
Object c3 = <error descr="Cannot access class object of parameterized type">List<String></error>.class;
Object c4 = <error descr="Cannot access class object of parameterized type">List<String>[]</error>.class;
Object c3 = <error descr="Cannot access class object of a parameterized type">List<String></error>.class;
Object c4 = <error descr="Cannot access class object of a parameterized type">List<String>[]</error>.class;
Object c5 = List[].class;
Object c6 = List.class;
}

View File

@@ -4,5 +4,5 @@ interface I<T, S extends Throwable> {
}
class A implements I<Throwable, Throwable>{
public <error descr="'foo(Throwable)' in 'A' clashes with 'foo(T)' in 'I'; attempting to use incompatible return type">void</error> foo(Throwable x) { }
public <error descr="'foo(Throwable)' in 'A' clashes with 'foo(T)' in 'I'; incompatible return type">void</error> foo(Throwable x) { }
}