Skip to content

Commit

Permalink
[#279] Remove Decimal from core types
Browse files Browse the repository at this point in the history
  • Loading branch information
palagdan committed Sep 20, 2024
1 parent e9965e4 commit b793604
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ public class XsdCoreDataTypes {
public static final String XSD_STRING = XSD_NAMESPACE + "string";
public static final String XSD_INTEGER = XSD_NAMESPACE + "integer";
public static final String XSD_BOOLEAN = XSD_NAMESPACE + "boolean";
public static final String XSD_DECIMAL = XSD_NAMESPACE + "decimal";
public static final String XSD_DOUBLE = XSD_NAMESPACE + "double";

public static final List<String> CORE_TYPES = List.of(XSD_STRING, XSD_INTEGER, XSD_BOOLEAN, XSD_DECIMAL, XSD_DOUBLE);
public static final List<String> CORE_TYPES = List.of(XSD_STRING, XSD_INTEGER, XSD_BOOLEAN, XSD_DOUBLE);

public static boolean isCorePrimitiveType(String type) {
if(type == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ public void testConstants() {
assertEquals("http://www.w3.org/2001/XMLSchema#string", XsdCoreDataTypes.XSD_STRING);
assertEquals("http://www.w3.org/2001/XMLSchema#integer", XsdCoreDataTypes.XSD_INTEGER);
assertEquals("http://www.w3.org/2001/XMLSchema#boolean", XsdCoreDataTypes.XSD_BOOLEAN);
assertEquals("http://www.w3.org/2001/XMLSchema#decimal", XsdCoreDataTypes.XSD_DECIMAL);
assertEquals("http://www.w3.org/2001/XMLSchema#double", XsdCoreDataTypes.XSD_DOUBLE);
}

Expand All @@ -33,7 +32,6 @@ public void testIsCorePrimitiveTypeWithValidTypes() {
assertTrue(XsdCoreDataTypes.isCorePrimitiveType(XsdCoreDataTypes.XSD_STRING));
assertTrue(XsdCoreDataTypes.isCorePrimitiveType(XsdCoreDataTypes.XSD_INTEGER));
assertTrue(XsdCoreDataTypes.isCorePrimitiveType(XsdCoreDataTypes.XSD_BOOLEAN));
assertTrue(XsdCoreDataTypes.isCorePrimitiveType(XsdCoreDataTypes.XSD_DECIMAL));
assertTrue(XsdCoreDataTypes.isCorePrimitiveType(XsdCoreDataTypes.XSD_DOUBLE));
}

Expand Down

0 comments on commit b793604

Please sign in to comment.