@@ -25,7 +25,7 @@ public class IsUnmodifiable {
2525 * @return The matcher
2626 */
2727 public static <E > Matcher <Collection <? extends E >> isUnmodifiableCollection () {
28- return new IsUnmodifiableCollection <>();
28+ return new IsUnmodifiableCollectionMatcher <>();
2929 }
3030
3131 /**
@@ -35,7 +35,7 @@ public static <E> Matcher<Collection<? extends E>> isUnmodifiableCollection() {
3535 * @return The matcher
3636 */
3737 public static <E > Matcher <Collection <? extends E >> isUnmodifiableJdkCollection () {
38- return new IsUnmodifiableJdkCollection <>();
38+ return new IsUnmodifiableJdkCollectionMatcher <>();
3939 }
4040
4141 /**
@@ -45,7 +45,7 @@ public static <E> Matcher<Collection<? extends E>> isUnmodifiableJdkCollection()
4545 * @return The matcher
4646 */
4747 public static <E > Matcher <Collection <? extends E >> isModifiableJdkCollection () {
48- return new IsModifiableJdkCollection <>();
48+ return new IsModifiableJdkCollectionMatcher <>();
4949 }
5050
5151 /**
@@ -57,19 +57,19 @@ public static <E> Matcher<Collection<? extends E>> isModifiableJdkCollection() {
5757 * @return The matcher
5858 */
5959 public static <E > Matcher <Collection <? extends E >> isUnmodifiableCustomCollection () {
60- return new IsUnmodifiableCustomCollection <>();
60+ return new IsUnmodifiableCustomCollectionMatcher <>();
6161 }
6262
63- private static class IsUnmodifiableCollection <E > extends TypeSafeDiagnosingMatcher <Collection <? extends E >> {
63+ private static class IsUnmodifiableCollectionMatcher <E > extends TypeSafeDiagnosingMatcher <Collection <? extends E >> {
6464 private final Matcher <Collection <? extends E >> isUnmodifiableJdkCollection ;
6565 private final Matcher <Collection <? extends E >> isModifiableJdkCollection ;
6666 private final Matcher <Collection <? extends E >> isUnmodifiableCustomCollection ;
6767
68- private IsUnmodifiableCollection () {
68+ private IsUnmodifiableCollectionMatcher () {
6969 this (IsUnmodifiable .isUnmodifiableJdkCollection (), IsUnmodifiable .isModifiableJdkCollection (), IsUnmodifiable .isUnmodifiableCustomCollection ());
7070 }
7171
72- private IsUnmodifiableCollection (Matcher <Collection <? extends E >> isUnmodifiableJdkCollection ,
72+ private IsUnmodifiableCollectionMatcher (Matcher <Collection <? extends E >> isUnmodifiableJdkCollection ,
7373 Matcher <Collection <? extends E >> isModifiableJdkCollection ,
7474 Matcher <Collection <? extends E >> isUnmodifiableCustomCollection ) {
7575 this .isUnmodifiableJdkCollection = isUnmodifiableJdkCollection ;
@@ -101,7 +101,7 @@ protected boolean matchesSafely(Collection<? extends E> collection, Description
101101 }
102102 }
103103
104- private static class IsUnmodifiableJdkCollection <E > extends TypeSafeDiagnosingMatcher <Collection <? extends E >> {
104+ private static class IsUnmodifiableJdkCollectionMatcher <E > extends TypeSafeDiagnosingMatcher <Collection <? extends E >> {
105105 private static final Set <String > KNOWN_UNMODIFIABLE_COLLECTIONS =
106106 Set .of ("java.util.ImmutableCollections" ,
107107 "java.util.Collections$Unmodifiable" ,
@@ -128,7 +128,7 @@ protected boolean matchesSafely(Collection<? extends E> collection, Description
128128 }
129129 }
130130
131- private static class IsModifiableJdkCollection <E > extends TypeSafeDiagnosingMatcher <Collection <? extends E >> {
131+ private static class IsModifiableJdkCollectionMatcher <E > extends TypeSafeDiagnosingMatcher <Collection <? extends E >> {
132132 private static final Set <String > KNOWN_MODIFIABLE_COLLECTIONS =
133133 Set .of ("java.util.Arrays$ArrayList" ,
134134 "java.util.ArrayList" ,
@@ -387,7 +387,7 @@ private boolean checkMethod_set(List<Object> list, Description mismatchDescripti
387387 }
388388 }
389389
390- private static class IsUnmodifiableCustomCollection <E > extends TypeSafeDiagnosingMatcher <Collection <? extends E >> {
390+ private static class IsUnmodifiableCustomCollectionMatcher <E > extends TypeSafeDiagnosingMatcher <Collection <? extends E >> {
391391 @ SuppressWarnings ("rawtypes" )
392392 private static final Map <Class <? extends Collection >, Object > DEFAULT_COLLECTIONS = new HashMap <>();
393393 static {
0 commit comments