Skip to content
This repository has been archived by the owner on Jul 13, 2024. It is now read-only.

Commit

Permalink
Unbinder no longer traverses Class-objects
Browse files Browse the repository at this point in the history
  • Loading branch information
mbknor authored and guillaumebort committed Apr 3, 2011
1 parent 51489c4 commit b77b0f9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion framework/src/play/data/binding/Unbinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ public static void unBind(Map<String, Object> result, Object src, String name, A
if (src == null) {
return;
}
if (src instanceof Class) {
return ;
}
unBind(result, src, src.getClass(), name, annotations);
}

Expand Down Expand Up @@ -110,6 +113,6 @@ private static void unBind(Map<String, Object> result, Object src, Class<?> srcC
}

public static boolean isDirect(Class<?> clazz) {
return clazz.equals(String.class) || clazz.equals(Integer.class) || Enum.class.isAssignableFrom(clazz) || clazz.equals(Boolean.class) || clazz.equals(Long.class) || clazz.equals(Double.class) || clazz.equals(Float.class) || clazz.equals(Short.class) || clazz.equals(BigDecimal.class) || clazz.isPrimitive();
return clazz.equals(String.class) || clazz.equals(Integer.class) || Enum.class.isAssignableFrom(clazz) || clazz.equals(Boolean.class) || clazz.equals(Long.class) || clazz.equals(Double.class) || clazz.equals(Float.class) || clazz.equals(Short.class) || clazz.equals(BigDecimal.class) || clazz.isPrimitive() || clazz.equals(Class.class);
}
}

0 comments on commit b77b0f9

Please sign in to comment.