Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Unified Diff: third_party/protobuf/java/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java

Issue 21208003: Update protobuf to r428, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/protobuf/java/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java
===================================================================
--- third_party/protobuf/java/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java (revision 216642)
+++ third_party/protobuf/java/src/main/java/com/google/protobuf/UnmodifiableLazyStringList.java (working copy)
@@ -32,6 +32,7 @@
import java.util.AbstractList;
import java.util.RandomAccess;
+import java.util.List;
import java.util.ListIterator;
import java.util.Iterator;
@@ -143,4 +144,10 @@
}
};
}
+
+ @Override
+ public List<?> getUnderlyingElements() {
+ // The returned value is already unmodifiable.
+ return list.getUnderlyingElements();
+ }
}

Powered by Google App Engine
This is Rietveld 408576698