There is a code snippet:
public String getInstallPath () { String commandLinePath = CommandLineSettings.getSettings().getInstallDir(); if (commandLinePath != null && !commandLinePath.isEmpty()) { return commandLinePath; } else { return getProperty("installPath", OSUtils.getDefInstallPath()); } }
There is a call to getSettings()
, which is defined as:
@Getter private static CommandLineSettings settings; static { settings = new CommandLineSettings(); }
When you try to get an object, the error Cannot resolve method 'getSettings()'
appears. How can this be corrected? Why is there such a problem?