mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
advHighlighting -> light test case
This commit is contained in:
-6
@@ -17,12 +17,6 @@ package pck;
|
||||
|
||||
import static pck.Assert.assertEquals;
|
||||
|
||||
class Assert {
|
||||
static void assertEquals(Object o1, Object o2) {}
|
||||
|
||||
static void assertEquals(long l1, long l2) {}
|
||||
}
|
||||
|
||||
class Test {
|
||||
void test() {
|
||||
assertEquals<error descr="Ambiguous method call: both 'Assert.assertEquals(Object, Object)' and 'Assert.assertEquals(long, long)' match">(100L, Long.valueOf(100L))</error>;
|
||||
+1
-1
@@ -2,7 +2,7 @@ package p;
|
||||
|
||||
import p2.GenericClass;
|
||||
|
||||
public class Class1 extends GenericClass<Integer> {
|
||||
class Class1 extends GenericClass<Integer> {
|
||||
public void map(InnerClass context) {
|
||||
Class2.test(context);
|
||||
}
|
||||
+1
-1
@@ -2,7 +2,7 @@ package p;
|
||||
|
||||
import p2.GenericClass;
|
||||
|
||||
public class Class1 extends GenericClass<Integer> {
|
||||
class Class1 extends GenericClass<Integer> {
|
||||
public void map(InnerClass context) {
|
||||
Class2.test(context);
|
||||
}
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
package pck;
|
||||
public class A {
|
||||
static void bar(Object a) {
|
||||
System.out.println("A");
|
||||
}
|
||||
}
|
||||
class B {
|
||||
static void bar(Object a) {
|
||||
System.out.println("B");
|
||||
}
|
||||
}
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
package p;
|
||||
|
||||
import p2.GenericClass.InnerClass;
|
||||
|
||||
public class Class2 {
|
||||
|
||||
public static boolean test(InnerClass context) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
package p2;
|
||||
|
||||
public class GenericClass<T> {
|
||||
public class InnerClass {
|
||||
}
|
||||
}
|
||||
-10
@@ -1,10 +0,0 @@
|
||||
package p;
|
||||
|
||||
import p2.GenericClass.*;
|
||||
|
||||
public class Class2 {
|
||||
|
||||
public static boolean test(InnerClass context) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
-6
@@ -1,6 +0,0 @@
|
||||
package p2;
|
||||
|
||||
public class GenericClass<T> {
|
||||
public class InnerClass {
|
||||
}
|
||||
}
|
||||
-29
@@ -1,29 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2011 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package x;
|
||||
|
||||
public class Base1 {
|
||||
public static final int F = 1;
|
||||
public static void m(int i) { }
|
||||
public static class F { }
|
||||
public static class D { }
|
||||
public interface I1 {
|
||||
int IF = 1;
|
||||
}
|
||||
public interface I2 {
|
||||
float IF = 2.0f;
|
||||
}
|
||||
}
|
||||
-25
@@ -1,25 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2011 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package x;
|
||||
|
||||
public class Base2 extends Base1 {
|
||||
public static final float F = 2.0f;
|
||||
public static void m(float f) { }
|
||||
public static class F { }
|
||||
public static class D { }
|
||||
public interface II extends I1, I2 { }
|
||||
public enum E { }
|
||||
}
|
||||
-18
@@ -1,18 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2011 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package x;
|
||||
|
||||
public class E { }
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2011 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package P1;
|
||||
|
||||
public class C1 {
|
||||
public static int Foo;
|
||||
}
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
/*
|
||||
* Copyright 2000-2011 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package P1;
|
||||
|
||||
public class C2 {
|
||||
public static int Foo;
|
||||
}
|
||||
Reference in New Issue
Block a user