diff --git a/common/src/main/jdk9/module-info.java b/common/src/main/jdk9/module-info.java index b7f5f2e7..79931cf6 100644 --- a/common/src/main/jdk9/module-info.java +++ b/common/src/main/jdk9/module-info.java @@ -29,11 +29,12 @@ */ module systems.uom.common { requires transitive java.measure; - requires transitive si.uom.quantity; - requires transitive si.uom.units; - requires transitive tech.units.indriya; + requires transitive si.uom.quantity; + requires transitive tech.uom.lib.common; requires transitive java.annotation; requires transitive systems.uom.quantity; + requires tech.units.indriya; + requires si.uom.units; exports systems.uom.common; exports systems.uom.common.ancient; diff --git a/pom.xml b/pom.xml index c0bd5ad1..babf2bf9 100644 --- a/pom.xml +++ b/pom.xml @@ -30,8 +30,8 @@ 1.8 2.0 - 2.0 - 2.0.2 + 2.0.2-SNAPSHOT + 2.0.5-SNAPSHOT 2.1-SNAPSHOT 2.0.2 2.1-SNAPSHOT diff --git a/src/main/config/uom-systems clean install.launch b/src/main/config/uom-systems clean install.launch index 5e5dfcf6..fdc0ef42 100644 --- a/src/main/config/uom-systems clean install.launch +++ b/src/main/config/uom-systems clean install.launch @@ -17,6 +17,6 @@ - + diff --git a/toolchains - Kopie.xml b/toolchains - Kopie.xml new file mode 100644 index 00000000..b7f54e7b --- /dev/null +++ b/toolchains - Kopie.xml @@ -0,0 +1,77 @@ + + + + jdk + + 8 + + + C:\Program Files\Java\jdk1.8.0_221 + + + + + jdk + + 9 + + + C:\Program Files\Java\jdk-9.0.4 + + + + jdk + + 10 + + + C:\Program Files\Java\jdk-10.0.1 + + + + jdk + + 11 + + + C:\Program Files\AdoptOpenJDK\jdk-11.0.6.10-hotspot + + + + jdk + + 12 + + + C:\Program Files\Java\jdk-12.0.2 + + + + jdk + + 13 + + + C:\Program Files\AdoptOpenJDK\jdk-13.0.2.8-hotspot + + + + jdk + + 14 + + + C:\Program Files\AdoptOpenJDK\jdk-14.0.0.36-hotspot + + + \ No newline at end of file diff --git a/ucum/src/main/java/systems/uom/ucum/UCUM.java b/ucum/src/main/java/systems/uom/ucum/UCUM.java index 7e5ff014..8f9da45e 100644 --- a/ucum/src/main/java/systems/uom/ucum/UCUM.java +++ b/ucum/src/main/java/systems/uom/ucum/UCUM.java @@ -760,10 +760,17 @@ public static UCUM getInstance() { public static final Unit HIGH_POWER_FIELD = addUnit(ONE); public static final Unit LOW_POWER_FIELD = addUnit(ONE.multiply(100)); - public static final Unit KATAL = addUnit(MOLE.divide(SECOND)); - public static final Unit UNIT = addUnit(MICRO(MOLE).divide(MINUTE)); + /** + * The SI unit for catalytic activity (standard name kat). + */ + public static final Unit KATAL = addUnit(Units.KATAL); - // public static final Unit INTERNATIONAL_UNIT = UNDEFINED; + public static final Unit UNIT = addUnit(MICRO(MOLE).divide(MINUTE).asType(CatalyticActivity.class)); + + public static final Unit INTERNATIONAL_UNIT = addUnit(new AlternateUnit(ONE, "IU"), "International Unit", "IU"); + + public static final Unit INTERNATIONAL_UNIT_UC = addUnit(new AlternateUnit(INTERNATIONAL_UNIT, "i.U."), "International Unit", "i.U."); + // public static final Unit ARBITRARY_UNIT = UNDEFINED; // public static final Unit US_PHARMACOPEIA = UNDEFINED; // public static final Unit GPL = UNDEFINED; diff --git a/ucum/src/main/java/systems/uom/ucum/format/UCUMFormat.java b/ucum/src/main/java/systems/uom/ucum/format/UCUMFormat.java index b089ede7..ba197722 100644 --- a/ucum/src/main/java/systems/uom/ucum/format/UCUMFormat.java +++ b/ucum/src/main/java/systems/uom/ucum/format/UCUMFormat.java @@ -147,8 +147,7 @@ public static UCUMFormat getInstance(Variant variant, SymbolMap symbolMap) { * Get the symbol map used by this instance to map between {@link AbstractUnit Unit}s and Strings, etc... * * @return SymbolMap the current symbol map - */ - @Override + */ protected SymbolMap getSymbols() { return symbolMap; } diff --git a/ucum/src/main/jdk9/systems/uom/ucum/format/UCUMFormat.java b/ucum/src/main/jdk9/systems/uom/ucum/format/UCUMFormat.java index 14529a3c..2a0bcce9 100644 --- a/ucum/src/main/jdk9/systems/uom/ucum/format/UCUMFormat.java +++ b/ucum/src/main/jdk9/systems/uom/ucum/format/UCUMFormat.java @@ -148,7 +148,6 @@ public static UCUMFormat getInstance(Variant variant, SymbolMap symbolMap) { * * @return SymbolMap the current symbol map */ - @Override protected SymbolMap getSymbols() { return symbolMap; } diff --git a/ucum/src/test/java/systems/uom/ucum/SystemOfUnitsServiceTest.java b/ucum/src/test/java/systems/uom/ucum/SystemOfUnitsServiceTest.java index 4af2fd62..ba2f89f9 100644 --- a/ucum/src/test/java/systems/uom/ucum/SystemOfUnitsServiceTest.java +++ b/ucum/src/test/java/systems/uom/ucum/SystemOfUnitsServiceTest.java @@ -43,7 +43,7 @@ public class SystemOfUnitsServiceTest { private static final String EXPECTED_SYSTEM_NAME = "Unified Code for Units of Measure"; - private static final int NUM_OF_UNITS = 245; + private static final int NUM_OF_UNITS = 247; private static SystemOfUnitsService defaultService; diff --git a/unicode/src/main/jdk9/module-info.java b/unicode/src/main/jdk9/module-info.java index 4e4dd2ad..417bbdda 100644 --- a/unicode/src/main/jdk9/module-info.java +++ b/unicode/src/main/jdk9/module-info.java @@ -29,9 +29,10 @@ */ module systems.uom.unicode { requires transitive java.measure; - requires transitive tech.units.indriya; + requires transitive tech.uom.lib.common; requires transitive systems.uom.quantity; - + requires tech.units.indriya; + exports systems.uom.unicode; exports systems.uom.unicode.spi; diff --git a/unicode/src/test/java/systems/uom/unicode/SystemOfUnitsServiceTest.java b/unicode/src/test/java/systems/uom/unicode/SystemOfUnitsServiceTest.java index 3a95c7ac..2cac4621 100644 --- a/unicode/src/test/java/systems/uom/unicode/SystemOfUnitsServiceTest.java +++ b/unicode/src/test/java/systems/uom/unicode/SystemOfUnitsServiceTest.java @@ -42,7 +42,7 @@ import org.junit.jupiter.api.Test; public class SystemOfUnitsServiceTest { - private static final int NUM_OF_UNITS = 43; + private static final int NUM_OF_UNITS = 44; private static final int NUM_OF_UNITS_CLDR = 96; private static SystemOfUnitsService defaultService;