mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-05 04:40:28 +07:00
[tests] prepares Java tests for the language level raise
This commit is contained in:
@@ -1,19 +1,12 @@
|
||||
package todelete;
|
||||
|
||||
/**
|
||||
* Created with IntelliJ IDEA.
|
||||
* User: Anna.Kozlova
|
||||
* Date: 9/26/12
|
||||
* Time: 1:18 PM
|
||||
* To change this template use File | Settings | File Templates.
|
||||
*/
|
||||
class MyTest {
|
||||
interface Bar1 {
|
||||
int _(String s);
|
||||
int m(String s);
|
||||
}
|
||||
|
||||
interface Bar2 {
|
||||
int _(int s);
|
||||
int m(int s);
|
||||
}
|
||||
|
||||
void bar(Bar1 b1){}
|
||||
@@ -35,11 +28,11 @@ class MyTest {
|
||||
|
||||
class MyTest1 {
|
||||
interface Bar1 {
|
||||
int _(String s);
|
||||
int m(String s);
|
||||
}
|
||||
|
||||
interface Bar2 {
|
||||
int _(int s);
|
||||
int m(int s);
|
||||
}
|
||||
|
||||
//void bar(Bar1 b1){}
|
||||
@@ -61,11 +54,11 @@ class MyTest1 {
|
||||
|
||||
class MyTest2 {
|
||||
interface Bar1 {
|
||||
int _(String s);
|
||||
int m(String s);
|
||||
}
|
||||
|
||||
interface Bar2 {
|
||||
int _(int s);
|
||||
int m(int s);
|
||||
}
|
||||
|
||||
void bar(Bar1 b1){}
|
||||
@@ -87,11 +80,11 @@ class MyTest2 {
|
||||
|
||||
class MyTest3 {
|
||||
interface Bar1 {
|
||||
int _(String s);
|
||||
int m(String s);
|
||||
}
|
||||
|
||||
interface Bar2 {
|
||||
int _(int s);
|
||||
int m(int s);
|
||||
}
|
||||
|
||||
//void bar(Bar1 b1){}
|
||||
@@ -114,7 +107,7 @@ class MyTest3 {
|
||||
|
||||
class MyTest4 {
|
||||
interface Bar1<T> {
|
||||
int _(T s);
|
||||
int m(T s);
|
||||
}
|
||||
|
||||
|
||||
@@ -135,7 +128,7 @@ class MyTest4 {
|
||||
|
||||
class MyTest5 {
|
||||
interface Bar1<T> {
|
||||
int _(T s);
|
||||
int m(T s);
|
||||
}
|
||||
|
||||
|
||||
@@ -156,7 +149,7 @@ class MyTest5 {
|
||||
|
||||
class MyTest6 {
|
||||
interface I {
|
||||
void _(Integer i);
|
||||
void m(Integer i);
|
||||
}
|
||||
|
||||
static void foo(Number i) {}
|
||||
@@ -165,13 +158,13 @@ class MyTest6 {
|
||||
|
||||
public static void main(String[] args) {
|
||||
I s = MyTest6::foo;
|
||||
s._(1);
|
||||
s.m(1);
|
||||
}
|
||||
}
|
||||
|
||||
class MyTest7 {
|
||||
interface I {
|
||||
void _(Number i);
|
||||
void m(Number i);
|
||||
}
|
||||
|
||||
static void foo(Number i) {}
|
||||
@@ -180,6 +173,6 @@ class MyTest7 {
|
||||
|
||||
public static void main(String[] args) {
|
||||
I s = MyTest7::foo;
|
||||
s._(1);
|
||||
s.m(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user