🐛 Only accept matchers for Strings on FCP message field values
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 6 Sep 2024 12:51:15 +0000 (14:51 +0200)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Fri, 6 Sep 2024 12:51:37 +0000 (14:51 +0200)
src/test/java/net/pterodactylus/fcp/test/Matchers.java

index 871869f..f3c4897 100644 (file)
@@ -81,7 +81,7 @@ public class Matchers {
                };
        }
 
-       public static <V> Matcher<FcpMessage> hasField(String name, Matcher<? super V> valueMatcher) {
+       public static Matcher<FcpMessage> hasField(String name, Matcher<? super String> valueMatcher) {
                return new TypeSafeDiagnosingMatcher<FcpMessage>() {
                        @Override
                        protected boolean matchesSafely(FcpMessage fcpMessage, Description mismatchDescription) {