You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by pa...@apache.org on 2018/09/30 07:52:19 UTC

[text] fix checkstyle violations

Repository: commons-text
Updated Branches:
  refs/heads/master 21ac2e356 -> f86e64dab


fix checkstyle violations


Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/f86e64da
Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/f86e64da
Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/f86e64da

Branch: refs/heads/master
Commit: f86e64dab8ddbbb38e640187632931de1d9aea06
Parents: 21ac2e3
Author: Pascal Schumacher <pa...@gmx.net>
Authored: Sun Sep 30 09:52:12 2018 +0200
Committer: Pascal Schumacher <pa...@gmx.net>
Committed: Sun Sep 30 09:52:12 2018 +0200

----------------------------------------------------------------------
 .../java/org/apache/commons/text/lookup/ConstantStringLookup.java  | 1 -
 .../org/apache/commons/text/lookup/PropertiesStringLookup.java     | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/f86e64da/src/main/java/org/apache/commons/text/lookup/ConstantStringLookup.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/text/lookup/ConstantStringLookup.java b/src/main/java/org/apache/commons/text/lookup/ConstantStringLookup.java
index 466e471..0dce838 100644
--- a/src/main/java/org/apache/commons/text/lookup/ConstantStringLookup.java
+++ b/src/main/java/org/apache/commons/text/lookup/ConstantStringLookup.java
@@ -17,7 +17,6 @@
 
 package org.apache.commons.text.lookup;
 
-import java.lang.reflect.Field;
 import java.util.Objects;
 import java.util.concurrent.ConcurrentHashMap;
 

http://git-wip-us.apache.org/repos/asf/commons-text/blob/f86e64da/src/main/java/org/apache/commons/text/lookup/PropertiesStringLookup.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/text/lookup/PropertiesStringLookup.java b/src/main/java/org/apache/commons/text/lookup/PropertiesStringLookup.java
index edae89a..cb6f345 100644
--- a/src/main/java/org/apache/commons/text/lookup/PropertiesStringLookup.java
+++ b/src/main/java/org/apache/commons/text/lookup/PropertiesStringLookup.java
@@ -78,7 +78,7 @@ final class PropertiesStringLookup extends AbstractStringLookup {
         final String propertyKey = substringAfter(key, "::");
         try {
             final Properties properties = new Properties();
-            try (final InputStream inputStream = Files.newInputStream(Paths.get(documentPath))) {
+            try (InputStream inputStream = Files.newInputStream(Paths.get(documentPath))) {
                 properties.load(inputStream);
             }
             return properties.getProperty(propertyKey);