Skip to content

Commit c5f66c9

Browse files
committed
Better internal name
1 parent 18bd3d0 commit c5f66c9

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/main/java/org/apache/commons/codec/binary/BaseNCodec.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,16 @@ public static byte[] getChunkSeparator() {
389389
return CHUNK_SEPARATOR.clone();
390390
}
391391

392+
/**
393+
* Gets the array length or 0 if null.
394+
*
395+
* @param array the array or null.
396+
* @return the array length or 0 if null.
397+
*/
398+
static int getLength(final byte[] array) {
399+
return array == null ? 0 : array.length;
400+
}
401+
392402
/**
393403
* Checks if a byte value is whitespace or not.
394404
*
@@ -425,16 +435,6 @@ private static byte[] resizeBuffer(final Context context, final int minCapacity)
425435
return b;
426436
}
427437

428-
/**
429-
* Gets the array length or 0 if null.
430-
*
431-
* @param array the array or null.
432-
* @return the array length or 0 if null.
433-
*/
434-
static int toLength(final byte[] array) {
435-
return array == null ? 0 : array.length;
436-
}
437-
438438
/**
439439
* Deprecated: Will be removed in 2.0.
440440
* <p>

0 commit comments

Comments
 (0)