MiniDNS / minidns

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

Workaround this-escape warning for Java 21 #134

Closed vpa1977 closed 3 months ago

vpa1977 commented 5 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.