Skip to content

Commit

Permalink
Merge pull request #134 from vpa1977/this-escape
Browse files Browse the repository at this point in the history
Workaround this-escape warning for Java 21
  • Loading branch information
Flowdalic authored Apr 1, 2024
2 parents 15a8da3 + f66ea3b commit 819256e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ protected EdnsOption(int optionCode, byte[] optionData) {
this.optionData = optionData;
}

@SuppressWarnings("this-escape")
protected EdnsOption(byte[] optionData) {
this.optionCode = getOptionCode().asInt;
this.optionLength = optionData.length;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ protected String isResponseAcceptable(DnsMessage response) {
* the DNSKEY record for the domain and using the key with first flags bit set
* (also called key signing key)
*/
public void addSecureEntryPoint(DnsName name, byte[] key) {
public final void addSecureEntryPoint(DnsName name, byte[] key) {
knownSeps.put(name, key);
}

Expand Down

0 comments on commit 819256e

Please sign in to comment.