Repository: commons-text Updated Branches: refs/heads/master 1898b786a -> b02f37bb0
Use final. Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/b02f37bb Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/b02f37bb Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/b02f37bb Branch: refs/heads/master Commit: b02f37bb02b01ce73eee89658fc4501b53e0bce4 Parents: 1898b78 Author: Gary Gregory <ggreg...@rocketsoftware.com> Authored: Fri Sep 28 09:03:05 2018 -0600 Committer: Gary Gregory <ggreg...@rocketsoftware.com> Committed: Fri Sep 28 09:03:05 2018 -0600 ---------------------------------------------------------------------- .../java/org/apache/commons/text/lookup/StringLookupFactory.java | 2 +- .../org/apache/commons/text/lookup/UrlDecoderStringLookup.java | 2 +- .../org/apache/commons/text/lookup/UrlEncoderStringLookup.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-text/blob/b02f37bb/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java b/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java index e22a8a0..73c3153 100644 --- a/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java +++ b/src/main/java/org/apache/commons/text/lookup/StringLookupFactory.java @@ -359,7 +359,7 @@ public final class StringLookupFactory { * @return a ResourceBundleStringLookup instance for the given bundle name. * @since 1.5 */ - public StringLookup resourceBundleStringLookup(String bundleName) { + public StringLookup resourceBundleStringLookup(final String bundleName) { return new ResourceBundleStringLookup(bundleName); } http://git-wip-us.apache.org/repos/asf/commons-text/blob/b02f37bb/src/main/java/org/apache/commons/text/lookup/UrlDecoderStringLookup.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/text/lookup/UrlDecoderStringLookup.java b/src/main/java/org/apache/commons/text/lookup/UrlDecoderStringLookup.java index ddd494d..55a2807 100644 --- a/src/main/java/org/apache/commons/text/lookup/UrlDecoderStringLookup.java +++ b/src/main/java/org/apache/commons/text/lookup/UrlDecoderStringLookup.java @@ -47,7 +47,7 @@ final class UrlDecoderStringLookup extends AbstractStringLookup { final String enc = StandardCharsets.UTF_8.name(); try { return new String(URLDecoder.decode(key, enc)); - } catch (UnsupportedEncodingException e) { + } catch (final UnsupportedEncodingException e) { throw IllegalArgumentExceptions.format(e, "%s: source=%s, encoding=%s", e, key, enc); } } http://git-wip-us.apache.org/repos/asf/commons-text/blob/b02f37bb/src/main/java/org/apache/commons/text/lookup/UrlEncoderStringLookup.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/text/lookup/UrlEncoderStringLookup.java b/src/main/java/org/apache/commons/text/lookup/UrlEncoderStringLookup.java index 20f9600..fdc2c1f 100644 --- a/src/main/java/org/apache/commons/text/lookup/UrlEncoderStringLookup.java +++ b/src/main/java/org/apache/commons/text/lookup/UrlEncoderStringLookup.java @@ -46,7 +46,7 @@ final class UrlEncoderStringLookup extends AbstractStringLookup { final String enc = StandardCharsets.UTF_8.name(); try { return new String(URLEncoder.encode(key, enc)); - } catch (UnsupportedEncodingException e) { + } catch (final UnsupportedEncodingException e) { throw IllegalArgumentExceptions.format(e, "%s: source=%s, encoding=%s", e, key, enc); } }