File tree Expand file tree Collapse file tree
src/main/java/com/datadoghq/trace/impl Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,26 +152,4 @@ public String toString() {
152152 + ", parentId=" + parentId + "]" ;
153153 }
154154
155- @ Override
156- public int hashCode () {
157- final int prime = 31 ;
158- int result = 1 ;
159- result = prime * result + (int ) (spanId ^ (spanId >>> 32 ));
160- result = prime * result + (int ) (traceId ^ (traceId >>> 32 ));
161- return result ;
162- }
163-
164- @ Override
165- public boolean equals (Object obj ) {
166- if (this == obj )
167- return true ;
168- if (obj == null )
169- return false ;
170- if (getClass () != obj .getClass ())
171- return false ;
172- DDSpanContext other = (DDSpanContext ) obj ;
173- if (spanId != other .spanId )
174- return false ;
175- return traceId == other .traceId ;
176- }
177155}
Original file line number Diff line number Diff line change @@ -229,23 +229,6 @@ private DDSpanContext buildSpanContext() {
229229
230230 }
231231
232- @ Override
233- public boolean equals (Object o ) {
234- if (this == o ) return true ;
235- if (o == null || getClass () != o .getClass ()) return false ;
236-
237- DDTracer ddTracer = (DDTracer ) o ;
238-
239- if (writer != null ? !writer .equals (ddTracer .writer ) : ddTracer .writer != null ) return false ;
240- return sampler != null ? sampler .equals (ddTracer .sampler ) : ddTracer .sampler == null ;
241- }
242-
243- @ Override
244- public int hashCode () {
245- int result = writer != null ? writer .hashCode () : 0 ;
246- result = 31 * result + (sampler != null ? sampler .hashCode () : 0 );
247- return result ;
248- }
249232
250233 @ Override
251234 public String toString () {
You can’t perform that action at this time.
0 commit comments