diff options
Diffstat (limited to 'common-util/src/main/java/org/openo/baseservice/bus/util/RegisterServiceListener.java')
-rw-r--r-- | common-util/src/main/java/org/openo/baseservice/bus/util/RegisterServiceListener.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common-util/src/main/java/org/openo/baseservice/bus/util/RegisterServiceListener.java b/common-util/src/main/java/org/openo/baseservice/bus/util/RegisterServiceListener.java index 85800b8..eb2e122 100644 --- a/common-util/src/main/java/org/openo/baseservice/bus/util/RegisterServiceListener.java +++ b/common-util/src/main/java/org/openo/baseservice/bus/util/RegisterServiceListener.java @@ -52,7 +52,7 @@ public class RegisterServiceListener implements ServletContextListener { for(File tempFile : fileList) { String fileName = tempFile.getName(); - if (fileName.substring(fileName.lastIndexOf(".") + 1).equalsIgnoreCase(JSON)) { + if (fileName.substring(fileName.lastIndexOf('.') + 1).equalsIgnoreCase(JSON)) { LOGGER.info("begin to initialize the service file" + tempFile.getAbsolutePath()); /** now because ZTE do not provide the service bus.commont this code first. @@ -71,6 +71,4 @@ public class RegisterServiceListener implements ServletContextListener { // TODO Auto-generated method stub } - - } |