Permalink
Browse files

fix: JongoCollectionFactory wrong canBuild condition

The condition made in canBuild method was responding true for a class
extending JongoCollection, but the factory can only provides JongoCollection.
  • Loading branch information...
a-peyrard committed Feb 12, 2015
1 parent 5afdd71 commit eb9a061d1fa409d36dfda3a936d313bd56726585
Showing with 1 addition and 1 deletion.
  1. +1 −1 restx-jongo/src/main/java/restx/jongo/JongoCollectionFactory.java
@@ -18,7 +18,7 @@
@Override
public boolean canBuild(Name<?> name) {
return JongoCollection.class.isAssignableFrom(name.getClazz());
return JongoCollection.class == name.getClazz();
}
@Override

0 comments on commit eb9a061

Please sign in to comment.