@@ -576,8 +576,8 @@ public static void verifyNoIsVariantExists(
576576 for ( Method declaredMethod : containerClass .getDeclaredMethods () ) {
577577 if ( declaredMethod .getParameterCount () == 0
578578 && !Modifier .isStatic ( declaredMethod .getModifiers () )
579- && declaredMethod .getName ().startsWith ("is" )
580- && declaredMethod .getName ().regionMatches (0 , stemName , 0 , stemName .length () )
579+ && declaredMethod .getName ().startsWith ( "is" )
580+ && declaredMethod .getName ().regionMatches ( 2 , stemName , 0 , stemName .length () )
581581 && declaredMethod .getAnnotation ( Transient .class ) == null ) {
582582 checkGetAndIsVariants ( containerClass , propertyName , getMethod , declaredMethod );
583583 }
@@ -615,8 +615,8 @@ public static void verifyNoGetVariantExists(
615615 for ( Method declaredMethod : containerClass .getDeclaredMethods () ) {
616616 if ( declaredMethod .getParameterCount () == 0
617617 && !Modifier .isStatic ( declaredMethod .getModifiers () )
618- && declaredMethod .getName ().startsWith ("is" )
619- && declaredMethod .getName ().regionMatches (0 , stemName , 0 , stemName .length () )
618+ && declaredMethod .getName ().startsWith ( "get" )
619+ && declaredMethod .getName ().regionMatches ( 3 , stemName , 0 , stemName .length () )
620620 && declaredMethod .getAnnotation ( Transient .class ) == null ) {
621621 checkGetAndIsVariants ( containerClass , propertyName , declaredMethod , isMethod );
622622 }
0 commit comments