David Pursehouse
171f84a041
Use constants from StandardCharsets instead of hard-coded strings
Instead of hard-coding the charset strings "US-ASCII", "UTF-8", and "ISO-8859-1", use the corresponding constants from StandardCharsets. UnsupportedEncodingException is not thrown when the StandardCharset constants are used, so remove the now redundant handling. Because the encoding names are no longer hard-coded strings, also remove redundant $NON-NLS warning suppressions. Also replace existing usages of the constants with static imports. Change-Id: I0a4510d3d992db5e277f009a41434276f95bda4e Signed-off-by: David Pursehouse <david.pursehouse@gmail.com> |
6 年之前 | |
---|---|---|
.. | ||
CherryPickTest.java | Move base test classes to the junit bundle for reuse for Java 7 tests | 11 年之前 |
MergeAlgorithmTest.java | Make diff locations more consistent | 7 年之前 |
MergeMessageFormatterTest.java | Organize imports | 7 年之前 |
RecursiveMergerTest.java | Enable and fix warnings about redundant specification of type arguments | 7 年之前 |
ResolveMergerTest.java | Use constants from StandardCharsets instead of hard-coded strings | 6 年之前 |
SimpleMergeTest.java | Support creating Mergers without a Repository | 7 年之前 |
SquashMessageFormatterTest.java | SquashMessageFormatterTest: Open git in try-with-resource | 8 年之前 |