Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove dead code

  • Loading branch information...
commit c13062525811cb05732491253dd764ed1221a739 1 parent 4928632
@pepite pepite authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.