257258259260261262263264265266267268269
public void addValue(T val) { addValue(val, 1L); } private void updateValueCount(T actualValue, long sampleCount) { MutableLong count = valuesMap.get(actualValue); if (count != null) { count.add(sampleCount); } else { // insert new value valuesMap.put(actualValue, new MutableLong(sampleCount)); } }
57585960616263
@Before public void setUp() { StaticContainer.reset(); publicChild = new PublicChild(); publiclyShadowedChild = new PubliclyShadowedChild(); privatelyShadowedChild = new PrivatelyShadowedChild(); }
59606162636465
555657585960616263
private Class<?> parentClass = PublicChild.class.getSuperclass(); @Before public void setUp() { StaticContainer.reset(); publicChild = new PublicChild(); publiclyShadowedChild = new PubliclyShadowedChild(); privatelyShadowedChild = new PrivatelyShadowedChild(); }
575859606162636465
495051525354555657
@Override protected void setUp() throws Exception { super.setUp(); StaticContainer.reset(); publicChild = new PublicChild(); publiclyShadowedChild = new PubliclyShadowedChild(); privatelyShadowedChild = new PrivatelyShadowedChild(); }
5657585960616263
5859606162636465
264265266267268269270271272
Object value = ip.resolve(key); return (value != null) ? value.toString() : null; } }; substitutor = new StrSubstitutor(variableResolver, prefixMatcher, suffixMatcher, StrSubstitutor.DEFAULT_ESCAPE); } }