This commit is contained in:
Egor.Ushakov
2016-02-10 21:18:42 +03:00
parent 342f1ccbc3
commit 3bcfaa8037
3 changed files with 5 additions and 5 deletions
@@ -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;
}
@@ -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) {