Skip to content

Commit

Permalink
Fix [ComparisonOutOfRange] error reported by errorprone
Browse files Browse the repository at this point in the history
  • Loading branch information
reta committed Jan 2, 2024
1 parent 598c8bf commit 7c40744
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2016-2020 The OpenZipkin Authors
* Copyright 2016-2024 The OpenZipkin Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -63,7 +63,7 @@ abstract class AbstractSender extends Sender {

boolean isAscii(byte[] encodedSpans) {
for (int i = 0; i < encodedSpans.length; i++) {
if (encodedSpans[i] >= 0x80) {
if (Byte.toUnsignedInt(encodedSpans[i]) >= 0x80) {
return false;
}
}
Expand Down

0 comments on commit 7c40744

Please sign in to comment.