# HG changeset patch
# User jjg
# Date 1504122413 25200
# Node ID 7d0ceae2dec27b425702a0455a62810d79dc3944
# Parent 6df65183aa1f8e94ad8361e751e739f24544b087
8186934: Fix accessibility issues in the java.naming module
Reviewed-by: mchung
diff -r 6df65183aa1f -r 7d0ceae2dec2 jdk/src/java.naming/share/classes/javax/naming/CompositeName.java
--- a/jdk/src/java.naming/share/classes/javax/naming/CompositeName.java Wed Aug 30 12:45:43 2017 -0700
+++ b/jdk/src/java.naming/share/classes/javax/naming/CompositeName.java Wed Aug 30 12:46:53 2017 -0700
@@ -80,62 +80,64 @@
*
examples showing string
form of composite name and its corresponding structural form (CompositeName)
-
+
-String Name |
-CompositeName |
+String Name |
+CompositeName |
-
+
+
-
+ |
""
-
+ |
{} (the empty name == new CompositeName("") == new CompositeName())
|
-
+ |
"x"
-
+ |
{"x"}
|
-
+ |
"x/y"
-
+ |
{"x", "y"} |
-"x/" |
+"x/" |
{"x", ""} |
-"/x" |
+"/x" |
{"", "x"} |
-"/" |
+"/" |
{""} |
-"//" |
+"//" |
{"", ""} |
-"/x/" |
+
"/x/" |
{"", "x", ""} |
-"x//y" |
+
"x//y" |
{"x", "", "y"} |
+
*
*Composition Examples
@@ -147,48 +149,50 @@
composition examples
showing string names and composite names
-
+
-String Names |
-CompositeNames |
+String Names |
+CompositeNames |
+
+
-
+ |
"x/y" + "/" = x/y/
-
+ |
{"x", "y"} + {""} = {"x", "y", ""}
|
-
+ |
"" + "x" = "x"
-
+ |
{} + {"x"} = {"x"}
|
-
+ |
"/" + "x" = "/x"
-
+ |
{""} + {"x"} = {"", "x"}
|
-
+ |
"x" + "" + "" = "x"
-
+ |
{"x"} + {} + {} = {"x"}
|
-
+
*
*Multithreaded Access