From cc1d4a4bc7cc9f362c2d48a99e58d485b3a6c0b5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Ho=C3=9F?= Date: Thu, 1 Dec 2022 17:38:16 +0100 Subject: [PATCH] remove the remaining commons --- README.md | 1 - .../src/main/java/wtf/metio/storageunits/model/StorageUnit.java | 2 +- .../java/wtf/metio/storageunits/mongodb/StorageUnitCodecTest.java | 7 ------- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index 662f0e8..79d8f7d 100644 --- a/README.md +++ b/README.md @@ -214,7 +214,6 @@ Gigabyte unit = terabyte(1).asGigabyte() // "1000.00 GB" kilobyte(1100).asBestMatchingUnit() // "1.10 MB" kilobyte(1100).asBestMatchingBinaryUnit() // "1.05 MiB" kilobyte(1100).asBestMatchingDecimalUnit() // "1.10 MB" -kilobyte(1100).asBestMatchingCommonUnit() // "1.05 MB" ``` Each unit can be expressed as a fraction of another unit (precise up to 24 decimal places) diff --git a/storage-units-model/src/main/java/wtf/metio/storageunits/model/StorageUnit.java b/storage-units-model/src/main/java/wtf/metio/storageunits/model/StorageUnit.java index b056641..2c4c213 100755 --- a/storage-units-model/src/main/java/wtf/metio/storageunits/model/StorageUnit.java +++ b/storage-units-model/src/main/java/wtf/metio/storageunits/model/StorageUnit.java @@ -129,7 +129,7 @@ public abstract class StorageUnit> extends Number imple } /** - * @return This storage unit as the best matching unit, while keeping the current type (binary, decimal, common). + * @return This storage unit as the best matching unit, while keeping the current type (binary or decimal). */ @CheckReturnValue public final @NotNull StorageUnit asBestMatchingUnit() { diff --git a/storage-units-mongodb/src/test/java/wtf/metio/storageunits/mongodb/StorageUnitCodecTest.java b/storage-units-mongodb/src/test/java/wtf/metio/storageunits/mongodb/StorageUnitCodecTest.java index db45893..b19889b 100644 --- a/storage-units-mongodb/src/test/java/wtf/metio/storageunits/mongodb/StorageUnitCodecTest.java +++ b/storage-units-mongodb/src/test/java/wtf/metio/storageunits/mongodb/StorageUnitCodecTest.java @@ -2,13 +2,6 @@ * SPDX-FileCopyrightText: The Storage-Units Authors * SPDX-License-Identifier: 0BSD */ - -/* - * This file is part of storage-units. It is subject to the license terms in the LICENSE file found in the top-level - * directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of storage-units, - * including this file, may be copied, modified, propagated, or distributed except according to the terms contained - * in the LICENSE file. - */ package wtf.metio.storageunits.mongodb; import org.bson.BsonReader; -- 2.11.4.GIT