From ef28be71722ee999cbd16e3ba6e8d58b3ee34fd8 Mon Sep 17 00:00:00 2001 From: Sean Gilligan Date: Wed, 28 Jun 2017 19:22:52 -0700 Subject: [PATCH] Minor change to fix IntelliJ warning --- .../foundation/omni/dsl/categories/NumberCategory.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/omnij-dsl/src/main/groovy/foundation/omni/dsl/categories/NumberCategory.groovy b/omnij-dsl/src/main/groovy/foundation/omni/dsl/categories/NumberCategory.groovy index 09a78d8b..f83a0bb2 100644 --- a/omnij-dsl/src/main/groovy/foundation/omni/dsl/categories/NumberCategory.groovy +++ b/omnij-dsl/src/main/groovy/foundation/omni/dsl/categories/NumberCategory.groovy @@ -32,7 +32,7 @@ class NumberCategory { return OmniIndivisibleValue.of(asIndivisible(this)) } - private static BigDecimal asDivisible(Number self) { + static BigDecimal asDivisible(Number self) { switch(self) { case BigDecimal: return self case BigInteger: return new BigDecimal((BigInteger)self) @@ -40,7 +40,7 @@ class NumberCategory { } } - private static long asIndivisible(Number self) { + static long asIndivisible(Number self) { switch(self) { case BigDecimal: return ((BigDecimal) self).longValueExact() case BigInteger: return ((BigInteger) self).longValue()