mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
jdk8 compilation
This commit is contained in:
+4
-2
@@ -36,7 +36,7 @@ public class JavacConfiguration implements PersistentStateComponent<JpsJavaCompi
|
||||
myProject = project;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public JpsJavaCompilerOptions getState() {
|
||||
JpsJavaCompilerOptions state = new JpsJavaCompilerOptions();
|
||||
@@ -45,11 +45,13 @@ public class JavacConfiguration implements PersistentStateComponent<JpsJavaCompi
|
||||
return state;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void loadState(JpsJavaCompilerOptions state) {
|
||||
XmlSerializerUtil.copyBean(state, mySettings);
|
||||
}
|
||||
|
||||
public static JpsJavaCompilerOptions getOptions(Project project, Class<? extends JavacConfiguration> aClass) {
|
||||
return ((JavacConfiguration)ServiceManager.getService(project, aClass)).mySettings; // cast is not redundant for JDK 7 for accessing private members of T from class <? extends T>
|
||||
JavacConfiguration configuration = ServiceManager.getService(project, aClass);
|
||||
return configuration.mySettings;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user