You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class SomeSingleton {
private static SomeSingleton uniqueInstance = null;
private SomeSingleton() {}
@Synchronized
public static SomeSingleton getInstance() {
if (uniqueInstance == null)
uniqueInstance = new SomeSingleton();
return uniqueInstance;
}
public void someMethod() {}
}
Any reference to SomeSingleton.getInstance().someMethod() in the editor is underlined in red as error: SomeSingleton cannot be resolved to a type Java(16777218)
The code build fine with gradle from the command line, without any errors.
I have a class implementing singleton pattern:
Any reference to SomeSingleton.getInstance().someMethod() in the editor is underlined in red as error:
SomeSingleton cannot be resolved to a type Java(16777218)
The code build fine with gradle from the command line, without any errors.
My vscode setup:
The text was updated successfully, but these errors were encountered: