Remove helper methods asBytes from Trace/Span Id (#2726)
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
This commit is contained in:
		
							parent
							
								
									eb7e212587
								
							
						
					
					
						commit
						51d176ffdf
					
				| 
						 | 
				
			
			@ -69,7 +69,7 @@ public final class SpanId {
 | 
			
		|||
   * @throws IndexOutOfBoundsException if {@code spanId} too short.
 | 
			
		||||
   * @throws IllegalArgumentException if {@code spanId} contains non lowercase hex characters.
 | 
			
		||||
   */
 | 
			
		||||
  public static byte[] asBytes(CharSequence spanId) {
 | 
			
		||||
  static byte[] asBytes(CharSequence spanId) {
 | 
			
		||||
    Objects.requireNonNull(spanId, "spanId");
 | 
			
		||||
    return BigendianEncoding.bytesFromBase16(spanId, HEX_LENGTH);
 | 
			
		||||
  }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -73,7 +73,7 @@ public final class TraceId {
 | 
			
		|||
   * @throws IndexOutOfBoundsException if {@code traceId} too short.
 | 
			
		||||
   * @throws IllegalArgumentException if {@code traceId} contains non lowercase hex characters.
 | 
			
		||||
   */
 | 
			
		||||
  public static byte[] asBytes(CharSequence traceId) {
 | 
			
		||||
  static byte[] asBytes(CharSequence traceId) {
 | 
			
		||||
    Objects.requireNonNull(traceId, "traceId");
 | 
			
		||||
    return BigendianEncoding.bytesFromBase16(traceId, HEX_LENGTH);
 | 
			
		||||
  }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue