Skip to content
Browse files

remove dead code

  • Loading branch information...
1 parent 4928632 commit c13062525811cb05732491253dd764ed1221a739 @pepite pepite committed Jul 11, 2012
Showing with 5 additions and 9 deletions.
  1. +5 −9 framework/src/play/data/binding/Unbinder.java
View
14 framework/src/play/data/binding/Unbinder.java
@@ -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);
}
} else if (Collection.class.isAssignableFrom(src.getClass())) {
- if (Map.class.isAssignableFrom(src.getClass())) {
- throw new UnsupportedOperationException("Unbind won't work with maps yet");
- } else {
- Collection<?> c = (Collection<?>) src;
- List<Object> objects = new ArrayList<Object>();
- result.put(name, objects);
- for (Object object : c) {
- unBind(result, object, object.getClass(), name, annotations);
- }
+ Collection<?> c = (Collection<?>) src;
+ List<Object> objects = new ArrayList<Object>();
+ 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())) {
// We should use the @As annotation if there is one

0 comments on commit c130625

Please sign in to comment.
Something went wrong with that request. Please try again.