RenderGraph.java checkstyle
import com.google.common.graph.GraphBuilder;
import com.google.common.graph.MutableGraph;
import java.util.ArrayList;
-import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.terasology.engine.SimpleUri;
import org.terasology.naming.Name;
import org.terasology.rendering.ShaderManager;
-import org.terasology.rendering.dag.dependencyConnections.*;
+import org.terasology.rendering.dag.dependencyConnections.BufferPairConnection;
+import org.terasology.rendering.dag.dependencyConnections.DependencyConnection;
+import org.terasology.rendering.dag.dependencyConnections.FboConnection;
/**
* TODO: Add javadocs
@@ -129,7 +130,7 @@ public Node findAka(String simpleUriAka) {
return findAka(new Name(simpleUriAka));
}
- public void postConnectAll() {
+ private void postConnectAll() {
// for each node in the graph
for (Node fromNode : nodeMap.values()) {
// for each of node's output connection
@@ -145,7 +146,7 @@ public void postConnectAll() {
}
}
- public void connect(Node... nodeList) {
+ private void connect(Node... nodeList) {
Preconditions.checkArgument(nodeList.length > 1, "Expected at least 2 nodes as arguments to connect() - found " + nodeList.length);
Node fromNode = null;
@@ -731,13 +732,14 @@ public void reconnectAllConnectedInputsTo(DependencyConnection connectionToRepla
if (!connectionToReplace.getConnectedConnections().isEmpty()) {
// Hard to deal with concurency problems, iterate copy, edit original
- final HashMap<String, DependencyConnection> connectedConnections = connectionToReplace.getConnectedConnections();
- final HashMap<String, DependencyConnection> connectedConnectionsCopy = Maps.newHashMap(connectionToReplace.getConnectedConnections());
+ final Map<String, DependencyConnection> connectedConnections = connectionToReplace.getConnectedConnections();
+ final Map<String, DependencyConnection> connectedConnectionsCopy = Maps.newHashMap(connectionToReplace.getConnectedConnections());
for (DependencyConnection connectedConnectionCopy : connectedConnectionsCopy.values()) {
DependencyConnection toConnection = connectedConnections.get(connectedConnectionCopy.getName());
if (!toConnection.getParentNode().equals(fromNode.getUri())) {
// TODO potteintionally harmful ID guesswork
- reconnectInputToOutput(findNode(toConnection.getParentNode()), DependencyConnection.getIdFromConnectionName(toConnection.getName()), newOutputConnection, connectionType, true);
+ reconnectInputToOutput(findNode(toConnection.getParentNode()), DependencyConnection.getIdFromConnectionName(toConnection.getName()),
+ newOutputConnection, connectionType, true);
// Node toNode = findNode(toConnection.getParentNode());
// if (!areConnected(fromNode, toNode)) {
// connect(fromNode, toNode);
