Skip to content

Commit

Permalink
Override clone()
Browse files Browse the repository at this point in the history
To prevent warnings
  • Loading branch information
jhy committed Jan 2, 2022
1 parent d8fff2d commit 3d136d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/org/jsoup/parser/ParseErrorList.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,10 @@ public static ParseErrorList noTracking() {
public static ParseErrorList tracking(int maxSize) {
return new ParseErrorList(INITIAL_CAPACITY, maxSize);
}

@Override
public Object clone() {
// all class fields are primitive, so native clone is enough.
return super.clone();
}
}

0 comments on commit 3d136d7

Please sign in to comment.