diff --git a/pom.xml b/pom.xml
index 579d550154..6e86c8cc19 100644
--- a/pom.xml
+++ b/pom.xml
@@ -452,11 +452,10 @@
none
-
org.codehaus.mojo
animal-sniffer-maven-plugin
- 1.17
+ 1.21
maven-surefire-plugin
@@ -632,10 +631,13 @@
signature-check
+
+ verify
check
+ true
org.codehaus.mojo.signature
java18
diff --git a/surefire-api/src/test/java/org/apache/maven/surefire/api/stream/AbstractStreamDecoderTest.java b/surefire-api/src/test/java/org/apache/maven/surefire/api/stream/AbstractStreamDecoderTest.java
index 4c54df3731..2dd9c72722 100644
--- a/surefire-api/src/test/java/org/apache/maven/surefire/api/stream/AbstractStreamDecoderTest.java
+++ b/surefire-api/src/test/java/org/apache/maven/surefire/api/stream/AbstractStreamDecoderTest.java
@@ -318,7 +318,7 @@ public void shouldReadMultipleStringsAndShiftedInput() throws Exception
Memento memento = thread.new Memento();
// whatever position will be compacted to 0
- ( (Buffer) ( (Buffer) memento.getByteBuffer().limit( 974 ) ) ).position( 974 );
+ ( (Buffer) memento.getByteBuffer() ).limit( 974 ).position( 974 );
StringBuilder expected = new StringBuilder( "789" );
for ( int i = 0; i < 11; i++ )