diff --git a/java/core/src/main/java/com/google/protobuf/AbstractProtobufList.java b/java/core/src/main/java/com/google/protobuf/AbstractProtobufList.java index e792d7d981..b8baaa083e 100644 --- a/java/core/src/main/java/com/google/protobuf/AbstractProtobufList.java +++ b/java/core/src/main/java/com/google/protobuf/AbstractProtobufList.java @@ -130,7 +130,9 @@ abstract class AbstractProtobufList extends AbstractList implements Protob @Override public final void makeImmutable() { - isMutable = false; + if (isMutable) { + isMutable = false; + } } @Override