Internal change.

PiperOrigin-RevId: 516635646
pull/12228/head
Protobuf Team Bot 2 years ago committed by Copybara-Service
parent 6e6d0bce4a
commit 5d97d43863
  1. 2
      java/core/src/main/java/com/google/protobuf/UnknownFieldSetLite.java

@ -113,8 +113,10 @@ public final class UnknownFieldSetLite {
* <p>Future calls to methods that attempt to modify this object will throw. * <p>Future calls to methods that attempt to modify this object will throw.
*/ */
public void makeImmutable() { public void makeImmutable() {
if (this.isMutable) {
this.isMutable = false; this.isMutable = false;
} }
}
/** Throws an {@link UnsupportedOperationException} if immutable. */ /** Throws an {@link UnsupportedOperationException} if immutable. */
void checkMutable() { void checkMutable() {

Loading…
Cancel
Save