Skip to content

Commit eb9a061

Browse files
committed
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.
1 parent 5afdd71 commit eb9a061

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

restx-jongo/src/main/java/restx/jongo/JongoCollectionFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class JongoCollectionFactory implements FactoryMachine {
1818

1919
@Override
2020
public boolean canBuild(Name<?> name) {
21-
return JongoCollection.class.isAssignableFrom(name.getClazz());
21+
return JongoCollection.class == name.getClazz();
2222
}
2323

2424
@Override

0 commit comments

Comments
 (0)