[java-atk-wrapper] Remove fileSeperator object



commit 11716b30459369780f655886dd989821e5dd9f99
Author: Magdalen Berns <m berns thismagpie com>
Date:   Tue Nov 11 20:09:58 2014 +0000

    Remove fileSeperator object
    
    It's not really needed and it takes up space

 JavaInfo.java |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/JavaInfo.java b/JavaInfo.java
index 24dbcd5..30dbee0 100644
--- a/JavaInfo.java
+++ b/JavaInfo.java
@@ -1,8 +1,7 @@
 public class JavaInfo {
        public JavaInfo() {
                String strHome = System.getProperty("java.home");
-               String fileSep = System.getProperty ("file.separator");
-               if (strHome.endsWith( fileSep + "jre" )) {
+               if (strHome.endsWith( "/" + "jre" )) {
                        strHome = strHome.substring(0, strHome.length()-4);
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]