@SuppressWarnings("rawtypes") // else setOwner will not compile public void addProperty(AbstractFolderProperty p) throws IOException { if (!p.getDescriptor().isApplicable(getClass())) { throw new IllegalArgumentException(p.getClass().getName() + " cannot be applied to " + getClass().getName()); } p.setOwner(this); properties.add(p); }
@SuppressWarnings("rawtypes") // else setOwner will not compile public void addProperty(AbstractFolderProperty p) throws IOException { if (!p.getDescriptor().isApplicable(getClass())) { throw new IllegalArgumentException(p.getClass().getName() + " cannot be applied to " + getClass().getName()); } p.setOwner(this); properties.add(p); }