private static boolean classHasRuntimeVisibleAnnotation(JavaClass cls) {
		AnnotationEntry[] annotations = cls.getAnnotationEntries();
		if (annotations != null) {
			for (AnnotationEntry annotation : annotations) {
				if (annotation.isRuntimeVisible()) {
					return true;
				}
			}
		}

		return false;
	}
private static boolean classHasRuntimeVisibleAnnotation ( JavaClass cls ) { AnnotationEntry [ ] annotations = cls . getAnnotationEntries ( ) ; if ( annotations != null ) { for ( AnnotationEntry annotation : annotations ) { if ( annotation . isRuntimeVisible ( ) ) { return true ; } } } return false ; }
determines if class has a runtime annotation. If it does it is likely to be a
singleton, or handled specially where hashCode/equals isn't of importance.

@param cls the class to check

@return if runtime annotations are found