You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/08/27 00:53:09 UTC

[commons-configuration] branch master updated (f766d10 -> a0222b0)

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

ggregory pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git.


    from f766d10  [CONFIGURATION-752] Update Apache Commons VFS from 2.3 to 2.4.1.
     new f0cf3df  Remove useless parens.
     new a0222b0  Remove useless parens.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../configuration2/reloading/FileHandlerReloadingDetector.java        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


[commons-configuration] 01/02: Remove useless parens.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git

commit f0cf3dfce9a21d6510449841e0e58ddfa7aae912
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 23 16:27:29 2019 -0400

    Remove useless parens.
---
 .../commons/configuration2/reloading/FileHandlerReloadingDetector.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/configuration2/reloading/FileHandlerReloadingDetector.java b/src/main/java/org/apache/commons/configuration2/reloading/FileHandlerReloadingDetector.java
index 1ac8eb4..ade40e1 100644
--- a/src/main/java/org/apache/commons/configuration2/reloading/FileHandlerReloadingDetector.java
+++ b/src/main/java/org/apache/commons/configuration2/reloading/FileHandlerReloadingDetector.java
@@ -205,7 +205,7 @@ public class FileHandlerReloadingDetector implements ReloadingDetector
     protected long getLastModificationDate()
     {
         final File file = getExistingFile();
-        return (file != null) ? file.lastModified() : 0;
+        return file != null ? file.lastModified() : 0;
     }
 
     /**


[commons-configuration] 02/02: Remove useless parens.

Posted by gg...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-configuration.git

commit a0222b0d1f5e7dfab766c0e4340faa47e5be3597
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Aug 23 16:28:01 2019 -0400

    Remove useless parens.
---
 .../commons/configuration2/reloading/FileHandlerReloadingDetector.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/configuration2/reloading/FileHandlerReloadingDetector.java b/src/main/java/org/apache/commons/configuration2/reloading/FileHandlerReloadingDetector.java
index ade40e1..44c9cb3 100644
--- a/src/main/java/org/apache/commons/configuration2/reloading/FileHandlerReloadingDetector.java
+++ b/src/main/java/org/apache/commons/configuration2/reloading/FileHandlerReloadingDetector.java
@@ -232,7 +232,7 @@ public class FileHandlerReloadingDetector implements ReloadingDetector
     protected File getFile()
     {
         final URL url = getFileHandler().getURL();
-        return (url != null) ? fileFromURL(url) : getFileHandler().getFile();
+        return url != null ? fileFromURL(url) : getFileHandler().getFile();
     }
 
     /**