Skip to content

Commit

Permalink
Annotate AutoValue classes as Immutable (#3875)
Browse files Browse the repository at this point in the history
* annotate AutoValue classes as Immutable

* Remove @immutable on internal classes

Co-authored-by: jack-berg <[email protected]>
  • Loading branch information
reugn and jack-berg authored Jan 14, 2022
1 parent c887f2c commit 3518c98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@
import io.opentelemetry.sdk.OpenTelemetrySdk;
import io.opentelemetry.sdk.autoconfigure.spi.ConfigProperties;
import io.opentelemetry.sdk.resources.Resource;
import javax.annotation.concurrent.Immutable;

/**
* An auto-configured OpenTelemetry SDK. As an alternative to programmatically configuring the SDK
* using {@link OpenTelemetrySdk#builder()}, this package can be used to automatically configure the
* SDK using environment properties specified by OpenTelemetry.
*/
@Immutable
@AutoValue
public abstract class AutoConfiguredOpenTelemetrySdk {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ abstract class ExponentialHistogramAccumulation {
* @param scale the scale of the exponential histogram.
* @param sum the sum of all the recordings of the histogram.
* @param positiveBuckets the buckets counting positive recordings.
* @param negativeBuckets the buckets coutning negative recordings.
* @param negativeBuckets the buckets counting negative recordings.
* @param zeroCount The amount of time zero was recorded.
* @param exemplars The exemplars.
* @return a new {@link ExponentialHistogramAccumulation} with the given values.
Expand Down

0 comments on commit 3518c98

Please sign in to comment.