Skip to content

Commit

Permalink
Remove "com" from reserved, re #18
Browse files Browse the repository at this point in the history
  • Loading branch information
safris committed Sep 29, 2020
1 parent 771b7a5 commit 1485cb0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion binding/src/main/java/org/jsonx/JsdUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ final class JsdUtil {
private static final char prefix = '_';
private static final Function<Character,String> classSubs = c -> c == null ? "_" : c != '_' ? Integer.toHexString(c) : "__";
private static final Function<Character,String> camelSubs = c -> c == null ? "_" : c == '-' ? "-" : c != '_' ? Integer.toHexString(c) : "__";
private static final String[] reservedWords = {"com", "java", "org"}; // FIXME: This does not consider root package names of types declared in <binding> tags
private static final String[] reservedWords = {"java", "org"}; // FIXME: This does not consider root package names of types declared in <binding> tags

/**
* Returns the name of this member as a valid Java Identifier in:
Expand Down
1 change: 0 additions & 1 deletion binding/src/test/java/org/jsonx/JsdUtilTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ public void testToIdentifier() {
@Test
public void testToInstanceName() {
assertEquals("_$", JsdUtil.toInstanceName(""));
assertEquals("_com", JsdUtil.toInstanceName("com"));
assertEquals("_java", JsdUtil.toInstanceName("java"));
assertEquals("_org", JsdUtil.toInstanceName("org"));
assertEquals("helloWorld", JsdUtil.toInstanceName("HelloWorld"));
Expand Down

0 comments on commit 1485cb0

Please sign in to comment.