Showing 591 of 2,492 total issues
Avoid deeply nested control flow statements. Open
Open
if (postCondition instanceof Condition) {
result.add((Condition) postCondition);
}
Avoid deeply nested control flow statements. Open
Open
if (!sync.contains(n)) {
((ChannelPlace) post).setErrors(((ChannelPlace) post).getErrors() - err);
}
Avoid deeply nested control flow statements. Open
Open
if (postCondition instanceof Condition) {
result.add((Condition) postCondition);
}
Avoid deeply nested control flow statements. Open
Open
if (e1 instanceof TransitionNode) {
TransitionNode[] subResult = new TransitionNode[2];
subResult[0] = (TransitionNode) e1;
subResult[1] = e;
result.add(subResult);
Avoid deeply nested control flow statements. Open
Open
if (((VisualSONConnection) con).getSemantics() == Semantics.ASYNLINE) {
this.sync = false;
}
Avoid deeply nested control flow statements. Open
Open
if (graph[i][j] > 0) ch = '1';
Avoid deeply nested control flow statements. Open
Open
if (g != null) {
g.updateVertexPosition(v.getLabel(), xDiff, yDiff);
ArrayList<VisualPage> refPages = getRefPages(visualCpog, refKey, v);
refPages.remove(page);
Method describeArcs
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static void describeArcs(ArrayList<String> expression, Set<VisualConnection> totalConnections,
HashSet<VisualConnection> visitedConnections, VisualVertex current,
ArrayList<VisualNode> vertices, VisualCpog visualCpog) {
Avoid deeply nested control flow statements. Open
Open
if (i.hasNext() && !"+".equals(expression.get(expression.size() - 1))) {
expression.add("+");
}
Avoid deeply nested control flow statements. Open
Open
if (graph[i][j] > 1) ch = '-';
Method processTransition
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private static void processTransition(Wtg wtg, TransitionEvent visitingTransition, Set<TransitionEvent> outputHasFired,
Set<String> firedBeforeOut, Integer index,
Map<TransitionEvent, Map<Signal, Pair<Boolean, Integer>>> inputsFiredAfterOutput) {
Avoid deeply nested control flow statements. Open
Open
for (Signal signal : guardedSignals) {
inputsFiredAfterOutput.get(transition).put(signal, new Pair<>(true, 0));
}
Avoid deeply nested control flow statements. Open
Open
for (MathNode node : wtg.getPostset(entry)) {
if ((isFirstTransition(wtg, node)) && (isWaveformInChoice(wtg, waveform))) {
DialogUtils.showError("Signal '" + wtg.getName(entry.getSignal())
+ "' cannot be fired immediately after a choice, in waveform '"
+ wtg.getName(waveform) + "'.");
Method getTableCellRendererComponent
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int col) {
Method getTableCellRendererComponent
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) {
Method getTableCellRendererComponent
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) {
Method getTableCellRendererComponent
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) {
Avoid deeply nested control flow statements. Open
Open
if (uncoveredNeighbours.get(v1) != null) {
uncoveredNeighbours.get(v1).remove(v2);
}
Method getTableCellRendererComponent
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public Component getTableCellRendererComponent(JTable table, Object value,
boolean isSelected, boolean hasFocus, int row, int column) {
Avoid deeply nested control flow statements. Open
Open
if (attrSet[attrIter] && (attrIter == outer ||
attrIter == inner)) {
game.adjMatrix[outer][inner] = false;
}