mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -357,7 +357,8 @@ public class NodeRendererSettings implements PersistentStateComponent<Element> {
|
||||
if (expressions != null && expressions.length > 0) {
|
||||
final ArrayList<Pair<String, TextWithImports>> childrenList = new ArrayList<>(expressions.length);
|
||||
for (final String[] expression : expressions) {
|
||||
childrenList.add(new Pair<String, TextWithImports>(expression[0], new TextWithImportsImpl(CodeFragmentKind.EXPRESSION, expression[1], "", StdFileTypes.JAVA)));
|
||||
childrenList.add(
|
||||
new Pair<>(expression[0], new TextWithImportsImpl(CodeFragmentKind.EXPRESSION, expression[1], "", StdFileTypes.JAVA)));
|
||||
}
|
||||
childrenRenderer.setChildren(childrenList);
|
||||
}
|
||||
|
||||
@@ -303,8 +303,7 @@ public class HotSwapUIImpl extends HotSwapUI implements ProjectComponent {
|
||||
|
||||
private class MyCompilationStatusListener implements CompilationStatusListener {
|
||||
|
||||
private final AtomicReference<Map<String, List<String>>>
|
||||
myGeneratedPaths = new AtomicReference<>(new HashMap<String, List<String>>());
|
||||
private final AtomicReference<Map<String, List<String>>> myGeneratedPaths = new AtomicReference<>(new HashMap<>());
|
||||
private final THashSet<File> myOutputRoots;
|
||||
|
||||
private MyCompilationStatusListener() {
|
||||
@@ -328,7 +327,7 @@ public class HotSwapUIImpl extends HotSwapUI implements ProjectComponent {
|
||||
}
|
||||
|
||||
public void compilationFinished(boolean aborted, int errors, int warnings, CompileContext compileContext) {
|
||||
final Map<String, List<String>> generated = myGeneratedPaths.getAndSet(new HashMap<String, List<String>>());
|
||||
final Map<String, List<String>> generated = myGeneratedPaths.getAndSet(new HashMap<>());
|
||||
if (myProject.isDisposed()) {
|
||||
return;
|
||||
}
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ public final class EnumerationChildrenRenderer extends ReferenceRenderer impleme
|
||||
public static final @NonNls String CHILD_NAME = "Name";
|
||||
|
||||
public EnumerationChildrenRenderer() {
|
||||
this(new ArrayList<Pair<String, TextWithImports>>());
|
||||
this(new ArrayList<>());
|
||||
}
|
||||
|
||||
public EnumerationChildrenRenderer(List<Pair<String, TextWithImports>> children) {
|
||||
|
||||
Reference in New Issue
Block a user