MiniDNS / minidns

DNS library for Android and Java SE
Other
226 stars 61 forks source link

Workaround this-escape warning for Java 21 #134

Closed vpa1977 closed 7 months ago

vpa1977 commented 9 months ago

Java 21 generates 'this-escape' warning if an overridable method is called from the constructor.

'EdnsOption' calls an abstract method from the constructor, producing a genuine warning. Changing this requires redesign, so the warning is only suppressed.

'DnssecClient' calls a public method that can be made final.