This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
8263552: Use String.valueOf() for char-to-String conversions
Reviewed-by: redestad, vtewari, azvegint, chegar
- Loading branch information
Showing
with
6 additions
and 6 deletions.
- +1 −1 src/java.base/share/classes/java/io/ObjectStreamClass.java
- +1 −1 src/java.base/share/classes/javax/crypto/CryptoPolicyParser.java
- +1 −1 src/java.base/share/classes/jdk/internal/reflect/SignatureIterator.java
- +1 −1 src/java.base/share/classes/sun/invoke/util/Wrapper.java
- +1 −1 src/java.base/share/classes/sun/security/provider/PolicyParser.java
- +1 −1 src/java.desktop/share/classes/javax/swing/text/NumberFormatter.java
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -452,7 +452,7 @@ else if (expect.equalsIgnoreCase("permission type")) { | ||
break; | ||
default: | ||
throw new ParsingException(st.lineno(), expect, | ||
String.valueOf((char)lookahead)); | ||
} | ||
return value; | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -49,7 +49,7 @@ public String next() { | ||
char c = sig.charAt(idx); | ||
if (c != '[' && c != 'L') { | ||
++idx; | ||
return String.valueOf(c); | ||
} | ||
// Walk forward to end of entry | ||
int endIdx = idx; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -812,7 +812,7 @@ private String match(String expect) | ||
break; | ||
default: | ||
throw new ParsingException(st.lineno(), expect, | ||
String.valueOf((char)lookahead)); | ||
} | ||
return value; | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters