Skip to content

Commit cace223

Browse files
authored
Exchange HashMap with LinkedHashMap (odata v2) (#672)
Co-authored-by: Jonas Israel <[email protected]>
1 parent ee665be commit cace223

File tree

193 files changed

+273
-273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+273
-273
lines changed

datamodel/odata/odata-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odata/sample/namespaces/sdkgrocerystore/Address.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ protected String getEntityCollection()
332332
@Override
333333
protected Map<String, Object> getKey()
334334
{
335-
final Map<String, Object> result = Maps.newHashMap();
335+
final Map<String, Object> result = Maps.newLinkedHashMap();
336336
result.put("Id", getId());
337337
return result;
338338
}
@@ -356,7 +356,7 @@ protected Map<String, Object> toMapOfFields()
356356
@Override
357357
protected void fromMap( final Map<String, Object> inputValues )
358358
{
359-
final Map<String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
359+
final Map<String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
360360
// simple properties
361361
{
362362
if( cloudSdkValues.containsKey("Id") ) {

datamodel/odata/odata-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odata/sample/namespaces/sdkgrocerystore/AddressByKeyFluentHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
public class AddressByKeyFluentHelper extends FluentHelperByKey<AddressByKeyFluentHelper, Address, AddressSelectable>
2222
{
2323

24-
private final Map<String, Object> key = Maps.newHashMap();
24+
private final Map<String, Object> key = Maps.newLinkedHashMap();
2525

2626
/**
2727
* Creates a fluent helper object that will fetch a single

datamodel/odata/odata-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odata/sample/namespaces/sdkgrocerystore/Customer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ protected String getEntityCollection()
249249
@Override
250250
protected Map<String, Object> getKey()
251251
{
252-
final Map<String, Object> result = Maps.newHashMap();
252+
final Map<String, Object> result = Maps.newLinkedHashMap();
253253
result.put("Id", getId());
254254
return result;
255255
}
@@ -269,7 +269,7 @@ protected Map<String, Object> toMapOfFields()
269269
@Override
270270
protected void fromMap( final Map<String, Object> inputValues )
271271
{
272-
final Map<String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
272+
final Map<String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
273273
// simple properties
274274
{
275275
if( cloudSdkValues.containsKey("Id") ) {

datamodel/odata/odata-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odata/sample/namespaces/sdkgrocerystore/CustomerByKeyFluentHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class CustomerByKeyFluentHelper
2323
FluentHelperByKey<CustomerByKeyFluentHelper, Customer, CustomerSelectable>
2424
{
2525

26-
private final Map<String, Object> key = Maps.newHashMap();
26+
private final Map<String, Object> key = Maps.newLinkedHashMap();
2727

2828
/**
2929
* Creates a fluent helper object that will fetch a single

datamodel/odata/odata-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odata/sample/namespaces/sdkgrocerystore/FloorPlan.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ protected String getEntityCollection()
134134
@Override
135135
protected Map<String, Object> getKey()
136136
{
137-
final Map<String, Object> result = Maps.newHashMap();
137+
final Map<String, Object> result = Maps.newLinkedHashMap();
138138
result.put("Id", getId());
139139
return result;
140140
}
@@ -152,7 +152,7 @@ protected Map<String, Object> toMapOfFields()
152152
@Override
153153
protected void fromMap( final Map<String, Object> inputValues )
154154
{
155-
final Map<String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
155+
final Map<String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
156156
// simple properties
157157
{
158158
if( cloudSdkValues.containsKey("Id") ) {

datamodel/odata/odata-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odata/sample/namespaces/sdkgrocerystore/FloorPlanByKeyFluentHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class FloorPlanByKeyFluentHelper
2323
FluentHelperByKey<FloorPlanByKeyFluentHelper, FloorPlan, FloorPlanSelectable>
2424
{
2525

26-
private final Map<String, Object> key = Maps.newHashMap();
26+
private final Map<String, Object> key = Maps.newLinkedHashMap();
2727

2828
/**
2929
* Creates a fluent helper object that will fetch a single

datamodel/odata/odata-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odata/sample/namespaces/sdkgrocerystore/GetProductQuantitiesFluentHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class GetProductQuantitiesFluentHelper
2929
CollectionValuedFluentHelperFunction<GetProductQuantitiesFluentHelper, ProductCount, List<ProductCount>>
3030
{
3131

32-
private final Map<String, Object> values = Maps.newHashMap();
32+
private final Map<String, Object> values = Maps.newLinkedHashMap();
3333

3434
/**
3535
* Creates a fluent helper object that will execute the <b>GetProductQuantities</b> OData function import with the

datamodel/odata/odata-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odata/sample/namespaces/sdkgrocerystore/IsStoreOpenFluentHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
public class IsStoreOpenFluentHelper extends SingleValuedFluentHelperFunction<IsStoreOpenFluentHelper, Boolean, Boolean>
2828
{
2929

30-
private final Map<String, Object> values = Maps.newHashMap();
30+
private final Map<String, Object> values = Maps.newLinkedHashMap();
3131

3232
/**
3333
* Creates a fluent helper object that will execute the <b>IsStoreOpen</b> OData function import with the provided

datamodel/odata/odata-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odata/sample/namespaces/sdkgrocerystore/OpeningHours.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ protected String getEntityCollection()
213213
@Override
214214
protected Map<String, Object> getKey()
215215
{
216-
final Map<String, Object> result = Maps.newHashMap();
216+
final Map<String, Object> result = Maps.newLinkedHashMap();
217217
result.put("Id", getId());
218218
return result;
219219
}
@@ -233,7 +233,7 @@ protected Map<String, Object> toMapOfFields()
233233
@Override
234234
protected void fromMap( final Map<String, Object> inputValues )
235235
{
236-
final Map<String, Object> cloudSdkValues = Maps.newHashMap(inputValues);
236+
final Map<String, Object> cloudSdkValues = Maps.newLinkedHashMap(inputValues);
237237
// simple properties
238238
{
239239
if( cloudSdkValues.containsKey("Id") ) {

datamodel/odata/odata-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/odata/sample/namespaces/sdkgrocerystore/OpeningHoursByKeyFluentHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class OpeningHoursByKeyFluentHelper
2424
FluentHelperByKey<OpeningHoursByKeyFluentHelper, OpeningHours, OpeningHoursSelectable>
2525
{
2626

27-
private final Map<String, Object> key = Maps.newHashMap();
27+
private final Map<String, Object> key = Maps.newLinkedHashMap();
2828

2929
/**
3030
* Creates a fluent helper object that will fetch a single

0 commit comments

Comments
 (0)