diff --git a/adapter/ohos/HapVerify.java b/adapter/ohos/HapVerify.java index 3861f8db4f15e5ec32cfad5a894a11da2d1993bf..806f2e90744fd6551f5cb79206b48f8b9700bb2a 100644 --- a/adapter/ohos/HapVerify.java +++ b/adapter/ohos/HapVerify.java @@ -46,7 +46,7 @@ class HapVerify { private static final String ATOMIC_SERVICE = "atomicService"; private static final String TYPE_SHARED = "shared"; private static final long FILE_LENGTH_1M = 1024 * 1024L; - private static final double FIZE_SIZE_OFFSET_DOUBLE = 0.01; + private static final double FIZE_SIZE_OFFSET_D = 0.01; private static final int FILE_SIZE_DECIMAL_PRECISION = 2; /** @@ -1203,7 +1203,7 @@ class HapVerify { } private static double getCeilFileSize(long fileSize, int sizeLimit) { - double threshold = Double.valueOf(sizeLimit) + FIZE_SIZE_OFFSET_DOUBLE; + double threshold = Double.valueOf(sizeLimit) + FIZE_SIZE_OFFSET_D; double size = new BigDecimal((float) fileSize / FILE_LENGTH_1M).setScale(FILE_SIZE_DECIMAL_PRECISION, BigDecimal.ROUND_HALF_UP).doubleValue(); if (size < threshold && size >= sizeLimit) {