We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a880f7 commit 55c4460Copy full SHA for 55c4460
src/main/java/org/jd/core/v1/util/Base.java
@@ -25,7 +25,7 @@ default T getLast() {
25
}
26
27
default DefaultList<T> getList() {
28
- return (DefaultList<T>)this;
+ throw new UnsupportedOperationException();
29
30
31
default int size() {
src/main/java/org/jd/core/v1/util/DefaultList.java
@@ -66,6 +66,10 @@ public boolean isList() {
66
return true;
67
68
69
+ public DefaultList<E> getList() {
70
+ return this;
71
+ }
72
+
73
public static <T> DefaultList<T> emptyList() {
74
return EMPTY_LIST;
75
0 commit comments