Buggy code:
public static Integer getInteger ( Object value , int defaultValue ) { } public static Float getFloat ( Object value , Float defaultValue ) { } public static Double getDouble ( Object value , Double defaultValue ) { } public static String getRandomNum ( int num ) { } public static String join ( String [ ] array ) { } public static String join ( List < String > array ) { } public static String join ( Set < String > array ) { } public static String join ( String [ ] array , String delimiter ) { } static JsonSerializer < Date > ser = new JsonSerializer < Date > ( ) { @ Override public JsonElement serialize ( Date src , Type typeOfSrc , JsonSerializationContext context ) { } } ; static JsonDeserializer < Date > deser = new JsonDeserializer < Date > ( ) { @ Override public Date deserialize ( JsonElement json , Type typeOfT , JsonDeserializationContext context ) throws JsonParseException { } } ; public static < T extends BaseEntity > BaseEntity toEntity ( Map < String , Object > data , Class < T > classzz ) { } public static < T extends BaseEntity > BaseEntity toEntity ( String data , Class < T > classzz ) { } public static < T extends BaseEntity > List < T > toJsonList ( Map < String , Object > params , Class < T > clz , String key ) { } public static < T extends BaseEntity > List < T > toJsonList ( Map < String , Object > params , Class < T > clz ) { } public static String toJson ( BaseEntity entity ) { } public static String toJson ( Object data ) { } public static Map < String , Object > toMap ( BaseEntity entity ) { } public static Map < String , Object > toMap ( String jsonStr ) { } public static String toString ( Map < String , Object > data ) { } public static < T extends BaseEntity > Object fromXml ( String txt , Class < T > claszz ) { } public static < T extends BaseEntity > String toXml ( BaseEntity entity , Map < String , Class > map ) { } public static < T extends BaseEntity > void updateJsonFieldWithType ( Map < String , Object > params , Class < ? > clz ) { if ( params != null ) { Field [ ] fields = clz . getFields ( ) ; for ( Field field : fields ) { if ( field . isAnnotationPresent ( IntegerColumn . class ) ) { if ( ( params . get ( field . getName ( ) ) ) != null ) { params . put ( field . getName ( ) , EweblibUtil . getInteger ( params . get ( field . getName ( ) ) , 0 ) ) ; } } if ( field . isAnnotationPresent ( DateColumn . class ) ) { if ( ( params . get ( field . getName ( ) ) ) != null ) { params . put ( field . getName ( ) , DateUtil . getDateTime ( params . get ( field . getName ( ) ) . toString ( ) ) ) ; } } if ( field . isAnnotationPresent ( FloatColumn . class ) ) { if ( ( params . get ( field . getName ( ) ) ) != null ) { params . put ( field . getName ( ) , EweblibUtil . getFloat ( params . get ( field . getName ( ) ) , 0.0F ) ) ; } } if ( field . isAnnotationPresent ( DoubleColumn . class ) ) { if ( ( params . get ( field . getName ( ) ) ) != null ) { params . put ( field . getName ( ) , EweblibUtil . getDouble ( params . get ( field . getName ( ) ) , 0.0 ) ) ; } } if ( field . isAnnotationPresent ( BooleanColumn . class ) ) { if ( ( params != null ) && ( field != null ) ) { <START_BUG> if ( ( params . get ( field . getName ( ) ) ) != null ) { <END_BUG> String text = params . get ( field . getName ( ) ) . toString ( ) ; if ( ( text . equalsIgnoreCase ( "1" ) ) || ( text . equalsIgnoreCase ( "true" ) ) ) { params . put ( field . getName ( ) , true ) ; } else { params . put ( field . getName ( ) , false ) ; } } } } if ( field . isAnnotationPresent ( ObjectColumn . class ) ) { Object v = params . get ( field . getName ( ) ) ; if ( EweblibUtil . isEmpty ( v ) ) { params . remove ( field . getName ( ) ) ; } else { if ( v instanceof Map ) { try { EweblibUtil . updateJsonFieldWithType ( ( ( Map < String , Object > ) ( v ) ) , Class . forName ( field . getGenericType ( ) . toString ( ) . replaceAll ( "class" , "" ) . trim ( ) ) ) ; } catch ( ClassNotFoundException e ) { } } else if ( v instanceof List ) { List < Map < String , Object > > list = ( ( List < Map < String , Object > > ) ( v ) ) ; String className = field . getGenericType ( ) . toString ( ) . replaceAll ( "class" , "" ) . trim ( ) ; className = className . replaceAll ( "java.util.List" , "" ) ; className = className . replaceAll ( "<" , "" ) ;

Fix:
if ( EweblibUtil . isValid ( params . get ( field . getName ( ) ) ) ) {