@Test public void shouldClearAllowedPackages() { validator.setAllowedPackages(SOME_PACKAGE); validator.setAllowedPackages(null); assertThat(validator.allowedPackages).isEmpty(); }
@Override public void setAllowedPackages(String deserializationAllowedPackages) { extractElements(deserializationAllowedPackages, allowedPackages); }
DefaultDeserializationTypeValidator implements WhitelistingDeserializationTypeValidator { @Override public void setAllowedPackages(String deserializationAllowedPackages) { extractElements(deserializationAllowedPackages, allowedPackages); } }
DefaultDeserializationTypeValidator implements WhitelistingDeserializationTypeValidator { @Override public void setAllowedPackages(String deserializationAllowedPackages) { extractElements(deserializationAllowedPackages, allowedPackages); }  }
DefaultDeserializationTypeValidator implements WhitelistingDeserializationTypeValidator { @Override public void setAllowedPackages(String deserializationAllowedPackages) { extractElements(deserializationAllowedPackages, allowedPackages); }  @Override void setAllowedClasses(String deserializationAllowedClasses); @Override void setAllowedPackages(String deserializationAllowedPackages); @Override boolean validate(String className); }
DefaultDeserializationTypeValidator implements WhitelistingDeserializationTypeValidator { @Override public void setAllowedPackages(String deserializationAllowedPackages) { extractElements(deserializationAllowedPackages, allowedPackages); }  @Override void setAllowedClasses(String deserializationAllowedClasses); @Override void setAllowedPackages(String deserializationAllowedPackages); @Override boolean validate(String className);  }