From b376ce140bbf9bc26a8ed5a811033d4bccb092cf Mon Sep 17 00:00:00 2001 From: Jonas-Isr Date: Thu, 19 Dec 2024 14:07:25 +0100 Subject: [PATCH] Exchange HashMap with LinkedHashMap (OData v4) (#673) Co-authored-by: Jonas Israel --- .../odatav4/sample/namespaces/sdkgrocerystore/Address.java | 2 +- .../odatav4/sample/namespaces/sdkgrocerystore/Customer.java | 2 +- .../odatav4/sample/namespaces/sdkgrocerystore/DateRange.java | 2 +- .../odatav4/sample/namespaces/sdkgrocerystore/FloorPlan.java | 2 +- .../odatav4/sample/namespaces/sdkgrocerystore/OpeningHours.java | 2 +- .../odatav4/sample/namespaces/sdkgrocerystore/Product.java | 2 +- .../odatav4/sample/namespaces/sdkgrocerystore/ProductCount.java | 2 +- .../sample/namespaces/sdkgrocerystore/PurchaseHistoryItem.java | 2 +- .../odatav4/sample/namespaces/sdkgrocerystore/Receipt.java | 2 +- .../odatav4/sample/namespaces/sdkgrocerystore/Shelf.java | 2 +- .../odatav4/sample/namespaces/sdkgrocerystore/Vendor.java | 2 +- .../datamodel/odatav4/generator/NamespaceClassGenerator.java | 2 +- .../testcomparison/namespaces/actionsandfunctions/Address.java | 2 +- .../namespaces/actionsandfunctions/FunctionResult.java | 2 +- .../namespaces/actionsandfunctions/NewComplexResult.java | 2 +- .../namespaces/actionsandfunctions/SimplePerson.java | 2 +- .../output/testcomparison/namespaces/metadata/Relationship.java | 2 +- .../output/testcomparison/namespaces/metadata/SimplePerson.java | 2 +- .../testcomparison/namespaces/minimalmetadata/SimplePerson.java | 2 +- .../testcomparison/namespaces/sdkgrocerystore/Address.java | 2 +- .../testcomparison/namespaces/sdkgrocerystore/Customer.java | 2 +- .../testcomparison/namespaces/sdkgrocerystore/DateRange.java | 2 +- .../testcomparison/namespaces/sdkgrocerystore/FloorPlan.java | 2 +- .../testcomparison/namespaces/sdkgrocerystore/OpeningHours.java | 2 +- .../testcomparison/namespaces/sdkgrocerystore/Product.java | 2 +- .../testcomparison/namespaces/sdkgrocerystore/ProductCount.java | 2 +- .../namespaces/sdkgrocerystore/PurchaseHistoryItem.java | 2 +- .../testcomparison/namespaces/sdkgrocerystore/Receipt.java | 2 +- .../output/testcomparison/namespaces/sdkgrocerystore/Shelf.java | 2 +- .../testcomparison/namespaces/sdkgrocerystore/Vendor.java | 2 +- .../testcomparison/namespaces/minimalmetadata/SimplePerson.java | 2 +- .../testcomparison/namespaces/multipleentitysets/FooType.java | 2 +- .../namespaces/multipleentitysets/SimplePerson.java | 2 +- .../testcomparison/namespaces/minimalmetadata/Friend.java | 2 +- .../testcomparison/namespaces/minimalmetadata/SimplePerson.java | 2 +- .../testcomparison/namespaces/test/A_TestComplexType.java | 2 +- .../namespaces/test/A_TestLvl2NestedComplexType.java | 2 +- .../testcomparison/namespaces/test/A_TestNestedComplexType.java | 2 +- .../namespaces/test/TestEntityCircularLinkChild.java | 2 +- .../namespaces/test/TestEntityCircularLinkParent.java | 2 +- .../testcomparison/namespaces/test/TestEntityLvl2MultiLink.java | 2 +- .../namespaces/test/TestEntityLvl2SingleLink.java | 2 +- .../testcomparison/namespaces/test/TestEntityMultiLink.java | 2 +- .../namespaces/test/TestEntityOtherMultiLink.java | 2 +- .../testcomparison/namespaces/test/TestEntitySingleLink.java | 2 +- .../output/testcomparison/namespaces/test/TestEntityStream.java | 2 +- .../output/testcomparison/namespaces/test/TestEntityV4.java | 2 +- .../namespaces/test/TestEntityV4_Only_Function.java | 2 +- release_notes.md | 1 + 49 files changed, 49 insertions(+), 48 deletions(-) diff --git a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Address.java b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Address.java index a1871fb25..8c8aa46e6 100644 --- a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Address.java +++ b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Address.java @@ -318,7 +318,7 @@ protected Map toMapOfFields() @Override protected void fromMap( final Map inputValues ) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if( cloudSdkValues.containsKey("Id") ) { diff --git a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Customer.java b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Customer.java index 5341b10ad..b262521d9 100644 --- a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Customer.java +++ b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Customer.java @@ -226,7 +226,7 @@ protected Map toMapOfFields() @Override protected void fromMap( final Map inputValues ) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if( cloudSdkValues.containsKey("Id") ) { diff --git a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/DateRange.java b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/DateRange.java index d69fbc575..823fe5025 100644 --- a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/DateRange.java +++ b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/DateRange.java @@ -93,7 +93,7 @@ protected Map toMapOfFields() @Override protected void fromMap( final Map inputValues ) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if( cloudSdkValues.containsKey("Start") ) { diff --git a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/FloorPlan.java b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/FloorPlan.java index 42c153965..7be18407d 100644 --- a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/FloorPlan.java +++ b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/FloorPlan.java @@ -143,7 +143,7 @@ protected Map toMapOfFields() @Override protected void fromMap( final Map inputValues ) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if( cloudSdkValues.containsKey("Id") ) { diff --git a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/OpeningHours.java b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/OpeningHours.java index 5ec4c3f47..daa3c2395 100644 --- a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/OpeningHours.java +++ b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/OpeningHours.java @@ -206,7 +206,7 @@ protected Map toMapOfFields() @Override protected void fromMap( final Map inputValues ) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if( cloudSdkValues.containsKey("Id") ) { diff --git a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Product.java b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Product.java index 13f369bdf..e5da821f1 100644 --- a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Product.java +++ b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Product.java @@ -303,7 +303,7 @@ protected Map toMapOfFields() @Override protected void fromMap( final Map inputValues ) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if( cloudSdkValues.containsKey("Id") ) { diff --git a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/ProductCount.java b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/ProductCount.java index 0b3577e2a..d64b7c1a4 100644 --- a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/ProductCount.java +++ b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/ProductCount.java @@ -96,7 +96,7 @@ protected Map toMapOfFields() @Override protected void fromMap( final Map inputValues ) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if( cloudSdkValues.containsKey("ProductId") ) { diff --git a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/PurchaseHistoryItem.java b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/PurchaseHistoryItem.java index cca7eb7c5..05990d7cf 100644 --- a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/PurchaseHistoryItem.java +++ b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/PurchaseHistoryItem.java @@ -101,7 +101,7 @@ protected Map toMapOfFields() @Override protected void fromMap( final Map inputValues ) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if( cloudSdkValues.containsKey("ReceiptId") ) { diff --git a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Receipt.java b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Receipt.java index 712e42528..195cb3da4 100644 --- a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Receipt.java +++ b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Receipt.java @@ -233,7 +233,7 @@ protected Map toMapOfFields() @Override protected void fromMap( final Map inputValues ) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if( cloudSdkValues.containsKey("Id") ) { diff --git a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Shelf.java b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Shelf.java index df501d15a..0625ad7f9 100644 --- a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Shelf.java +++ b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Shelf.java @@ -186,7 +186,7 @@ protected Map toMapOfFields() @Override protected void fromMap( final Map inputValues ) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if( cloudSdkValues.containsKey("Id") ) { diff --git a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Vendor.java b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Vendor.java index 9ed71f2f0..e9da5571a 100644 --- a/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Vendor.java +++ b/datamodel/odata-v4/odata-v4-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/sample/namespaces/sdkgrocerystore/Vendor.java @@ -192,7 +192,7 @@ protected Map toMapOfFields() @Override protected void fromMap( final Map inputValues ) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if( cloudSdkValues.containsKey("Id") ) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/generator/NamespaceClassGenerator.java b/datamodel/odata-v4/odata-v4-generator/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/generator/NamespaceClassGenerator.java index 4b2a251ce..462164a18 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/generator/NamespaceClassGenerator.java +++ b/datamodel/odata-v4/odata-v4-generator/src/main/java/com/sap/cloud/sdk/datamodel/odatav4/generator/NamespaceClassGenerator.java @@ -625,7 +625,7 @@ private JDefinedClass generateEnumTypeClass( final JPackage namespacePackage, fi JMod.FINAL, fieldMapClass, CommonConstants.INLINE_MAP_NAME, - codeModel.ref(Maps.class).staticInvoke("newHashMap").arg(inputValues)); + codeModel.ref(Maps.class).staticInvoke("newLinkedHashMap").arg(inputValues)); body.block().directStatement("// simple properties"); final JBlock simplePropertiesBlock = new JBlock(true, true); diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/actionsAndFunctionsTest/output/testcomparison/namespaces/actionsandfunctions/Address.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/actionsAndFunctionsTest/output/testcomparison/namespaces/actionsandfunctions/Address.java index 5895c37ab..0998eb4c0 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/actionsAndFunctionsTest/output/testcomparison/namespaces/actionsandfunctions/Address.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/actionsAndFunctionsTest/output/testcomparison/namespaces/actionsandfunctions/Address.java @@ -80,7 +80,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Street")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/actionsAndFunctionsTest/output/testcomparison/namespaces/actionsandfunctions/FunctionResult.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/actionsAndFunctionsTest/output/testcomparison/namespaces/actionsandfunctions/FunctionResult.java index d5606aa05..3666cb0c4 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/actionsAndFunctionsTest/output/testcomparison/namespaces/actionsandfunctions/FunctionResult.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/actionsAndFunctionsTest/output/testcomparison/namespaces/actionsandfunctions/FunctionResult.java @@ -126,7 +126,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("RequestId")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/actionsAndFunctionsTest/output/testcomparison/namespaces/actionsandfunctions/NewComplexResult.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/actionsAndFunctionsTest/output/testcomparison/namespaces/actionsandfunctions/NewComplexResult.java index f6b8b9539..756e22639 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/actionsAndFunctionsTest/output/testcomparison/namespaces/actionsandfunctions/NewComplexResult.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/actionsAndFunctionsTest/output/testcomparison/namespaces/actionsandfunctions/NewComplexResult.java @@ -80,7 +80,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Foo")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/actionsAndFunctionsTest/output/testcomparison/namespaces/actionsandfunctions/SimplePerson.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/actionsAndFunctionsTest/output/testcomparison/namespaces/actionsandfunctions/SimplePerson.java index f05f9f2cb..5f3b984de 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/actionsAndFunctionsTest/output/testcomparison/namespaces/actionsandfunctions/SimplePerson.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/actionsAndFunctionsTest/output/testcomparison/namespaces/actionsandfunctions/SimplePerson.java @@ -130,7 +130,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Person")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/complexProperties/output/testcomparison/namespaces/metadata/Relationship.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/complexProperties/output/testcomparison/namespaces/metadata/Relationship.java index 958199993..a26201b21 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/complexProperties/output/testcomparison/namespaces/metadata/Relationship.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/complexProperties/output/testcomparison/namespaces/metadata/Relationship.java @@ -91,7 +91,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Description")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/complexProperties/output/testcomparison/namespaces/metadata/SimplePerson.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/complexProperties/output/testcomparison/namespaces/metadata/SimplePerson.java index e7795c754..457b4a359 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/complexProperties/output/testcomparison/namespaces/metadata/SimplePerson.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/complexProperties/output/testcomparison/namespaces/metadata/SimplePerson.java @@ -186,7 +186,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("FirstName")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/explicitDeprecation/output/testcomparison/namespaces/minimalmetadata/SimplePerson.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/explicitDeprecation/output/testcomparison/namespaces/minimalmetadata/SimplePerson.java index ffbc3166f..3b8ddfafa 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/explicitDeprecation/output/testcomparison/namespaces/minimalmetadata/SimplePerson.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/explicitDeprecation/output/testcomparison/namespaces/minimalmetadata/SimplePerson.java @@ -204,7 +204,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Person")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Address.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Address.java index 9ab17a1b9..125e9f1c4 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Address.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Address.java @@ -272,7 +272,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Id")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Customer.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Customer.java index 988624732..2ed17d166 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Customer.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Customer.java @@ -195,7 +195,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Id")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/DateRange.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/DateRange.java index 41d7fb582..f1da714bf 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/DateRange.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/DateRange.java @@ -81,7 +81,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Start")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/FloorPlan.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/FloorPlan.java index 2e7962d03..2de779063 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/FloorPlan.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/FloorPlan.java @@ -125,7 +125,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Id")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/OpeningHours.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/OpeningHours.java index e969cbd2e..556478314 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/OpeningHours.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/OpeningHours.java @@ -179,7 +179,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Id")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Product.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Product.java index eb40cedd6..ee0e69255 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Product.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Product.java @@ -259,7 +259,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Id")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/ProductCount.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/ProductCount.java index 84e90041f..d756032d9 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/ProductCount.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/ProductCount.java @@ -80,7 +80,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("ProductId")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/PurchaseHistoryItem.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/PurchaseHistoryItem.java index f2999b2e0..718ecbbf9 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/PurchaseHistoryItem.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/PurchaseHistoryItem.java @@ -84,7 +84,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("ReceiptId")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Receipt.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Receipt.java index e215acd7f..f68f4b92b 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Receipt.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Receipt.java @@ -199,7 +199,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Id")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Shelf.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Shelf.java index fd8d75796..41cd721ce 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Shelf.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Shelf.java @@ -161,7 +161,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Id")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Vendor.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Vendor.java index 225043368..fd90f07b7 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Vendor.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/groceryStore/output/testcomparison/namespaces/sdkgrocerystore/Vendor.java @@ -166,7 +166,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Id")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/minimalTest/output/testcomparison/namespaces/minimalmetadata/SimplePerson.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/minimalTest/output/testcomparison/namespaces/minimalmetadata/SimplePerson.java index 298e7f55a..4b460e252 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/minimalTest/output/testcomparison/namespaces/minimalmetadata/SimplePerson.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/minimalTest/output/testcomparison/namespaces/minimalmetadata/SimplePerson.java @@ -205,7 +205,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Person")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/multipleEntitySets/output/testcomparison/namespaces/multipleentitysets/FooType.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/multipleEntitySets/output/testcomparison/namespaces/multipleentitysets/FooType.java index d4a44bf87..9bb07446f 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/multipleEntitySets/output/testcomparison/namespaces/multipleentitysets/FooType.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/multipleEntitySets/output/testcomparison/namespaces/multipleentitysets/FooType.java @@ -128,7 +128,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Foo")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/multipleEntitySets/output/testcomparison/namespaces/multipleentitysets/SimplePerson.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/multipleEntitySets/output/testcomparison/namespaces/multipleentitysets/SimplePerson.java index f6e1ecabb..6ea8d3c63 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/multipleEntitySets/output/testcomparison/namespaces/multipleentitysets/SimplePerson.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/multipleEntitySets/output/testcomparison/namespaces/multipleentitysets/SimplePerson.java @@ -128,7 +128,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Person")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/propertyNameClash/output/testcomparison/namespaces/minimalmetadata/Friend.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/propertyNameClash/output/testcomparison/namespaces/minimalmetadata/Friend.java index 0426c1745..2f315b087 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/propertyNameClash/output/testcomparison/namespaces/minimalmetadata/Friend.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/propertyNameClash/output/testcomparison/namespaces/minimalmetadata/Friend.java @@ -100,7 +100,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Name")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/propertyNameClash/output/testcomparison/namespaces/minimalmetadata/SimplePerson.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/propertyNameClash/output/testcomparison/namespaces/minimalmetadata/SimplePerson.java index 7feae66d7..ac0bc56a5 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/propertyNameClash/output/testcomparison/namespaces/minimalmetadata/SimplePerson.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/propertyNameClash/output/testcomparison/namespaces/minimalmetadata/SimplePerson.java @@ -145,7 +145,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("Person")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/A_TestComplexType.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/A_TestComplexType.java index 5fb207fcd..3afbe7e30 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/A_TestComplexType.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/A_TestComplexType.java @@ -283,7 +283,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("BaseStringProperty")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/A_TestLvl2NestedComplexType.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/A_TestLvl2NestedComplexType.java index 014a9edb1..5d460dff7 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/A_TestLvl2NestedComplexType.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/A_TestLvl2NestedComplexType.java @@ -69,7 +69,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("StringProperty")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/A_TestNestedComplexType.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/A_TestNestedComplexType.java index 4a55ec008..ceacce31a 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/A_TestNestedComplexType.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/A_TestNestedComplexType.java @@ -84,7 +84,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("StringProperty")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityCircularLinkChild.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityCircularLinkChild.java index 65de94304..a29fc8c54 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityCircularLinkChild.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityCircularLinkChild.java @@ -121,7 +121,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("KeyProperty")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityCircularLinkParent.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityCircularLinkParent.java index 61a6b67c2..0eaefc696 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityCircularLinkParent.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityCircularLinkParent.java @@ -121,7 +121,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("KeyProperty")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityLvl2MultiLink.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityLvl2MultiLink.java index edbf9b228..e9a26c362 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityLvl2MultiLink.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityLvl2MultiLink.java @@ -201,7 +201,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("KeyProperty")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityLvl2SingleLink.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityLvl2SingleLink.java index 84522cf56..c80c231dc 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityLvl2SingleLink.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityLvl2SingleLink.java @@ -201,7 +201,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("KeyProperty")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityMultiLink.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityMultiLink.java index 48978a6c3..61c501f98 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityMultiLink.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityMultiLink.java @@ -233,7 +233,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("KeyProperty")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityOtherMultiLink.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityOtherMultiLink.java index fd10a4f9a..57802cedd 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityOtherMultiLink.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityOtherMultiLink.java @@ -104,7 +104,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("KeyProperty")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntitySingleLink.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntitySingleLink.java index bf98a5b69..41626386c 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntitySingleLink.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntitySingleLink.java @@ -233,7 +233,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("KeyProperty")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityStream.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityStream.java index 9ea77f6b7..4759ced9d 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityStream.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityStream.java @@ -100,7 +100,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("StreamProperty")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityV4.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityV4.java index 04158a74a..72ecc516c 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityV4.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityV4.java @@ -711,7 +711,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("KeyPropertyGuid")) { diff --git a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityV4_Only_Function.java b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityV4_Only_Function.java index 162e274dd..2d51907c6 100644 --- a/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityV4_Only_Function.java +++ b/datamodel/odata-v4/odata-v4-generator/src/test/resources/oDataGeneratorIntegrationTest/testService/output/testcomparison/namespaces/test/TestEntityV4_Only_Function.java @@ -101,7 +101,7 @@ protected Map toMapOfFields() { @Override protected void fromMap(final Map inputValues) { - final Map cloudSdkValues = Maps.newHashMap(inputValues); + final Map cloudSdkValues = Maps.newLinkedHashMap(inputValues); // simple properties { if (cloudSdkValues.containsKey("KeyProperty")) { diff --git a/release_notes.md b/release_notes.md index 7b08b5ee7..8111e8bae 100644 --- a/release_notes.md +++ b/release_notes.md @@ -21,6 +21,7 @@ - Stabilize most of the remaining experimental APIs without changes, e.g. - RequestHeaderAccessor - ServiceBindingDestinationLoader +- OData v2 and v4 generators now use `LinkedHashMap` for the properties of the generated classes to maintain the order of the properties. ### 🐛 Fixed Issues