I bet that in your new class adapter, you meant to define a method instanceAdded
, not instaneAdded
(note the c
in the former). If you follow best practices and use the @Override
annotation, you would have gotten an error about not being able to override a method that wasn't previously defined.
public void instaneAdded(RDFSClass c,RDFSClass c2,RDFResource instance) {
************
The advice to add @Override
isn't just mine. If you take a look at the accepted answer to What does @Override mean? mentions that by declaring your intent to override a method, you will get warnings if there isn't such a method to override (as in this case).