Skip to content

Commit

Permalink
Use Attributes copy constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Mar 3, 2023
1 parent 3e872d8 commit b0b4f70
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ public OutputStream output() {
}

public Attributes getAttributes() {
Attributes attr = new Attributes();
attr.copy(attributes);
return attr;
return new Attributes(attributes);
}

public void setAttributes(Attributes attr) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ public OutputStream output() {
}

public Attributes getAttributes() {
Attributes attr = new Attributes();
attr.copy(attributes);
return attr;
return new Attributes(attributes);
}

public void setAttributes(Attributes attr) {
Expand Down

0 comments on commit b0b4f70

Please sign in to comment.