Skip to content

Commit 8f527f8

Browse files
author
svorenova
committed
Cleaning java files
1 parent 3a1962f commit 8f527f8

15 files changed

+31
-44
lines changed
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Bar extends Foo
2+
{
3+
4+
}
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
interface BasicInterface
2+
{
3+
int getX();
4+
}
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class Foo implements BasicInterface
2+
{
3+
public int x;
4+
5+
public int getX() {
6+
return x;
7+
}
8+
}
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,6 @@
1-
interface BasicInterface
2-
{
3-
int getX();
4-
}
5-
6-
class Foo implements BasicInterface
7-
{
8-
public int x;
9-
10-
public int getX() {
11-
return x;
12-
}
13-
}
14-
15-
class Bar extends Foo
16-
{}
17-
181
class GenericArray<T>
192
{
203
public T [] t;
214
public Integer [] Ia;
225
public int [] ia;
236
}
24-

unit/java_bytecode/java_bytecode_parse_generics/GenericFunctions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ public static <T extends Foo & BasicInterface> void processDoubleUpperBoundClass
2323
public static <T extends BasicInterface & BasicInterfaceCopy> void processDoubleUpperBoundInterfaceGeneric(SimpleGeneric<T> x) {
2424
assert(x.t.getX() == 4);
2525
}
26-
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
class RecursiveGeneric extends SimpleRecursiveGeneric<RecursiveGeneric>
22
{
33

4-
}
4+
}
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
class SimpleGeneric<T>
2+
{
3+
public T t;
4+
5+
public static <T> SimpleGeneric<T> makeGeneric(T value)
6+
{
7+
SimpleGeneric<T> newST = new SimpleGeneric<T>();
8+
newST.t = value;
9+
return newST;
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
class SimpleRecursiveGeneric<T extends SimpleRecursiveGeneric<T>>
22
{
33
public T t;
4-
}
4+
}
Binary file not shown.

unit/java_bytecode/java_bytecode_parse_generics/WildcardGenericFunctions.java

+1-23
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,3 @@
1-
interface BasicInterface
2-
{
3-
int getX();
4-
}
5-
6-
class Foo implements BasicInterface
7-
{
8-
public int x;
9-
10-
public int getX() {
11-
return x;
12-
}
13-
}
14-
15-
class Bar extends Foo
16-
{}
17-
18-
class SimpleGeneric<T>
19-
{
20-
public T t;
21-
}
22-
231
public class WildcardGenericFunctions
242
{
253
// Test a wild card generic type
@@ -73,4 +51,4 @@ public static void test()
7351
SimpleGeneric<Object> baseGenericValue = new SimpleGeneric<Object>();
7452
processLowerBoundGeneric(baseGenericValue, new Foo());
7553
}
76-
}
54+
}

0 commit comments

Comments
 (0)