WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit f38cc2e

Browse files
Enable Spotbugs and Spotless for modules that require JDK21+. (#10092)
1 parent ee5e0f4 commit f38cc2e

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

dd-smoke-tests/concurrent/java-21/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ tasks.named("forbiddenApisMain") {
3232
failOnMissingClasses = false
3333
}
3434

35-
['spotlessApply', 'spotlessCheck', 'spotlessJava', 'spotbugsMain'].each {
36-
tasks.named(it) { enabled = false }
37-
}
38-
3935
application {
4036
mainClass = 'datadog.smoketest.concurrent.ConcurrentApp'
4137
}

dd-smoke-tests/concurrent/java-21/src/main/java/datadog/smoketest/concurrent/VirtualThreadStartCalculator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public long computeFibonacci(int n) throws ExecutionException, InterruptedExcept
1414

1515
@Override
1616
public void close() {
17+
// No-op.
1718
}
1819

1920
public static class FibonacciExecuteTask implements Runnable {

dd-smoke-tests/concurrent/java-25/build.gradle

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ tasks.named("forbiddenApisMain") {
4545
failOnMissingClasses = false
4646
}
4747

48-
['spotlessApply', 'spotlessCheck', 'spotlessJava', 'spotbugsMain'].each {
49-
tasks.named(it) { enabled = false }
50-
}
51-
5248
application {
5349
mainClass = 'datadog.smoketest.concurrent.ConcurrentApp'
5450
}

dd-smoke-tests/concurrent/java-25/src/main/java/datadog/smoketest/concurrent/NestedTasks.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ void task2() {
3333
void subTask1() {
3434
// Some basic computations here
3535
}
36+
3637
@WithSpan("great-child1-2")
3738
void subTask2() {
3839
// Some basic computations here

0 commit comments

Comments
 (0)