Skip to content
Snippets Groups Projects
Commit 97038fa8 authored by Lukas Ladenberger's avatar Lukas Ladenberger
Browse files

applied find bugs

parent f203f468
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,6 @@ public class SignalFigure extends AbstractBMotionFigure {
p1.y = p1.y + 4;
p2.y = p2.y + 8;
p3.y = p3.y;
arrow.addPoint(p1);
arrow.addPoint(p2);
......
......@@ -172,11 +172,11 @@ public class Visualization extends BControl {
return control;
}
for (BConnection c : control.getSourceConnections()) {
if (c.getIcon().equals(ID))
if (c.getID().equals(ID))
return c;
}
for (BConnection c : control.getTargetConnections()) {
if (c.getIcon().equals(ID))
if (c.getID().equals(ID))
return c;
}
if (control.getChildrenArray().size() > 0) {
......
......@@ -101,12 +101,10 @@ public class TableObserver extends Observer {
String content = rows.get(i - numberOfOldRows);
if (content != null && content.length() > 0)
if (content != null && content.length() > 0) {
content = UnicodeTranslator.toAscii(content);
content = content.replaceAll("^\\(", "");
content = content.replaceAll("\\)$", "");
List<String> columns = split2(content, '#');
int numberOfNewColumns = columns.size();
......@@ -127,8 +125,9 @@ public class TableObserver extends Observer {
BControl cell = column.getChildrenArray().get(i);
if (val != null && val.length() > 0)
val = UnicodeTranslator.toUnicode(val);
cell.setAttributeValue(AttributeConstants.ATTRIBUTE_TEXT,
val);
cell.setAttributeValue(
AttributeConstants.ATTRIBUTE_TEXT, val);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment