Skip to content

Commit 454a39d

Browse files
Spotless.
1 parent 71a8b84 commit 454a39d

File tree

7 files changed

+26
-8
lines changed

7 files changed

+26
-8
lines changed

dd-java-agent/agent-ci-visibility/src/main/java/datadog/trace/civisibility/execution/RetryUntilSuccessful.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
/** Retries a test case if it failed, up to a maximum number of times. */
1010
@SuppressFBWarnings(
1111
value = {"AT_NONATOMIC_OPERATIONS_ON_SHARED_VARIABLE", "AT_STALE_THREAD_WRITE_OF_PRIMITIVE"},
12-
justification = "TestExecutionPolicy instances are confined to a single thread and are not meant to be thread-safe")
12+
justification =
13+
"TestExecutionPolicy instances are confined to a single thread and are not meant to be thread-safe")
1314
public class RetryUntilSuccessful implements TestExecutionPolicy {
1415

1516
private final int maxExecutions;

dd-java-agent/agent-iast/src/main/java/com/datadog/iast/taint/TaintedMap.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ class TaintedMapImpl implements TaintedMap, Runnable {
103103
/**
104104
* Flag for the current alive tainted objects (red/black style marking for max age calculation).
105105
*/
106-
@SuppressFBWarnings(value = "AT_STALE_THREAD_WRITE_OF_PRIMITIVE", justification = "The design explicitly tolerates losses in high-concurrency scenarios. The delayed visibility of the generation flag can cause some entries to be purged a bit earlier or later than ideal, but this is still within the acceptable boundaries of the design.")
106+
@SuppressFBWarnings(
107+
value = "AT_STALE_THREAD_WRITE_OF_PRIMITIVE",
108+
justification =
109+
"The design explicitly tolerates losses in high-concurrency scenarios. The delayed visibility of the generation flag can cause some entries to be purged a bit earlier or later than ideal, but this is still within the acceptable boundaries of the design.")
107110
protected boolean generation;
108111

109112
/** Whether to collect the {@link IastMetric#TAINTED_FLAT_MODE} metric or not */

dd-java-agent/appsec/src/main/java/com/datadog/appsec/config/AppSecConfigServiceImpl.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,16 @@ public class AppSecConfigServiceImpl implements AppSecConfigService {
101101
.build()
102102
.adapter(Types.newParameterizedType(Map.class, String.class, Object.class));
103103

104-
@SuppressFBWarnings(value = "AT_STALE_THREAD_WRITE_OF_PRIMITIVE", justification = "The variable is only read and written by the single configuration-poller thread.")
104+
@SuppressFBWarnings(
105+
value = "AT_STALE_THREAD_WRITE_OF_PRIMITIVE",
106+
justification =
107+
"The variable is only read and written by the single configuration-poller thread.")
105108
private boolean hasUserWafConfig;
106109

107-
@SuppressFBWarnings(value = "AT_STALE_THREAD_WRITE_OF_PRIMITIVE", justification = "The variable is only read and written by the single configuration-poller thread.")
110+
@SuppressFBWarnings(
111+
value = "AT_STALE_THREAD_WRITE_OF_PRIMITIVE",
112+
justification =
113+
"The variable is only read and written by the single configuration-poller thread.")
108114
private boolean defaultConfigActivated;
109115

110116
private final AtomicBoolean subscribedToRulesAndData = new AtomicBoolean();

dd-java-agent/instrumentation/testng/src/main/java/datadog/trace/instrumentation/testng/execution/RetryAnalyzer.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ public class RetryAnalyzer implements IRetryAnalyzer {
1515

1616
private volatile TestExecutionPolicy executionPolicy;
1717

18-
@SuppressFBWarnings(value = "AT_STALE_THREAD_WRITE_OF_PRIMITIVE", justification = "the field is confined to a single thread")
18+
@SuppressFBWarnings(
19+
value = "AT_STALE_THREAD_WRITE_OF_PRIMITIVE",
20+
justification = "the field is confined to a single thread")
1921
private boolean suppressFailures;
2022

2123
public void createExecutionPolicy(ITestResult result) {

dd-trace-core/src/main/java/datadog/trace/common/metrics/Aggregator.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ final class Aggregator implements Runnable {
3535

3636
private final long sleepMillis;
3737

38-
@SuppressFBWarnings(value = "AT_STALE_THREAD_WRITE_OF_PRIMITIVE", justification = "the field is confined to the agent thread running the Aggregator")
38+
@SuppressFBWarnings(
39+
value = "AT_STALE_THREAD_WRITE_OF_PRIMITIVE",
40+
justification = "the field is confined to the agent thread running the Aggregator")
3941
private boolean dirty;
4042

4143
Aggregator(

dd-trace-core/src/main/java/datadog/trace/core/DDSpan.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ static DDSpan create(
9292
*/
9393
private volatile long durationNano;
9494

95-
@SuppressFBWarnings(value = "AT_STALE_THREAD_WRITE_OF_PRIMITIVE", justification = "This field is never accessed concurrently")
95+
@SuppressFBWarnings(
96+
value = "AT_STALE_THREAD_WRITE_OF_PRIMITIVE",
97+
justification = "This field is never accessed concurrently")
9698
private boolean forceKeep;
9799

98100
private volatile EndpointTracker endpointTracker;

dd-trace-core/src/main/java/datadog/trace/core/propagation/ptags/PTagsFactory.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ static class PTags extends PropagationTags {
7676
// tags that don't require any modifications and propagated as-is
7777
private final List<TagElement> tagPairs;
7878

79-
@SuppressFBWarnings(value = "AT_STALE_THREAD_WRITE_OF_PRIMITIVE", justification = "This field is never accessed concurrently")
79+
@SuppressFBWarnings(
80+
value = "AT_STALE_THREAD_WRITE_OF_PRIMITIVE",
81+
justification = "This field is never accessed concurrently")
8082
private boolean canChangeDecisionMaker;
8183

8284
// extracted decision maker tag for easier updates

0 commit comments

Comments
 (0)