Есть фрагмент кода:
public String getInstallPath () {
String commandLinePath = CommandLineSettings.getSettings().getInstallDir();
if (commandLinePath != null && !commandLinePath.isEmpty()) {
return commandLinePath;
} else {
return getProperty("installPath", OSUtils.getDefInstallPath());
}
}
Здесь есть обращение к getSettings()
, который определен как:
@Getter
private static CommandLineSettings settings;
static {
settings = new CommandLineSettings();
}
При попытке получить объект появляется ошибка Cannot resolve method 'getSettings()'
. Как это можно поправить? Почему происходит такая проблема?