Showing 591 of 2,492 total issues
Avoid deeply nested control flow statements. Open
Open
if (preCondition instanceof Condition) {
result.add((Condition) preCondition);
}
Avoid deeply nested control flow statements. Open
Open
for (Time ndin : preset) {
ndin.setEndTime(nd.getStartTime());
}
Avoid deeply nested control flow statements. Open
Open
if (!hasMarking) {
c2.setMarked(false);
}
Avoid deeply nested control flow statements. Open
Open
if (!nd.getEndTime().isSpecified()) {
nd.setEndTime(end);
addModify(t, 3);
} else {
if (!nd.getEndTime().equals(end)) {
Avoid deeply nested control flow statements. Open
Open
if (u.contains(e3)) {
u.remove(e3);
stack.push(e3);
}
Avoid deeply nested control flow statements. Open
Open
if (n instanceof TransitionNode) {
((TransitionNode) n).setFillColor(new Color(255, 228, 181));
}
Method buildCpog
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
protected void buildCpog(int n, int m, char[][][] constraints,
VisualCpog cpog, VisualVertex[] vertices, HashMap<String,
BooleanFormula> formulaeName) {
Avoid deeply nested control flow statements. Open
Open
if ((!q.isEmpty() || i.hasNext()) && !"+".equals(expression.get(expression.size() - 1))) {
expression.add("+");
}
Avoid deeply nested control flow statements. Open
Open
if ("to".equals(piece[0])) {
VisualSONConnection con = null;
try {
if (piece[2].equals(Semantics.PNLINE.toString())) {
con = (VisualSONConnection) visualNet.connect(p, e, Semantics.PNLINE);
Avoid deeply nested control flow statements. Open
Open
if (constraints[k][i][i] == '0' || constraints[k][j][j] == '0') ch = '-';
Avoid deeply nested control flow statements. Open
Open
if (node instanceof TransitionEvent) {
TransitionEvent dstTransition = (TransitionEvent) node;
if (dstTransition.getSignal().getType() == Signal.Type.INPUT) {
String msg = "Internal signal '" + wtg.getName(transition.getSignal())
+ "' triggers input signal '"
Avoid deeply nested control flow statements. Open
Open
if (!hasPreAsyn) {
setSyncErrNum(eventCycle, phases, isLower);
removeList.addAll(eventCycle);
b = true;
break;
Avoid deeply nested control flow statements. Open
Open
if (u.contains(e3)) {
u.remove(e3);
stack.push(e3);
}
Avoid deeply nested control flow statements. Open
Open
for (ONGroup group : getBSONAlg().getLowerGroups(pre)) {
if (preMax.containsAll(getRelationAlg().getONFinal(group))) {
containFinal = true;
break;
}
Avoid deeply nested control flow statements. Open
Open
if (!containFinal) {
match = false;
}
Avoid deeply nested control flow statements. Open
Open
for (int j = 0; j < n; j++) {
if (graph[t][j] > 0) graph[i][j] = 2;
}
Avoid deeply nested control flow statements. Open
Open
if (formulaToString(nextArc.getCondition()).equals(arcCondition)) {
insert += " -> ";
String nextVertexCondition = formulaToString(nextVertex.getCondition());
String childCondition = formulaToString(child.getCondition());
if (!"1".equals(nextVertexCondition) || !childCondition.equals(arcCondition)) {
Avoid deeply nested control flow statements. Open
Open
for (Time ndin : postset) {
ndin.setStartTime(nd.getEndTime());
}
Avoid deeply nested control flow statements. Open
Open
if ((n2 instanceof Condition) && net.getSONConnectionType(post, n2) == Semantics.PNLINE) {
result.add((Condition) n2);
}
Avoid deeply nested control flow statements. Open
Open
for (Condition c3 : bsonAlg.getUpperConditions(c2)) {
if (c3.isMarked()) {
hasMarking = true;
}
}