Showing 591 of 2,492 total issues
Avoid deeply nested control flow statements. Open
Open
if (!s.isEmpty()) {
LogUtils.logInfo(s);
}
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(final JTable table, final Object value,
final boolean isSelected, final boolean hasFocus, final int row, final int col) {
Avoid deeply nested control flow statements. Open
Open
if (!bbInRootSpace.contains(position)) {
changeLevelUp(editor);
return;
}
Avoid deeply nested control flow statements. Open
Open
if (!edgeNameToIsCovered.get(u + j) && !edgeNameToIsCovered.get(j + u)) {
edgeNameToIsCovered.replace(u + j, true);
edgeNameToIsCovered.replace(j + u, true);
int temp = vertexToUncoveredDegree.get(u);
Avoid deeply nested control flow statements. Open
Open
if (fileHandler.accept(file)) {
JMenuItem mi = new JMenuItem(fileHandler.getDisplayName());
handlers.put(mi, fileHandler);
mi.addActionListener(event -> handlers.get(event.getSource()).execute(file));
popup.add(mi);
Avoid deeply nested control flow statements. Open
Open
if (tt == t) continue;
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 (!i.equals(s)) {
finalCliquesAsEdges.get(currentCliqueIndex).add(i + s);
finalCliquesAsEdges.get(currentCliqueIndex).add(s + i);
// Updating the number of cliques the edge is contained in
Method createTransition
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public static VisualSignalTransition createTransition(VisualStg stg, String name, Signal.Type type,
SignalTransition.Direction direction, double x, double y) {
Avoid deeply nested control flow statements. Open
Open
if (!optionalEdgeSet.contains(u + j) || !optionalEdgeSet.contains(j + u)) {
isOptional = false;
}
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) {
Avoid deeply nested control flow statements. Open
Open
if (!optionalEdgeSet.contains(u + j) || !optionalEdgeSet.contains(j + u)) {
isOptional = false;
}
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 generateSignalStg
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public SignalStg generateSignalStg(SignalLayoutType layoutType, String signalName, Point2D pos, Signal.Type type,
int fallCount, int riseCount) throws InvalidConnectionException {
Avoid deeply nested control flow statements. Open
Open
if (!edgeNameToIsCovered.get(u + j) && !edgeNameToIsCovered.get(j + u)) {
edgeNameToIsCovered.replace(u + j, true);
edgeNameToIsCovered.replace(j + u, true);
int temp = vertexToUncoveredDegree.get(u);
Avoid deeply nested control flow statements. Open
Open
if (uncoveredNeighbours.get(v2) != null) {
uncoveredNeighbours.get(v2).remove(v1);
}
Method updateGridCrosses
has 6 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
private void updateGridCrosses(Viewport viewport, double interval, double crossRadius,
double[][] positions, int[][] screenPositions, Path2D shape) {
Avoid deeply nested control flow statements. Open
Open
if (doubleClickAction != null) {
doubleClickAction.accept(node);
}
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) {