]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/Utils.java
Declare asyncCount volatile since it is accessed from multiple threads
[simantics/platform.git] / bundles / org.simantics.db.procore / src / fi / vtt / simantics / procore / internal / Utils.java
index b0ac28645dda1e034eccbf93bdc8d6a1658d26cb..b02edf172f782612289f6cadef5e528c7d9ea4a3 100644 (file)
@@ -1,25 +1,25 @@
-package fi.vtt.simantics.procore.internal;\r
-\r
-import java.io.File;\r
-\r
-import org.eclipse.core.runtime.IPath;\r
-import org.eclipse.core.runtime.Platform;\r
-import org.osgi.framework.Bundle;\r
-\r
-public class Utils {\r
-    public static File getBaseFile(Bundle b) {\r
-        if(Platform.isRunning()) {\r
-            IPath state = Platform.getStateLocation(b);\r
-            return state.append("debug").toFile();\r
-        } else {\r
-            return new File("");\r
-        }\r
-    }\r
-    public static long convertHexStringToLong(String hex) {\r
-        if (hex.length() < 16)\r
-            return Long.parseLong(hex, 16);\r
-        long f = Long.parseLong(hex.substring(0,1), 16) << 60;\r
-        long l = Long.parseLong(hex.substring(1,16), 16);\r
-        return f | l;\r
-    }\r
-}\r
+package fi.vtt.simantics.procore.internal;
+
+import java.io.File;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Platform;
+import org.osgi.framework.Bundle;
+
+public class Utils {
+    public static File getBaseFile(Bundle b) {
+        if(Platform.isRunning()) {
+            IPath state = Platform.getStateLocation(b);
+            return state.append("debug").toFile();
+        } else {
+            return new File("");
+        }
+    }
+    public static long convertHexStringToLong(String hex) {
+        if (hex.length() < 16)
+            return Long.parseLong(hex, 16);
+        long f = Long.parseLong(hex.substring(0,1), 16) << 60;
+        long l = Long.parseLong(hex.substring(1,16), 16);
+        return f | l;
+    }
+}