I have a parent class EntryPoint with an abstract method to retrieve a prop that is a list of a generic type. The list is declared as protected:
public abstract class EntryPoint implements Serializable {
public EntryPoint(){}
protected ArrayList<? extends Tag> tiedTags;
public abstract ArrayList<? extends Tag> getTiedTags();
}
I have a child class representative of an SNMP Entry Point (used for querying an SNMP agent). IntelliJ is not complaining about this configuration but I am wondering, am I correctly overriding the getTiedTags() method from the parent or have I somehow overwritten the parent method?
public class SNMPEntryPoint extends EntryPoint implements Serializable {
//Default Constructor for Serialization
public SNMPEntryPoint(){}
@Override
public ArrayList<SNMPTag> getTiedTags(){ return (ArrayList<SNMPTag>) tiedTags; }
}