@Test public void testToInstanceName() { assertEquals("_$", JsdUtil.toInstanceName("")); assertEquals("_java", JsdUtil.toInstanceName("java")); assertEquals("_org", JsdUtil.toInstanceName("org")); assertEquals("helloWorld", JsdUtil.toInstanceName("HelloWorld")); assertEquals("_2HelloWorld", JsdUtil.toInstanceName("2HelloWorld")); }
static String toInstanceName(String name) { name = toIdentifier(name, false); return Arrays.binarySearch(reservedWords, name) < 0 ? name : "_" + name; }
JsdUtil { static String toInstanceName(String name) { name = toIdentifier(name, false); return Arrays.binarySearch(reservedWords, name) < 0 ? name : "_" + name; } }
JsdUtil { static String toInstanceName(String name) { name = toIdentifier(name, false); return Arrays.binarySearch(reservedWords, name) < 0 ? name : "_" + name; } private  JsdUtil(); }
JsdUtil { static String toInstanceName(String name) { name = toIdentifier(name, false); return Arrays.binarySearch(reservedWords, name) < 0 ? name : "_" + name; } private  JsdUtil();  }
JsdUtil { static String toInstanceName(String name) { name = toIdentifier(name, false); return Arrays.binarySearch(reservedWords, name) < 0 ? name : "_" + name; } private  JsdUtil();   }