MiniDNS / minidns

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

Add explicit cast to byte due to lossy-conversions warning. #133

Closed vpa1977 closed 7 months ago

vpa1977 commented 9 months ago

When building with Java 21, the following warning appears in the build log:

:minidns-dane-java7:debianMavenPom (Thread[#94,Task worker for ':' Thread 18,5,main]) completed. Took 0.031 secs.
/<<PKGBUILDDIR>>/minidns-core/src/main/java/org/minidns/record/NSEC.java:113: warning: [lossy-conversions] implicit cast from int to byte in compound assignment is possibly lossy
                bitmap[a] |= 128 >> b;
                                 ^
error: warnings found and -Werror specified
1 error
1 warning
:minidns-core:compileJava FAILED

Add explicit cast to byte to avoid this warning.