Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
pepite committed Jul 11, 2012
1 parent 4928632 commit c130625
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions framework/src/play/data/binding/Unbinder.java
Expand Up @@ -49,15 +49,11 @@ private static void unBind(Map<String, Object> result, Object src, Class<?> srcC
unBind(result, Array.get(src, i), clazz, name, annotations); unBind(result, Array.get(src, i), clazz, name, annotations);
} }
} else if (Collection.class.isAssignableFrom(src.getClass())) { } else if (Collection.class.isAssignableFrom(src.getClass())) {
if (Map.class.isAssignableFrom(src.getClass())) { Collection<?> c = (Collection<?>) src;
throw new UnsupportedOperationException("Unbind won't work with maps yet"); List<Object> objects = new ArrayList<Object>();
} else { result.put(name, objects);
Collection<?> c = (Collection<?>) src; for (Object object : c) {
List<Object> objects = new ArrayList<Object>(); unBind(result, object, object.getClass(), name, annotations);
result.put(name, objects);
for (Object object : c) {
unBind(result, object, object.getClass(), name, annotations);
}
} }
} else if (Date.class.isAssignableFrom(src.getClass()) || Calendar.class.isAssignableFrom(src.getClass())) { } else if (Date.class.isAssignableFrom(src.getClass()) || Calendar.class.isAssignableFrom(src.getClass())) {
// We should use the @As annotation if there is one // We should use the @As annotation if there is one
Expand Down

0 comments on commit c130625

Please sign in to comment.