Skip to content

Commit 9d18cba

Browse files
committed
Improve comment mappings (#976)
JabRef/jabref-koppor#716 jabgui/src/main/java/org/jabref/gui/importer/NewEntryAction.java
1 parent ef8a68d commit 9d18cba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/gr/uom/java/xmi/UMLCommentGroup.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public List<UMLComment> getGroup() {
2525
}
2626

2727
public boolean sameText(UMLCommentGroup other) {
28-
if(this.group.size() == other.group.size() && this.group.size() > 1) {
28+
if(this.group.size() == other.group.size() && this.group.size() > 0) {
2929
int matches = 0;
3030
for(int i=0; i<this.group.size(); i++) {
3131
if(this.group.get(i).getText().equals(other.group.get(i).getText())) {
@@ -72,7 +72,7 @@ public UMLCommentListDiff modifiedMatchingText(UMLCommentGroup other) {
7272
return diff;
7373
}
7474
}
75-
else if(this.group.size() != other.group.size() && this.group.size() > 1) {
75+
else if(this.group.size() != other.group.size() && this.group.size() > 0) {
7676
UMLCommentListDiff diff = new UMLCommentListDiff(this, other);
7777
if(diff.isManyToManyReformat() && diff.getDeletedComments().isEmpty() && diff.getAddedComments().isEmpty()) {
7878
return diff;

0 commit comments

Comments
 (0)