refactoring concerning equalsDescription

This commit is contained in:
hneemann 2016-06-01 14:01:25 +02:00
parent ada7401dbf
commit f8b42d95cf
2 changed files with 2 additions and 2 deletions

View File

@ -470,7 +470,7 @@ public class Circuit {
public ObservableValues getOutputNames() throws PinException {
ArrayList<ObservableValue> pinList = new ArrayList<>();
for (VisualElement ve : visualElements) {
if (ve.getElementName().equals(Out.DESCRIPTION.getName())) {
if (ve.equalsDescription(Out.DESCRIPTION)) {
String name = ve.getElementAttributes().getLabel();
if (name == null || name.length() == 0)
throw new PinException(Lang.get("err_pinWithoutName"));

View File

@ -29,7 +29,7 @@ public class NetList implements Iterable<Net> {
add(w);
for (VisualElement ve : circuit.getElements())
if (ve.getElementName().equals(Tunnel.DESCRIPTION.getName())) {
if (ve.equalsDescription(Tunnel.DESCRIPTION)) {
Vector pos = ve.getPos();
Net found = null;
for (Net n : netList)