I don´t know why I can not override one method but other I can for others.
Here is the method I want to override in another class (without extending the class with the method):
public static void onOk() throws Exception {
throw new Exception("test");
}
I am trying to override but it says "Annotation not allowed here" but below the method are a lot of other methods whose get just overridden.
@Override <- red underlined error "Annotation not allowed here"
InputAdressDialogFragment.onOk(){
}
@Override <- works! The compiler accepts
public View onCreateView(