@@ -79,39 +79,39 @@ public void setTimestamp(final @NotNull Double timestamp) {
7979 return name ;
8080 }
8181
82- public void setName (@ NotNull String name ) {
82+ public void setName (final @ NotNull String name ) {
8383 this .name = name ;
8484 }
8585
8686 public @ NotNull String getType () {
8787 return type ;
8888 }
8989
90- public void setType (@ NotNull String type ) {
90+ public void setType (final @ NotNull String type ) {
9191 this .type = type ;
9292 }
9393
9494 public @ Nullable String getUnit () {
9595 return unit ;
9696 }
9797
98- public void setUnit (@ Nullable String unit ) {
98+ public void setUnit (final @ Nullable String unit ) {
9999 this .unit = unit ;
100100 }
101101
102102 public @ Nullable SpanId getSpanId () {
103103 return spanId ;
104104 }
105105
106- public void setSpanId (@ Nullable SpanId spanId ) {
106+ public void setSpanId (final @ Nullable SpanId spanId ) {
107107 this .spanId = spanId ;
108108 }
109109
110110 public @ NotNull Double getValue () {
111111 return value ;
112112 }
113113
114- public void setValue (@ NotNull Double value ) {
114+ public void setValue (final @ NotNull Double value ) {
115115 this .value = value ;
116116 }
117117
@@ -241,36 +241,36 @@ public static final class Deserializer implements JsonDeserializer<SentryMetrics
241241 reader .endObject ();
242242
243243 if (traceId == null ) {
244- String message = "Missing required field \" " + JsonKeys .TRACE_ID + "\" " ;
245- Exception exception = new IllegalStateException (message );
244+ final String message = "Missing required field \" " + JsonKeys .TRACE_ID + "\" " ;
245+ final Exception exception = new IllegalStateException (message );
246246 logger .log (SentryLevel .ERROR , message , exception );
247247 throw exception ;
248248 }
249249
250250 if (timestamp == null ) {
251- String message = "Missing required field \" " + JsonKeys .TIMESTAMP + "\" " ;
252- Exception exception = new IllegalStateException (message );
251+ final String message = "Missing required field \" " + JsonKeys .TIMESTAMP + "\" " ;
252+ final Exception exception = new IllegalStateException (message );
253253 logger .log (SentryLevel .ERROR , message , exception );
254254 throw exception ;
255255 }
256256
257257 if (type == null ) {
258- String message = "Missing required field \" " + JsonKeys .TYPE + "\" " ;
259- Exception exception = new IllegalStateException (message );
258+ final String message = "Missing required field \" " + JsonKeys .TYPE + "\" " ;
259+ final Exception exception = new IllegalStateException (message );
260260 logger .log (SentryLevel .ERROR , message , exception );
261261 throw exception ;
262262 }
263263
264264 if (name == null ) {
265- String message = "Missing required field \" " + JsonKeys .NAME + "\" " ;
266- Exception exception = new IllegalStateException (message );
265+ final String message = "Missing required field \" " + JsonKeys .NAME + "\" " ;
266+ final Exception exception = new IllegalStateException (message );
267267 logger .log (SentryLevel .ERROR , message , exception );
268268 throw exception ;
269269 }
270270
271271 if (value == null ) {
272- String message = "Missing required field \" " + JsonKeys .VALUE + "\" " ;
273- Exception exception = new IllegalStateException (message );
272+ final String message = "Missing required field \" " + JsonKeys .VALUE + "\" " ;
273+ final Exception exception = new IllegalStateException (message );
274274 logger .log (SentryLevel .ERROR , message , exception );
275275 throw exception ;
276276 }
0 commit comments