You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by kr...@apache.org on 2015/06/21 15:26:03 UTC

svn commit: r1686719 - /commons/proper/io/trunk/src/main/java/org/apache/commons/io/Java7Support.java

Author: krosenvold
Date: Sun Jun 21 13:26:02 2015
New Revision: 1686719

URL: http://svn.apache.org/r1686719
Log:
Added old-style booleanValue

Modified:
    commons/proper/io/trunk/src/main/java/org/apache/commons/io/Java7Support.java

Modified: commons/proper/io/trunk/src/main/java/org/apache/commons/io/Java7Support.java
URL: http://svn.apache.org/viewvc/commons/proper/io/trunk/src/main/java/org/apache/commons/io/Java7Support.java?rev=1686719&r1=1686718&r2=1686719&view=diff
==============================================================================
--- commons/proper/io/trunk/src/main/java/org/apache/commons/io/Java7Support.java (original)
+++ commons/proper/io/trunk/src/main/java/org/apache/commons/io/Java7Support.java Sun Jun 21 13:26:02 2015
@@ -81,7 +81,8 @@ class Java7Support {
     public static boolean isSymLink(File file) {
         try {
             Object path = toPath.invoke(file);
-            return (Boolean) isSymbolicLink.invoke(null, path);
+            Boolean result = (Boolean) isSymbolicLink.invoke(null, path);
+            return result.booleanValue();
         } catch (IllegalAccessException e) {
             throw new RuntimeException(e);
         } catch (InvocationTargetException e) {
@@ -108,8 +109,8 @@ class Java7Support {
             throws IOException {
         try {
             Object path = toPath.invoke(file);
-            final Object invoke = exists.invoke(null, path, emptyLinkOpts);
-            return (Boolean) invoke;
+            final Boolean result = (Boolean) exists.invoke(null, path, emptyLinkOpts);
+            return result.booleanValue();
         } catch (IllegalAccessException e) {
             throw new RuntimeException(e);
         } catch (InvocationTargetException e) {