Skip to content

Commit 10c557d

Browse files
authored
Fix the compiler error with the JCL min jar source (eclipse-jdt#4897)
1 parent beb56dc commit 10c557d

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

JCL/jclMin17/src/java/util/ArrayList.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package java.util;
22

33
public class ArrayList<T> implements List<T>, java.io.Serializable {
4+
private static final long serialVersionUID = 1L;
5+
46
public ArrayList(int initialCapacity) {
57
}
68

@@ -28,5 +30,5 @@ public boolean addAll(Collection<? extends T> c) {
2830

2931
public T[] toArray(T[] a) {
3032
return a;
31-
}
33+
}
3234
}

JCL/jclMin17/src/java/util/Collection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ public interface Collection<T> extends Iterable<T> {
44
public Iterator<T> iterator();
55
public int size();
66
public T get(int index);
7-
public boolean addAll(Collection<T> c);
7+
public boolean addAll(Collection<? extends T> c);
88
public T[] toArray(T[] o);
99
}
0 Bytes
Binary file not shown.
-391 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)