AAI-1523 Batch reformat aai-core
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / serialization / db / InMemoryGraphSingleton.java
index 0f4c3e7..90f71db 100644 (file)
  * limitations under the License.
  * ============LICENSE_END=========================================================
  */
-package org.onap.aai.serialization.db;
 
-import org.onap.aai.dbmap.DBConnectionType;
+package org.onap.aai.serialization.db;
 
 import org.janusgraph.core.JanusGraph;
+import org.onap.aai.dbmap.DBConnectionType;
 
 public class InMemoryGraphSingleton extends GraphSingleton {
 
-       private static JanusGraph inMemgraph;
-
-       private static class Helper {
-               private static final InMemoryGraphSingleton INSTANCE = new InMemoryGraphSingleton();
-       }
-
-       /**
-        * Gets the single instance of JanusGraphSingleton.
-        *
-        * @return single instance of JanusGraphSingleton
-        */
-       public static InMemoryGraphSingleton getInstance(JanusGraph graph) {
-               inMemgraph = graph;
-               return Helper.INSTANCE;
-       }
-
-       /**
-        * Gets the tx graph.
-        *
-        * @return the tx graph
-        */
-       @Override
-       public JanusGraph getTxGraph() {
-               return inMemgraph;
-       }
-
-       @Override
-       public JanusGraph getTxGraph(DBConnectionType connectionType) {
-               return inMemgraph;
-       }
+    private static JanusGraph inMemgraph;
+
+    private static class Helper {
+        private static final InMemoryGraphSingleton INSTANCE = new InMemoryGraphSingleton();
+    }
+
+    /**
+     * Gets the single instance of JanusGraphSingleton.
+     *
+     * @return single instance of JanusGraphSingleton
+     */
+    public static InMemoryGraphSingleton getInstance(JanusGraph graph) {
+        inMemgraph = graph;
+        return Helper.INSTANCE;
+    }
+
+    /**
+     * Gets the tx graph.
+     *
+     * @return the tx graph
+     */
+    @Override
+    public JanusGraph getTxGraph() {
+        return inMemgraph;
+    }
+
+    @Override
+    public JanusGraph getTxGraph(DBConnectionType connectionType) {
+        return inMemgraph;
+    }
 }