Skip to content
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 1 changed file with 1 addition and 1 deletion.
@@ -18,7 +18,7 @@ public class JongoCollectionFactory implements FactoryMachine {

public boolean canBuild(Name<?> name) {
return JongoCollection.class.isAssignableFrom(name.getClazz());
return JongoCollection.class == name.getClazz();


0 comments on commit eb9a061

Please sign in to comment.