You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by po...@apache.org on 2019/05/01 22:50:36 UTC

[incubator-tamaya] branch master updated: TAMAYA-277: LHF: Improve lookup of hash / SonarCloud

This is an automated email from the ASF dual-hosted git repository.

pottlinger pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tamaya.git


The following commit(s) were added to refs/heads/master by this push:
     new 1b5c059  TAMAYA-277: LHF: Improve lookup of hash / SonarCloud
1b5c059 is described below

commit 1b5c059ab51ceed4f5c5fba47c5bbb52c6c3606d
Author: Hugo Hirsch <gi...@hugo-hirsch.de>
AuthorDate: Thu May 2 00:50:05 2019 +0200

    TAMAYA-277: LHF: Improve lookup of hash / SonarCloud
---
 .../main/java/org/apache/tamaya/core/internal/OSGIServiceLoader.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/code/core/src/main/java/org/apache/tamaya/core/internal/OSGIServiceLoader.java b/code/core/src/main/java/org/apache/tamaya/core/internal/OSGIServiceLoader.java
index 667a148..b97c7bf 100644
--- a/code/core/src/main/java/org/apache/tamaya/core/internal/OSGIServiceLoader.java
+++ b/code/core/src/main/java/org/apache/tamaya/core/internal/OSGIServiceLoader.java
@@ -217,7 +217,7 @@ public class OSGIServiceLoader implements BundleListener {
     }
 
     private String getImplClassName(String line) {
-        int hashIndex = line.indexOf("#");
+        int hashIndex = line.indexOf('#');
         if (hashIndex > 0) {
             return line.substring(0, hashIndex - 1).trim();
         } else if (hashIndex == 0) {