@Test public void testAdditionOfValue() { Container c = new Container("c1"); c.addValue(4); assert (c.value1 == 4); c.addValue(-4); assert (c.value1 == 0); }
@Deprecated public void addValue(Integer val) { value1 += val; }
Container { @Deprecated public void addValue(Integer val) { value1 += val; } }
Container { @Deprecated public void addValue(Integer val) { value1 += val; } Container(String id); }
Container { @Deprecated public void addValue(Integer val) { value1 += val; } Container(String id); @Deprecated void addValue(Integer val); String getId(); }
Container { @Deprecated public void addValue(Integer val) { value1 += val; } Container(String id); @Deprecated void addValue(Integer val); String getId();  }