From 204283f18ca08b3b3d119494c3d0dc13f40fae8e Mon Sep 17 00:00:00 2001 From: Joerg Hoh Date: Wed, 22 Jan 2020 07:22:58 +0100 Subject: [PATCH] make method private, as suggested by Konrad --- .../java/com/adobe/acs/commons/mcp/model/ValueFormat.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundle/src/main/java/com/adobe/acs/commons/mcp/model/ValueFormat.java b/bundle/src/main/java/com/adobe/acs/commons/mcp/model/ValueFormat.java index 0571198181..3271376c3c 100644 --- a/bundle/src/main/java/com/adobe/acs/commons/mcp/model/ValueFormat.java +++ b/bundle/src/main/java/com/adobe/acs/commons/mcp/model/ValueFormat.java @@ -68,8 +68,8 @@ public static String getHumanSize(Object val) { return humanReadableByteCount(bytes, false); } - // From: https://programming.guide/worlds-most-copied-so-snippet.html - public static strictfp String humanReadableByteCount(long bytes, boolean si) { + // From: https://programming.guide/worlds-most-copied-so-snippet.html + private static strictfp String humanReadableByteCount(long bytes, boolean si) { int unit = si ? 1000 : 1024; long absBytes = bytes == Long.MIN_VALUE ? Long.MAX_VALUE : Math.abs(bytes); if (absBytes < unit) {