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

jamesbognar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/juneau.git


The following commit(s) were added to refs/heads/master by this push:
     new 7c6dda6  Minor fix in Config API.
7c6dda6 is described below

commit 7c6dda6dd2e4479172f8ece8e2af53c09dc2ab46
Author: JamesBognar <jamesbog...@apache.org>
AuthorDate: Tue Apr 24 20:09:29 2018 -0400

    Minor fix in Config API.
---
 .../src/main/java/org/apache/juneau/config/internal/ConfigMap.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/juneau-core/juneau-config/src/main/java/org/apache/juneau/config/internal/ConfigMap.java
 
b/juneau-core/juneau-config/src/main/java/org/apache/juneau/config/internal/ConfigMap.java
index db48420..03e9409 100644
--- 
a/juneau-core/juneau-config/src/main/java/org/apache/juneau/config/internal/ConfigMap.java
+++ 
b/juneau-core/juneau-config/src/main/java/org/apache/juneau/config/internal/ConfigMap.java
@@ -81,7 +81,7 @@ public class ConfigMap implements ConfigStoreListener {
                try (Scanner scanner = new Scanner(contents)) {
                        while (scanner.hasNextLine()) {
                                String line = scanner.nextLine();
-                               char c = 
StringUtils.firstNonWhitespaceChar(line);
+                               char c = firstChar(line);
                                if (c != 0 || c != '#') {
                                        if (c == '[') {
                                                int c2 = 
StringUtils.lastNonWhitespaceChar(line);
@@ -99,7 +99,7 @@ public class ConfigMap implements ConfigStoreListener {
                boolean foundComment = false;
                for (ListIterator<String> li = lines.listIterator(); 
li.hasNext();) {
                        String l = li.next();
-                       char c = firstChar(l);
+                       char c = firstNonWhitespaceChar(l);
                        if (c != '#') {
                                if (c == 0 && foundComment) {
                                        li.set("[]");

-- 
To stop receiving notification emails like this one, please contact
jamesbog...@apache.org.

Reply via email to