Repository: knox
Updated Branches:
  refs/heads/master 4df0672d1 -> b95b2510f


KNOX-1464 - Remove explicit guava dependency from gateway-server InstrUtils

Signed-off-by: Kevin Risden <kris...@apache.org>


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

Branch: refs/heads/master
Commit: b95b2510ff814dfc6918c90ee261524178ddd8ff
Parents: 4df0672
Author: Kevin Risden <kris...@apache.org>
Authored: Thu Sep 27 12:26:03 2018 -0400
Committer: Kevin Risden <kris...@apache.org>
Committed: Thu Sep 27 13:27:22 2018 -0400

----------------------------------------------------------------------
 .../knox/gateway/services/metrics/impl/instr/InstrUtils.java     | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/b95b2510/gateway-server/src/main/java/org/apache/knox/gateway/services/metrics/impl/instr/InstrUtils.java
----------------------------------------------------------------------
diff --git 
a/gateway-server/src/main/java/org/apache/knox/gateway/services/metrics/impl/instr/InstrUtils.java
 
b/gateway-server/src/main/java/org/apache/knox/gateway/services/metrics/impl/instr/InstrUtils.java
index 8425080..fa1992b 100644
--- 
a/gateway-server/src/main/java/org/apache/knox/gateway/services/metrics/impl/instr/InstrUtils.java
+++ 
b/gateway-server/src/main/java/org/apache/knox/gateway/services/metrics/impl/instr/InstrUtils.java
@@ -17,8 +17,6 @@
  */
 package org.apache.knox.gateway.services.metrics.impl.instr;
 
-import com.google.common.base.Strings;
-
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
@@ -40,7 +38,7 @@ public class InstrUtils {
      */
     public static String getResourcePath(String fullPath) {
         String resourcePath = "";
-        if (!Strings.isNullOrEmpty(fullPath)) {
+        if (fullPath != null && !fullPath.isEmpty()) {
             Matcher m = p.matcher(fullPath);
             if (m.find()) {
                 resourcePath = m.group(0);

Reply via email to