Skip to content

Commit 22246ea

Browse files
l46kokcopybara-github
authored andcommitted
Correctly suppress AutoValueMutable warnings
PiperOrigin-RevId: 686531822
1 parent 0272411 commit 22246ea

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

common/src/main/java/dev/cel/common/internal/BasicCodePointArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
@SuppressWarnings("Immutable") // char[] is not exposed externally, thus cannot be mutated.
3939
public abstract class BasicCodePointArray extends CelCodePointArray {
4040

41-
@SuppressWarnings("AutoValueImmutableFields")
41+
@SuppressWarnings("mutable")
4242
abstract char[] codePoints();
4343

4444
abstract int offset();

common/src/main/java/dev/cel/common/internal/Latin1CodePointArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
@SuppressWarnings("Immutable") // byte[] is not exposed externally, thus cannot be mutated.
3939
public abstract class Latin1CodePointArray extends CelCodePointArray {
4040

41-
@SuppressWarnings("AutoValueImmutableFields")
41+
@SuppressWarnings("mutable")
4242
abstract byte[] codePoints();
4343

4444
abstract int offset();

common/src/main/java/dev/cel/common/internal/SupplementalCodePointArray.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
@SuppressWarnings("Immutable") // int[] is not exposed externally, thus cannot be mutated.
3939
public abstract class SupplementalCodePointArray extends CelCodePointArray {
4040

41-
@SuppressWarnings("AutoValueImmutableFields")
41+
@SuppressWarnings("mutable")
4242
abstract int[] codePoints();
4343

4444
abstract int offset();

0 commit comments

Comments
 (0)