Skip to content
Snippets Groups Projects
Commit c3fd3ed9 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

modificationResidue id is not used when comparing maps (id might vary due to...

modificationResidue id is not used when comparing maps (id might vary due to import/export format differences)
parent 32c2362f
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!545Import from sbgn issue
Pipeline #7948 passed
......@@ -50,8 +50,8 @@ public abstract class AbstractRegionModification extends ModificationResidue {
} else {
position = "Point2D[" + format.format(getPosition().getX()) + "," + format.format(getPosition().getY()) + "]";
}
String result = "[" + this.getClass().getSimpleName() + "]: " + getIdModificationResidue() + "," + getName() + ","
+ getWidth() + "," + getHeight() + "," + position;
String result = "[" + this.getClass().getSimpleName() + "]: " + getName() + "," + getWidth() + "," + getHeight()
+ "," + position;
return result;
}
......
......@@ -15,7 +15,7 @@ public abstract class AbstractSiteModification extends ModificationResidue {
*
*/
private static final long serialVersionUID = 1L;
/**
* State in which this modification is.
*/
......@@ -42,10 +42,9 @@ public abstract class AbstractSiteModification extends ModificationResidue {
@Override
public String toString() {
DecimalFormat format = new DecimalFormat("#.##");
String result = getIdModificationResidue() + "," + getName() + "," + getState() + ",Point2D["
+ format.format(getPosition().getX()) + "," + format.format(getPosition().getY()) + "]";
String result = getName() + "," + getState() + ",Point2D[" + format.format(getPosition().getX()) + ","
+ format.format(getPosition().getY()) + "]";
return result;
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment