Skip to content

Commit

Permalink
Bump spotless to 6.19 (#560)
Browse files Browse the repository at this point in the history
* Bump spotless to 6.19

* fix broken import
  • Loading branch information
Mateusz Rzeszutek authored Jun 7, 2023
1 parent 5666e4d commit d480a39
Show file tree
Hide file tree
Showing 150 changed files with 119 additions and 475 deletions.
2 changes: 1 addition & 1 deletion buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ dependencies {
// keep this version in sync with /build.gradle.kts
implementation("com.android.tools.build:gradle:8.0.2")

implementation("com.diffplug.spotless:spotless-plugin-gradle:6.18.0")
implementation("com.diffplug.spotless:spotless-plugin-gradle:6.19.0")
implementation("net.ltgt.gradle:gradle-errorprone-plugin:3.1.0")
implementation("net.ltgt.gradle:gradle-nullaway-plugin:1.6.0")
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,10 @@

import android.app.Application;
import android.os.Build;

import io.opentelemetry.sdk.resources.Resource;
import io.opentelemetry.sdk.resources.ResourceBuilder;

import opentelemetry.rum.instrumentation.R;

import java.util.function.Supplier;
import opentelemetry.rum.instrumentation.R;

final class AndroidResource {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@
package io.opentelemetry.rum.internal;

import android.app.Activity;

import androidx.annotation.NonNull;

import io.opentelemetry.rum.internal.instrumentation.ApplicationStateListener;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import android.app.Activity;
import android.app.Application;
import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import io.opentelemetry.sdk.trace.ReadWriteSpan;
import io.opentelemetry.sdk.trace.ReadableSpan;
import io.opentelemetry.sdk.trace.SpanProcessor;

import java.util.concurrent.atomic.AtomicReference;
import java.util.function.Consumer;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package io.opentelemetry.rum.internal;

import android.app.Application;

import io.opentelemetry.rum.internal.instrumentation.ApplicationStateListener;
import io.opentelemetry.rum.internal.instrumentation.InstrumentedApplication;
import io.opentelemetry.sdk.OpenTelemetrySdk;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package io.opentelemetry.rum.internal;

import android.app.Application;

import io.opentelemetry.api.OpenTelemetry;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package io.opentelemetry.rum.internal;

import android.app.Application;

import io.opentelemetry.api.trace.Tracer;
import io.opentelemetry.rum.internal.instrumentation.InstrumentedApplication;
import io.opentelemetry.sdk.OpenTelemetrySdk;
Expand All @@ -28,7 +27,6 @@
import io.opentelemetry.sdk.resources.Resource;
import io.opentelemetry.sdk.trace.SdkTracerProvider;
import io.opentelemetry.sdk.trace.SdkTracerProviderBuilder;

import java.util.ArrayList;
import java.util.List;
import java.util.function.BiFunction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@
import static java.util.Objects.requireNonNull;

import androidx.annotation.Nullable;

import io.opentelemetry.api.trace.TraceId;
import io.opentelemetry.sdk.common.Clock;

import java.util.Random;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import io.opentelemetry.sdk.trace.data.LinkData;
import io.opentelemetry.sdk.trace.samplers.Sampler;
import io.opentelemetry.sdk.trace.samplers.SamplingResult;

import java.util.List;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import io.opentelemetry.rum.internal.instrumentation.ApplicationStateListener;
import io.opentelemetry.sdk.common.Clock;

import java.util.concurrent.TimeUnit;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import io.opentelemetry.sdk.common.CompletableResultCode;
import io.opentelemetry.sdk.trace.data.SpanData;
import io.opentelemetry.sdk.trace.export.SpanExporter;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import io.opentelemetry.api.common.AttributeKey;
import io.opentelemetry.sdk.trace.export.SpanExporter;

import java.util.HashMap;
import java.util.Map;
import java.util.function.Function;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package io.opentelemetry.rum.internal.instrumentation;

import android.app.Application;

import io.opentelemetry.rum.internal.OpenTelemetryRum;
import io.opentelemetry.sdk.OpenTelemetrySdk;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package io.opentelemetry.rum.internal.instrumentation;

import android.app.Activity;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@

import android.app.Activity;
import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import io.opentelemetry.rum.internal.DefaultingActivityLifecycleCallbacks;

public class ActivityCallbacks implements DefaultingActivityLifecycleCallbacks {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,15 @@
import static io.opentelemetry.rum.internal.RumConstants.START_TYPE_KEY;

import android.app.Activity;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import io.opentelemetry.api.common.AttributeKey;
import io.opentelemetry.api.trace.Span;
import io.opentelemetry.api.trace.SpanBuilder;
import io.opentelemetry.api.trace.Tracer;
import io.opentelemetry.context.Context;
import io.opentelemetry.rum.internal.instrumentation.startup.AppStartupTimer;
import io.opentelemetry.rum.internal.util.ActiveSpan;

import java.util.concurrent.atomic.AtomicReference;

public class ActivityTracer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,10 @@
package io.opentelemetry.rum.internal.instrumentation.activity;

import android.app.Activity;

import androidx.annotation.VisibleForTesting;

import io.opentelemetry.api.trace.Tracer;
import io.opentelemetry.rum.internal.instrumentation.ScreenNameExtractor;
import io.opentelemetry.rum.internal.instrumentation.startup.AppStartupTimer;

import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicReference;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@

import android.app.Activity;
import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import io.opentelemetry.rum.internal.DefaultingActivityLifecycleCallbacks;

public class Pre29ActivityCallbacks implements DefaultingActivityLifecycleCallbacks {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
package io.opentelemetry.rum.internal.instrumentation.activity;

import android.app.Activity;

import androidx.annotation.NonNull;

import io.opentelemetry.rum.internal.DefaultingActivityLifecycleCallbacks;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@
import android.app.Activity;
import android.app.Application;
import android.os.Bundle;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.FragmentActivity;
import androidx.fragment.app.FragmentManager;

import io.opentelemetry.rum.internal.DefaultingActivityLifecycleCallbacks;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
package io.opentelemetry.rum.internal.instrumentation.activity;

import android.app.Activity;

import androidx.annotation.NonNull;

import io.opentelemetry.rum.internal.DefaultingActivityLifecycleCallbacks;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@
package io.opentelemetry.rum.internal.instrumentation.activity;

import android.app.Activity;

import androidx.annotation.Nullable;
import androidx.fragment.app.DialogFragment;
import androidx.fragment.app.Fragment;
import androidx.navigation.fragment.NavHostFragment;

import java.util.concurrent.atomic.AtomicReference;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@

import android.os.Handler;
import android.os.Looper;

import io.opentelemetry.api.OpenTelemetry;
import io.opentelemetry.api.trace.StatusCode;
import io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor;
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
import io.opentelemetry.rum.internal.instrumentation.InstrumentedApplication;

import java.util.List;
import java.util.concurrent.ScheduledExecutorService;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
package io.opentelemetry.rum.internal.instrumentation.anr;

import android.os.Looper;

import io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Executors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
package io.opentelemetry.rum.internal.instrumentation.anr;

import androidx.annotation.Nullable;

import io.opentelemetry.rum.internal.instrumentation.ApplicationStateListener;

import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
package io.opentelemetry.rum.internal.instrumentation.anr;

import android.os.Handler;

import io.opentelemetry.context.Context;
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;

import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor;
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
import io.opentelemetry.rum.internal.instrumentation.InstrumentedApplication;

import java.util.List;

/** Entrypoint for installing the crash reporting instrumentation. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package io.opentelemetry.rum.internal.instrumentation.crash;

import io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor;

import java.util.ArrayList;
import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@
package io.opentelemetry.rum.internal.instrumentation.crash;

import androidx.annotation.NonNull;

import io.opentelemetry.context.Context;
import io.opentelemetry.instrumentation.api.instrumenter.Instrumenter;
import io.opentelemetry.sdk.common.CompletableResultCode;
import io.opentelemetry.sdk.trace.SdkTracerProvider;

import java.util.concurrent.TimeUnit;

final class CrashReportingExceptionHandler implements Thread.UncaughtExceptionHandler {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package io.opentelemetry.rum.internal.instrumentation.fragment;

import androidx.fragment.app.Fragment;

import io.opentelemetry.api.common.AttributeKey;
import io.opentelemetry.api.trace.Span;
import io.opentelemetry.api.trace.Tracer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,14 @@
import android.content.Context;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;

import io.opentelemetry.api.trace.Tracer;
import io.opentelemetry.rum.internal.instrumentation.ScreenNameExtractor;
import io.opentelemetry.rum.internal.instrumentation.activity.VisibleScreenTracker;
import io.opentelemetry.rum.internal.util.ActiveSpan;

import java.util.HashMap;
import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@

import android.app.Application;
import android.os.Build;

import androidx.annotation.NonNull;

import io.opentelemetry.api.trace.Tracer;
import io.opentelemetry.rum.internal.instrumentation.InstrumentedApplication;
import io.opentelemetry.rum.internal.instrumentation.ScreenNameExtractor;
Expand All @@ -33,7 +31,6 @@
import io.opentelemetry.rum.internal.instrumentation.activity.VisibleScreenTracker;
import io.opentelemetry.rum.internal.instrumentation.fragment.RumFragmentLifecycleCallbacks;
import io.opentelemetry.rum.internal.instrumentation.startup.AppStartupTimer;

import java.util.function.Function;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import io.opentelemetry.rum.internal.instrumentation.ScreenNameExtractor;
import io.opentelemetry.rum.internal.instrumentation.activity.VisibleScreenTracker;
import io.opentelemetry.rum.internal.instrumentation.startup.AppStartupTimer;

import java.util.function.Function;

public class AndroidLifecycleInstrumentationBuilder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@

import android.os.Build;
import android.telephony.TelephonyManager;

import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;

import java.util.Objects;

@RequiresApi(api = Build.VERSION_CODES.P)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import android.os.Build;
import android.telephony.TelephonyManager;

import androidx.annotation.RequiresApi;

@RequiresApi(api = Build.VERSION_CODES.P)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
package io.opentelemetry.rum.internal.instrumentation.network;

import android.os.Build;

import androidx.annotation.Nullable;

import java.util.Objects;

/** A value class representing the current network that the device is connected to. */
Expand Down
Loading

0 comments on commit d480a39

Please sign in to comment.