@Test public void testAssembleAndGetProperty() { assertEquals("foo-value", StaticUsingArgs.assembleAndGetProperty('f', new StringBuilder().append('o'), 'o')); assertEquals("bar-value", StaticUsingArgs.assembleAndGetProperty('b', new StringBuilder().append('a'), 'r')); assertEquals("baz-value", StaticUsingArgs.assembleAndGetProperty('b', new StringBuilder().append('a'), 'z')); }
@Privileged static Object assembleAndGetProperty(char first, CharSequence middle, int last) { return System.getProperty(new StringBuilder().append(first).append(middle).append((char) last).toString()); }
StaticUsingArgs { @Privileged static Object assembleAndGetProperty(char first, CharSequence middle, int last) { return System.getProperty(new StringBuilder().append(first).append(middle).append((char) last).toString()); } }
StaticUsingArgs { @Privileged static Object assembleAndGetProperty(char first, CharSequence middle, int last) { return System.getProperty(new StringBuilder().append(first).append(middle).append((char) last).toString()); } private  StaticUsingArgs(); }
StaticUsingArgs { @Privileged static Object assembleAndGetProperty(char first, CharSequence middle, int last) { return System.getProperty(new StringBuilder().append(first).append(middle).append((char) last).toString()); } private  StaticUsingArgs();  }
StaticUsingArgs { @Privileged static Object assembleAndGetProperty(char first, CharSequence middle, int last) { return System.getProperty(new StringBuilder().append(first).append(middle).append((char) last).toString()); } private  StaticUsingArgs();   }