@Test public void testNullsNotAllowed() { try { applyAttributeChange(attributes, null, "myvalue", 1); fail("Expected NullPointerException"); } catch (NullPointerException e) { } try { applyAttributeChange(attributes, SET, null, 1); fail("Expected NullPointerException"); } catch (NullPointerException e) { } try { applyAttributeChange(attributes, SET, "myvalue", null); fail("Expected NullPointerException"); } catch (NullPointerException e) { } try { applyAttributeChange(attributes, APPEND, "mylist", null); } catch (NullPointerException e) { } try { applyAttributeChange(attributes, PREPEND, "mylist", null); } catch (NullPointerException e) { } try { applyAttributeChange(attributes, OVERLAY, "mymap", null); } catch (NullPointerException e) { } }
public static boolean applyAttributeChange( final RepositoryContent content, final AttributeChange change, final String key, @Nullable final Object value) { return applyAttributeChange(content.attributes(), change, key, value); }
AttributesHelper { public static boolean applyAttributeChange( final RepositoryContent content, final AttributeChange change, final String key, @Nullable final Object value) { return applyAttributeChange(content.attributes(), change, key, value); } }
AttributesHelper { public static boolean applyAttributeChange( final RepositoryContent content, final AttributeChange change, final String key, @Nullable final Object value) { return applyAttributeChange(content.attributes(), change, key, value); } private  AttributesHelper(); }
AttributesHelper { public static boolean applyAttributeChange( final RepositoryContent content, final AttributeChange change, final String key, @Nullable final Object value) { return applyAttributeChange(content.attributes(), change, key, value); } private  AttributesHelper(); static boolean applyAttributeChange(
      final RepositoryContent content,
      final AttributeChange change,
      final String key,
      @Nullable final Object value); static boolean applyAttributeChange(
      final AttributesMap attributes,
      final AttributeChange change,
      final String key,
      @Nullable final Object value); }
AttributesHelper { public static boolean applyAttributeChange( final RepositoryContent content, final AttributeChange change, final String key, @Nullable final Object value) { return applyAttributeChange(content.attributes(), change, key, value); } private  AttributesHelper(); static boolean applyAttributeChange(
      final RepositoryContent content,
      final AttributeChange change,
      final String key,
      @Nullable final Object value); static boolean applyAttributeChange(
      final AttributesMap attributes,
      final AttributeChange change,
      final String key,
      @Nullable final Object value);  }