Skip to content

Commit

Permalink
- adds workaround for finalizer attacks
Browse files Browse the repository at this point in the history
  • Loading branch information
baywet committed Dec 18, 2023
1 parent 55460e2 commit 6a71408
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ public FormParseNode(@Nonnull final String rawString) {
}
}

@SuppressWarnings("removal")
protected final void finalize() throws Throwable {
// this is to prevent finalizer attacks, remove when java 9 is the minimum supported version
}

private String sanitizeKey(@Nonnull final String key) {
Objects.requireNonNull(key);
try {
Expand Down

0 comments on commit 6a71408

Please sign in to comment.