sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1803008 - /sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/OS.java
Date Tue, 25 Jul 2017 21:52:43 GMT
Author: desruisseaux
Date: Tue Jul 25 21:52:43 2017
New Revision: 1803008

URL: http://svn.apache.org/viewvc?rev=1803008&view=rev
Log:
Fix erroneous filename for temporary file.

Modified:
    sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/OS.java

Modified: sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/OS.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/OS.java?rev=1803008&r1=1803007&r2=1803008&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/OS.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-utility/src/main/java/org/apache/sis/internal/system/OS.java
[UTF-8] Tue Jul 25 21:52:43 2017
@@ -142,11 +142,11 @@ public enum OS {
      *
      * @see System#load(String)
      */
-    private String nativeLibrary(final ClassLoader loader, String name) throws IOException
{
+    private String nativeLibrary(final ClassLoader loader, final String name) throws IOException
{
         if (libdir != null) {
             final String ext = unix ? ".so" : ".dll";
-            name = "native/" + libdir + '/' + name + ext;
-            final URL res = loader.getResource(name);
+            final String path = "native/" + libdir + '/' + name + ext;
+            final URL res = loader.getResource(path);
             if (res != null) {
                 try {
                     return new File(res.toURI()).getAbsolutePath();



Mime
View raw message