Skip to content

Commit

Permalink
Avoid printing access modifier for enum constants
Browse files Browse the repository at this point in the history
  • Loading branch information
tsantalis committed Jan 9, 2025
1 parent 727dfd9 commit d6dd518
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/gr/uom/java/xmi/UMLAttribute.java
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,10 @@ public String toString() {

public String toQualifiedString() {
StringBuilder sb = new StringBuilder();
sb.append(visibility);
sb.append(" ");
if(!(this instanceof UMLEnumConstant)) {
sb.append(visibility);
sb.append(" ");
}
sb.append(name);
sb.append(" : ");
if(this instanceof UMLEnumConstant) {
Expand Down

0 comments on commit d6dd518

Please sign in to comment.