We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cff37f5 commit 08f1b96Copy full SHA for 08f1b96
tmc-plugin/src/fi/helsinki/cs/tmc/model/TmcCoreSingleton.java
@@ -5,12 +5,12 @@
5
6
public class TmcCoreSingleton {
7
8
- private static TmcCore defaultInstance;
9
-
+ private static final TmcCore defaultInstance = new TmcCore(NbTmcSettings.getDefault());
+
10
+ /**
11
+ * Returns singleton instance of the {@link TmcCore}.
12
+ */
13
public static TmcCore getInstance() {
- if (defaultInstance == null) {
- defaultInstance = new TmcCore(NbTmcSettings.getDefault());
- }
14
return defaultInstance;
15
}
16
-}
+}
0 commit comments