]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.common/src/org/simantics/db/common/procedure/single/SyncReadProcedure.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.db.common / src / org / simantics / db / common / procedure / single / SyncReadProcedure.java
index 4c8b96f109f6963d12c9ff39bc2993e35da91f1f..0aad150ac2b2b3fe83fb8a5f31514d18e733b74f 100644 (file)
@@ -1,34 +1,34 @@
-package org.simantics.db.common.procedure.single;\r
-\r
-import org.simantics.db.AsyncReadGraph;\r
-import org.simantics.db.exception.DatabaseException;\r
-import org.simantics.db.procedure.AsyncProcedure;\r
-\r
-final public class SyncReadProcedure<T> implements AsyncProcedure<T> {\r
-\r
-       private Throwable exception = null;\r
-       public T result = null;\r
-       \r
-       @Override\r
-       public synchronized void execute(AsyncReadGraph graph, T t) {\r
-               result = t;\r
-       }\r
-\r
-       @Override\r
-       public void exception(AsyncReadGraph graph, Throwable t) {\r
-               exception = t;\r
-       }\r
-       \r
-       public void checkAndThrow() throws DatabaseException {\r
-               if(exception != null) {\r
-                       if (exception instanceof DatabaseException)\r
-                               throw (DatabaseException) exception;\r
-                       else\r
-                               throw new DatabaseException(\r
-                                               "Unexpected exception in ReadGraph.syncRequest(AsyncRead)",\r
-                                               exception);\r
-               }\r
-       }\r
-       \r
-}\r
-\r
+package org.simantics.db.common.procedure.single;
+
+import org.simantics.db.AsyncReadGraph;
+import org.simantics.db.exception.DatabaseException;
+import org.simantics.db.procedure.AsyncProcedure;
+
+final public class SyncReadProcedure<T> implements AsyncProcedure<T> {
+
+       private Throwable exception = null;
+       public T result = null;
+       
+       @Override
+       public synchronized void execute(AsyncReadGraph graph, T t) {
+               result = t;
+       }
+
+       @Override
+       public void exception(AsyncReadGraph graph, Throwable t) {
+               exception = t;
+       }
+       
+       public void checkAndThrow() throws DatabaseException {
+               if(exception != null) {
+                       if (exception instanceof DatabaseException)
+                               throw (DatabaseException) exception;
+                       else
+                               throw new DatabaseException(
+                                               "Unexpected exception in ReadGraph.syncRequest(AsyncRead)",
+                                               exception);
+               }
+       }
+       
+}
+