File tree Expand file tree Collapse file tree 6 files changed +9
-7
lines changed
build-logic/src/main/groovy
minidns-async/src/main/java/org/minidns/source/async
minidns-client/src/main/java/org/minidns/source
minidns-core/src/main/java/org/minidns
minidns-dnssec/src/main/java/org/minidns/dnssec Expand file tree Collapse file tree 6 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ jar {
151
151
}
152
152
153
153
checkstyle {
154
- toolVersion = ' 8.27 '
154
+ toolVersion = ' 10.18.2 '
155
155
156
156
if (project in gplLicensedProjects) {
157
157
configProperties. checkstyleLicenseHeader = " ${ project.name} -gplv3-license-header"
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ void cancelled(AsyncDnsRequest asyncDnsRequest) {
138
138
SELECTOR .wakeup ();
139
139
}
140
140
141
- private static class Reactor implements Runnable {
141
+ private static final class Reactor implements Runnable {
142
142
@ Override
143
143
public void run () {
144
144
while (!Thread .interrupted ()) {
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ public interface DnsDataSource {
40
40
*/
41
41
void setTimeout (int timeout );
42
42
43
- public interface OnResponseCallback {
43
+ interface OnResponseCallback {
44
44
void onResponse (DnsMessage request , DnsQueryResult result );
45
45
}
46
46
Original file line number Diff line number Diff line change @@ -235,12 +235,14 @@ public static String toSafeRepesentation(String dnsLabel) {
235
235
}
236
236
237
237
private static boolean isLdhOrMaybeUnderscore (char c , boolean underscore ) {
238
+ // CHECKSTYLE:OFF
238
239
return (c >= 'a' && c <= 'z' )
239
240
|| (c >= 'A' && c <= 'Z' )
240
241
|| (c >= '0' && c <= '9' )
241
242
|| c == '-'
242
243
|| (underscore && c == '_' )
243
244
;
245
+ // CHECKSTYLE:ON
244
246
}
245
247
246
248
private static boolean consistsOnlyOfLdhAndMaybeUnderscore (String string , boolean underscore ) {
@@ -265,7 +267,7 @@ public static boolean consistsOnlyOfLettersDigitsHypenAndUnderscore(String strin
265
267
public static class LabelToLongException extends IllegalArgumentException {
266
268
267
269
/**
268
- *
270
+ *
269
271
*/
270
272
private static final long serialVersionUID = 1L ;
271
273
Original file line number Diff line number Diff line change @@ -484,8 +484,8 @@ public String toString() {
484
484
* @return True if this record is a valid answer.
485
485
*/
486
486
public boolean isAnswer (Question q ) {
487
- return (( q .type == type ) || ( q .type == TYPE .ANY ) ) &&
488
- (( q .clazz == clazz ) || ( q .clazz == CLASS .ANY ) ) &&
487
+ return (q .type == type || q .type == TYPE .ANY ) &&
488
+ (q .clazz == clazz || q .clazz == CLASS .ANY ) &&
489
489
q .name .equals (name );
490
490
}
491
491
Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ private Set<DnssecUnverifiedReason> verifyNsec(DnsMessage dnsMessage) throws IOE
271
271
return result ;
272
272
}
273
273
274
- private static class VerifySignaturesResult {
274
+ private static final class VerifySignaturesResult {
275
275
boolean sepSignatureRequired = false ;
276
276
boolean sepSignaturePresent = false ;
277
277
Set <DnssecUnverifiedReason > reasons = new HashSet <>();
You can’t perform that action at this time.
0 commit comments