diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/onap/dmaap/dbcapi/util/PermissionBuilder.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/org/onap/dmaap/dbcapi/util/PermissionBuilder.java b/src/main/java/org/onap/dmaap/dbcapi/util/PermissionBuilder.java index 44c94af..d1f6b2b 100644 --- a/src/main/java/org/onap/dmaap/dbcapi/util/PermissionBuilder.java +++ b/src/main/java/org/onap/dmaap/dbcapi/util/PermissionBuilder.java @@ -73,11 +73,8 @@ public class PermissionBuilder { private String getPermissionType(String pathInfo) { char pathSeparator = '/'; - String relativePath = (pathInfo.charAt(pathInfo.length()-1) == pathSeparator) ? - pathInfo.substring(0,pathInfo.length()-1) : pathInfo; - - String[] pathSlices = relativePath.split(String.valueOf(pathSeparator)); - return pathSlices[pathSlices.length-1]; + String[] pathSlices = pathInfo.split(String.valueOf(pathSeparator)); + return pathSlices[1]; } String getInstance() { |