@@ -176,7 +176,6 @@ public static class ExceptionInfo {
176176 public static final String FIELD_NAME_EXCEPTION_STACKTRACE = "stacktrace" ;
177177 public static final String FIELD_NAME_EXCEPTION_TIMESTAMP = "timestamp" ;
178178 public static final String FIELD_NAME_TASK_NAME = "taskName" ;
179- @ Deprecated public static final String FIELD_NAME_LOCATION = "location" ;
180179 public static final String FIELD_NAME_ENDPOINT = "endpoint" ;
181180 public static final String FIELD_NAME_TASK_MANAGER_ID = "taskManagerId" ;
182181 public static final String FIELD_NAME_FAILURE_LABELS = "failureLabels" ;
@@ -195,13 +194,6 @@ public static class ExceptionInfo {
195194 @ Nullable
196195 private final String taskName ;
197196
198- /** @deprecated Use {@link ExceptionInfo#endpoint} instead. */
199- @ Deprecated
200- @ JsonInclude (NON_NULL )
201- @ JsonProperty (FIELD_NAME_LOCATION )
202- @ Nullable
203- private final String location ;
204-
205197 @ JsonInclude (NON_NULL )
206198 @ JsonProperty (FIELD_NAME_ENDPOINT )
207199 @ Nullable
@@ -216,15 +208,7 @@ public static class ExceptionInfo {
216208 private final Map <String , String > failureLabels ;
217209
218210 public ExceptionInfo (String exceptionName , String stacktrace , long timestamp ) {
219- this (
220- exceptionName ,
221- stacktrace ,
222- timestamp ,
223- Collections .emptyMap (),
224- null ,
225- null ,
226- null ,
227- null );
211+ this (exceptionName , stacktrace , timestamp , Collections .emptyMap (), null , null , null );
228212 }
229213
230214 @ JsonCreator
@@ -234,15 +218,13 @@ public ExceptionInfo(
234218 @ JsonProperty (FIELD_NAME_EXCEPTION_TIMESTAMP ) long timestamp ,
235219 @ JsonProperty (FIELD_NAME_FAILURE_LABELS ) Map <String , String > failureLabels ,
236220 @ JsonProperty (FIELD_NAME_TASK_NAME ) @ Nullable String taskName ,
237- @ JsonProperty (FIELD_NAME_LOCATION ) @ Nullable String location ,
238221 @ JsonProperty (FIELD_NAME_ENDPOINT ) @ Nullable String endpoint ,
239222 @ JsonProperty (FIELD_NAME_TASK_MANAGER_ID ) @ Nullable String taskManagerId ) {
240223 this .exceptionName = checkNotNull (exceptionName );
241224 this .stacktrace = checkNotNull (stacktrace );
242225 this .timestamp = timestamp ;
243226 this .failureLabels = checkNotNull (failureLabels );
244227 this .taskName = taskName ;
245- this .location = location ;
246228 this .endpoint = endpoint ;
247229 this .taskManagerId = taskManagerId ;
248230 }
@@ -268,13 +250,6 @@ public String getTaskName() {
268250 return taskName ;
269251 }
270252
271- @ Deprecated
272- @ JsonIgnore
273- @ Nullable
274- public String getLocation () {
275- return location ;
276- }
277-
278253 @ JsonIgnore
279254 @ Nullable
280255 public String getEndpoint () {
@@ -308,20 +283,13 @@ public boolean equals(Object o) {
308283 && Objects .equals (timestamp , that .timestamp )
309284 && Objects .equals (failureLabels , that .failureLabels )
310285 && Objects .equals (taskName , that .taskName )
311- && Objects .equals (location , that .location )
312286 && Objects .equals (endpoint , that .endpoint );
313287 }
314288
315289 @ Override
316290 public int hashCode () {
317291 return Objects .hash (
318- exceptionName ,
319- stacktrace ,
320- timestamp ,
321- failureLabels ,
322- taskName ,
323- location ,
324- endpoint );
292+ exceptionName , stacktrace , timestamp , failureLabels , taskName , endpoint );
325293 }
326294
327295 @ Override
@@ -362,7 +330,6 @@ public RootExceptionInfo(
362330 null ,
363331 null ,
364332 null ,
365- null ,
366333 concurrentExceptions );
367334 }
368335
@@ -373,7 +340,6 @@ public RootExceptionInfo(
373340 @ JsonProperty (FIELD_NAME_EXCEPTION_TIMESTAMP ) long timestamp ,
374341 @ JsonProperty (FIELD_NAME_FAILURE_LABELS ) Map <String , String > failureLabels ,
375342 @ JsonProperty (FIELD_NAME_TASK_NAME ) @ Nullable String taskName ,
376- @ JsonProperty (FIELD_NAME_LOCATION ) @ Nullable String location ,
377343 @ JsonProperty (FIELD_NAME_ENDPOINT ) @ Nullable String endpoint ,
378344 @ JsonProperty (FIELD_NAME_TASK_MANAGER_ID ) @ Nullable String taskManagerId ,
379345 @ JsonProperty (FIELD_NAME_CONCURRENT_EXCEPTIONS )
@@ -384,7 +350,6 @@ public RootExceptionInfo(
384350 timestamp ,
385351 failureLabels ,
386352 taskName ,
387- location ,
388353 endpoint ,
389354 taskManagerId );
390355 this .concurrentExceptions = concurrentExceptions ;
0 commit comments