-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Description
Currently Neo4jContainer and CassandraContainer have generic types for SELF references but they don't generally appear to be designed for subclassing (in fact Neo4jContainer is final). I think it might be more useful if the generics were moved, i.e.:
public final class Neo4jContainer<S extends Neo4jContainer<S>> extends GenericContainer<S> {
// ...
}would become
public final class Neo4jContainer extends GenericContainer<Neo4jContainer> {
// ...
}This would allow the classes to be used without generating compiler warnings.
bsideup and SiwyDym