File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
byte-buddy-dep/src/test/java/net/bytebuddy/description/annotation Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -301,7 +301,7 @@ public Object answer(InvocationOnMock invocation) throws Throwable {
301301 when (annotationValue .resolve ()).thenReturn (null );
302302 when (equalFirstNameOnly .getValue (Mockito .any (MethodDescription .InDefinedShape .class ))).thenReturn ((AnnotationValue ) annotationValue );
303303 // Very commonly buggy in intermediate releases.
304- if (ClassFileVersion .ofThisVm ().isAtLeast (ClassFileVersion .JAVA_V17 ) || ClassFileVersion .ofThisVm ().equals (ClassFileVersion .JAVA_V8 )) {
304+ if (ClassFileVersion .ofThisVm ().isAtLeast (ClassFileVersion .JAVA_V21 ) || ClassFileVersion .ofThisVm ().equals (ClassFileVersion .JAVA_V8 )) {
305305 assertThat (describe (first ), not (equalFirstNameOnly ));
306306 assertThat (describe (first ), not (equalSecond ));
307307 assertThat (describe (first ), not (new Object ()));
You can’t perform that action at this time.
0 commit comments