File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/gr/uom/java/xmi Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments