mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Bulk addAll/collection constructor used; other warnings fixed
This commit is contained in:
@@ -85,9 +85,7 @@ public class AnnotationProcessorsPanel extends JPanel {
|
||||
final ProcessorConfigProfile nodeProfile = ((ProfileNode)node.getParent()).myProfile;
|
||||
final List<ProcessorConfigProfile> profiles = new ArrayList<>();
|
||||
profiles.add(myDefaultProfile);
|
||||
for (ProcessorConfigProfile profile : myModuleProfiles) {
|
||||
profiles.add(profile);
|
||||
}
|
||||
profiles.addAll(myModuleProfiles);
|
||||
profiles.remove(nodeProfile);
|
||||
final JBPopup popup = JBPopupFactory.getInstance()
|
||||
.createPopupChooserBuilder(profiles)
|
||||
|
||||
@@ -63,10 +63,7 @@ public final class ModuleCompilerUtil {
|
||||
@NotNull
|
||||
private static <Node> List<Chunk<Node>> getSortedChunks(@NotNull Graph<Node> graph) {
|
||||
final Graph<Chunk<Node>> chunkGraph = toChunkGraph(graph);
|
||||
final List<Chunk<Node>> chunks = new ArrayList<>(chunkGraph.getNodes().size());
|
||||
for (final Chunk<Node> chunk : chunkGraph.getNodes()) {
|
||||
chunks.add(chunk);
|
||||
}
|
||||
final List<Chunk<Node>> chunks = new ArrayList<>(chunkGraph.getNodes());
|
||||
DFSTBuilder<Chunk<Node>> builder = new DFSTBuilder<>(chunkGraph);
|
||||
if (!builder.isAcyclic()) {
|
||||
LOG.error("Acyclic graph expected");
|
||||
|
||||
Reference in New Issue
Block a user