Skip to content

Commit 4ae0c83

Browse files
committed
spotless
1 parent 40f623c commit 4ae0c83

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

instrumentation/spring/spring-scheduling-3.1/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/spring/scheduling/v3_1/SpringSchedulingCodeAttributesGetter.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
public class SpringSchedulingCodeAttributesGetter implements CodeAttributesGetter<Runnable> {
1313
private static final Class<?> outcomeTrackingRunnableClass = getOutcomeTrackingRunnableClass();
14-
private static final Field outcomeTrackingRunnableField = getOutcomeTrackingRunnableField(outcomeTrackingRunnableClass);
14+
private static final Field outcomeTrackingRunnableField =
15+
getOutcomeTrackingRunnableField(outcomeTrackingRunnableClass);
1516

1617
private static Class<?> getOutcomeTrackingRunnableClass() {
1718
try {
@@ -32,7 +33,9 @@ private static Field getOutcomeTrackingRunnableField(Class<?> clazz) {
3233
}
3334

3435
private static Runnable unwrap(Runnable runnable) {
35-
if (outcomeTrackingRunnableClass != null && outcomeTrackingRunnableField != null && outcomeTrackingRunnableClass.isAssignableFrom(runnable.getClass())) {
36+
if (outcomeTrackingRunnableClass != null
37+
&& outcomeTrackingRunnableField != null
38+
&& outcomeTrackingRunnableClass.isAssignableFrom(runnable.getClass())) {
3639
try {
3740
// task may be wrapped multiple times so
3841
return unwrap((Runnable) outcomeTrackingRunnableField.get(runnable));

0 commit comments

Comments
 (0)