Skip to content

Commit 5ee62a3

Browse files
SUPERCILEXsamtstern
authored andcommitted
Restrict unnecessary immutable stuff to library so we can change it later (#737)
1 parent f528a22 commit 5ee62a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

database/src/main/java/com/firebase/ui/database/ImmutableList.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import java.util.List;
88
import java.util.ListIterator;
99

10+
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
1011
public abstract class ImmutableList<E> implements List<E> {
1112
/**
1213
* Guaranteed to throw an exception and leave the collection unmodified.
@@ -129,6 +130,7 @@ public final List<E> subList(int fromIndex, int toIndex) {
129130
throw new UnsupportedOperationException();
130131
}
131132

133+
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
132134
protected final class ImmutableIterator implements Iterator<E> {
133135
protected Iterator<E> mIterator;
134136

@@ -147,6 +149,7 @@ public E next() {
147149
}
148150
}
149151

152+
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
150153
protected final class ImmutableListIterator implements ListIterator<E> {
151154
protected ListIterator<E> mListIterator;
152155

0 commit comments

Comments
 (0)