Skip to content

Commit

Permalink
Test static mutable check
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 590769082
  • Loading branch information
java-team-github-bot authored and Error Prone Team committed Dec 14, 2023
1 parent aadfdc3 commit d831fe5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ private static ImmutableMap<String, AnnotationInfo> buildImmutableClasses(
.build();
}

private static ImmutableSet<String> buildMutableClasses(List<String> knownMutables) {
public static ImmutableSet<String> buildMutableClasses(List<String> knownMutables) {
return ImmutableSet.<String>builder()
.addAll(knownMutables)
.addAll(ImmutableCollections.MUTABLE_TO_IMMUTABLE_CLASS_NAME_MAP.keySet())
Expand All @@ -308,7 +308,8 @@ private static ImmutableSet<String> buildMutableClasses(List<String> knownMutabl
.add(java.util.BitSet.class.getName())
.add(java.util.Calendar.class.getName())
.add(java.lang.Iterable.class.getName())
.add(java.lang.Object.class.getName())
// Everything is a subtype of Object so hack remove it
// .add(java.lang.Object.class.getName())
.add("java.text.DateFormat")
.add(java.util.ArrayList.class.getName())
.add(java.util.Collection.class.getName())
Expand Down

0 comments on commit d831fe5

Please sign in to comment.