@Test public void convertIfNecessary_withoutReservedWord() { assertEquals("name", ReservedWordConverter.convertIfNecessary("name")); assertEquals("var", ReservedWordConverter.convertIfNecessary("var")); assertEquals("Boolean", ReservedWordConverter.convertIfNecessary("Boolean")); assertEquals("Long", ReservedWordConverter.convertIfNecessary("Long")); }
public static String convertIfNecessary(final String name) { Check.notNull(name, "name"); return ReservedWord.isReserved(name) ? name + 1 : name; }
ReservedWordConverter { public static String convertIfNecessary(final String name) { Check.notNull(name, "name"); return ReservedWord.isReserved(name) ? name + 1 : name; } }
ReservedWordConverter { public static String convertIfNecessary(final String name) { Check.notNull(name, "name"); return ReservedWord.isReserved(name) ? name + 1 : name; } private  ReservedWordConverter(); }
ReservedWordConverter { public static String convertIfNecessary(final String name) { Check.notNull(name, "name"); return ReservedWord.isReserved(name) ? name + 1 : name; } private  ReservedWordConverter(); static String convertIfNecessary(final String name); }
ReservedWordConverter { public static String convertIfNecessary(final String name) { Check.notNull(name, "name"); return ReservedWord.isReserved(name) ? name + 1 : name; } private  ReservedWordConverter(); static String convertIfNecessary(final String name);  }