@Test public void testSetAllowList() { JmsDefaultDeserializationPolicy policy = new JmsDefaultDeserializationPolicy(); assertNotNull(policy.getAllowList()); policy.setAllowList(null); assertNotNull(policy.getAllowList()); assertTrue(policy.getAllowList().isEmpty()); policy.setAllowList(""); assertNotNull(policy.getAllowList()); assertTrue(policy.getAllowList().isEmpty()); policy.setAllowList("*"); assertNotNull(policy.getAllowList()); assertFalse(policy.getAllowList().isEmpty()); policy.setAllowList("a,b,c"); assertNotNull(policy.getAllowList()); assertFalse(policy.getAllowList().isEmpty()); assertEquals("a,b,c", policy.getAllowList()); }
public void setAllowList(String allowList) { ArrayList<String> list = new ArrayList<String>(); if (allowList != null && !allowList.isEmpty()) { list.addAll(Arrays.asList(allowList.split(","))); } this.allowList = list; }
JmsDefaultDeserializationPolicy implements JmsDeserializationPolicy { public void setAllowList(String allowList) { ArrayList<String> list = new ArrayList<String>(); if (allowList != null && !allowList.isEmpty()) { list.addAll(Arrays.asList(allowList.split(","))); } this.allowList = list; } }
JmsDefaultDeserializationPolicy implements JmsDeserializationPolicy { public void setAllowList(String allowList) { ArrayList<String> list = new ArrayList<String>(); if (allowList != null && !allowList.isEmpty()) { list.addAll(Arrays.asList(allowList.split(","))); } this.allowList = list; } JmsDefaultDeserializationPolicy();  JmsDefaultDeserializationPolicy(JmsDefaultDeserializationPolicy source); }
JmsDefaultDeserializationPolicy implements JmsDeserializationPolicy { public void setAllowList(String allowList) { ArrayList<String> list = new ArrayList<String>(); if (allowList != null && !allowList.isEmpty()) { list.addAll(Arrays.asList(allowList.split(","))); } this.allowList = list; } JmsDefaultDeserializationPolicy();  JmsDefaultDeserializationPolicy(JmsDefaultDeserializationPolicy source); @Override JmsDeserializationPolicy copy(); @Override boolean isTrustedType(JmsDestination destination, Class<?> clazz); @Deprecated String getWhiteList(); String getAllowList(); @Deprecated String getBlackList(); String getDenyList(); @Deprecated void setWhiteList(String allowList); void setAllowList(String allowList); @Deprecated void setBlackList(String denyList); void setDenyList(String denyList); @Override int hashCode(); @Override boolean equals(Object obj); }
JmsDefaultDeserializationPolicy implements JmsDeserializationPolicy { public void setAllowList(String allowList) { ArrayList<String> list = new ArrayList<String>(); if (allowList != null && !allowList.isEmpty()) { list.addAll(Arrays.asList(allowList.split(","))); } this.allowList = list; } JmsDefaultDeserializationPolicy();  JmsDefaultDeserializationPolicy(JmsDefaultDeserializationPolicy source); @Override JmsDeserializationPolicy copy(); @Override boolean isTrustedType(JmsDestination destination, Class<?> clazz); @Deprecated String getWhiteList(); String getAllowList(); @Deprecated String getBlackList(); String getDenyList(); @Deprecated void setWhiteList(String allowList); void setAllowList(String allowList); @Deprecated void setBlackList(String denyList); void setDenyList(String denyList); @Override int hashCode(); @Override boolean equals(Object obj); static final String CATCH_ALL_WILDCARD; @Deprecated
    static final String DEPRECATED_ALLOWLIST_PROPERTY; @Deprecated
    static final String DEPRECATED_DENYLIST_PROPERTY; static final String ALLOWLIST_PROPERTY; static final String DENYLIST_PROPERTY; }