Details
Description
klass = (Class<? extends CostFunction>) Class.forName(c);
This will generated a warning of unchecked casting, could simply use Class.forName(c).asSubclass(CostFunction.class).
Attachments
Issue Links
- links to
klass = (Class<? extends CostFunction>) Class.forName(c);
This will generated a warning of unchecked casting, could simply use Class.forName(c).asSubclass(CostFunction.class).