File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
main/java/datadog/trace/api/datastreams
test/groovy/datadog/trace/api/datastreams Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -56,14 +56,14 @@ public enum Direction {
5656
5757 public static byte [] longToBytes (long val ) {
5858 return new byte [] {
59- (byte ) (val >> 56 ),
60- (byte ) (val >> 48 ),
61- (byte ) (val >> 40 ),
62- (byte ) (val >> 32 ),
63- (byte ) (val >> 24 ),
64- (byte ) (val >> 16 ),
65- (byte ) (val >> 8 ),
66- (byte ) val
59+ (byte ) (val >> 56 ),
60+ (byte ) (val >> 48 ),
61+ (byte ) (val >> 40 ),
62+ (byte ) (val >> 32 ),
63+ (byte ) (val >> 24 ),
64+ (byte ) (val >> 16 ),
65+ (byte ) (val >> 8 ),
66+ (byte ) val
6767 };
6868 }
6969
Original file line number Diff line number Diff line change @@ -56,15 +56,15 @@ class DataStreamsTagsTest extends Specification {
5656 " has_routing_key:true" ,
5757 " kafka_cluster_id:kafka_cluster_id" ,
5858 " partition:partition"
59- )
59+ )
6060 ! tags. hasAllTags(" garbage" )
6161 }
6262
6363 def ' test long to bytes' () {
6464 setup :
6565 def value = 123444L
6666 def bts = DataStreamsTags . longToBytes(value)
67- ByteBuffer buffer = ByteBuffer . allocate(Long . BYTES );
67+ ByteBuffer buffer = ByteBuffer . allocate(Long . BYTES )
6868 buffer. putLong(value)
6969 def ctrl = buffer. array()
7070 expect :
You can’t perform that action at this time.
0 commit comments