Skip to content

Commit

Permalink
fix: JongoCollectionFactory wrong canBuild condition
Browse files Browse the repository at this point in the history
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 eb9a061
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class JongoCollectionFactory implements FactoryMachine {


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


@Override @Override
Expand Down

0 comments on commit eb9a061

Please sign in to comment.