Skip to content

Commit

Permalink
Java 8 compat
Browse files Browse the repository at this point in the history
Can't use the forRemoval, as thats 9+
  • Loading branch information
jhy committed Dec 16, 2024
1 parent ec2897e commit 579e484
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jsoup/nodes/Document.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,14 @@ public Charset charset() {
@deprecated this setting has no effect; the meta charset element is always updated when
{@link Document#charset(Charset)} is called. This method will be removed in jsoup 1.20.1.
*/
@Deprecated(forRemoval = true, since = "1.19.1")
@Deprecated
public void updateMetaCharsetElement(boolean noop) {}

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'noop' is never used.

/**
@deprecated this setting has no effect; the meta charset element is always updated when
{@link Document#charset(Charset)} is called. This method will be removed in jsoup 1.20.1.
*/
@Deprecated(forRemoval = true, since = "1.19.1")
@Deprecated
public boolean updateMetaCharsetElement() {
return true;
}
Expand Down

0 comments on commit 579e484

Please sign in to comment.