Skip to content

Commit ee665be

Browse files
[OData] Renamed internal variable value to cloudSdkValue (#671)
1 parent 9eef08a commit ee665be

File tree

47 files changed

+802
-804
lines changed

Some content is hidden

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

47 files changed

+802
-804
lines changed

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,13 @@ protected void fromMap( final Map<java.lang.String, Object> inputValues )
260260
// navigation properties
261261
{
262262
if( (cloudSdkValues).containsKey("Address") ) {
263-
final Object value = (cloudSdkValues).remove("Address");
264-
if( value instanceof Map ) {
263+
final Object cloudSdkValue = (cloudSdkValues).remove("Address");
264+
if( cloudSdkValue instanceof Map ) {
265265
if( toAddress == null ) {
266266
toAddress = new Address();
267267
}
268268
@SuppressWarnings( "unchecked" )
269-
final Map<java.lang.String, Object> inputMap = ((Map<java.lang.String, Object>) value);
269+
final Map<java.lang.String, Object> inputMap = ((Map<java.lang.String, Object>) cloudSdkValue);
270270
toAddress.fromMap(inputMap);
271271
}
272272
}
@@ -310,12 +310,12 @@ public Option<Address> getAddressIfPresent()
310310
/**
311311
* Overwrites the associated <b>Address</b> entity for the loaded navigation property <b>Address</b>.
312312
*
313-
* @param value
313+
* @param cloudSdkValue
314314
* New <b>Address</b> entity.
315315
*/
316-
public void setAddress( final Address value )
316+
public void setAddress( final Address cloudSdkValue )
317317
{
318-
toAddress = value;
318+
toAddress = cloudSdkValue;
319319
}
320320

321321
/**
@@ -409,23 +409,23 @@ public final static class CustomerBuilder
409409

410410
private Address toAddress;
411411

412-
private Customer.CustomerBuilder toAddress( final Address value )
412+
private Customer.CustomerBuilder toAddress( final Address cloudSdkValue )
413413
{
414-
toAddress = value;
414+
toAddress = cloudSdkValue;
415415
return this;
416416
}
417417

418418
/**
419419
* Navigation property <b>Address</b> for <b>Customer</b> to single <b>Address</b>.
420420
*
421-
* @param value
421+
* @param cloudSdkValue
422422
* The Address to build this Customer with.
423423
* @return This Builder to allow for a fluent interface.
424424
*/
425425
@Nonnull
426-
public Customer.CustomerBuilder address( final Address value )
426+
public Customer.CustomerBuilder address( final Address cloudSdkValue )
427427
{
428-
return toAddress(value);
428+
return toAddress(cloudSdkValue);
429429
}
430430

431431
}

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

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -362,24 +362,24 @@ protected void fromMap( final Map<java.lang.String, Object> inputValues )
362362
// navigation properties
363363
{
364364
if( (cloudSdkValues).containsKey("Vendor") ) {
365-
final Object value = (cloudSdkValues).remove("Vendor");
366-
if( value instanceof Map ) {
365+
final Object cloudSdkValue = (cloudSdkValues).remove("Vendor");
366+
if( cloudSdkValue instanceof Map ) {
367367
if( toVendor == null ) {
368368
toVendor = new Vendor();
369369
}
370370
@SuppressWarnings( "unchecked" )
371-
final Map<java.lang.String, Object> inputMap = ((Map<java.lang.String, Object>) value);
371+
final Map<java.lang.String, Object> inputMap = ((Map<java.lang.String, Object>) cloudSdkValue);
372372
toVendor.fromMap(inputMap);
373373
}
374374
}
375375
if( (cloudSdkValues).containsKey("Shelf") ) {
376-
final Object value = (cloudSdkValues).remove("Shelf");
377-
if( value instanceof Map ) {
376+
final Object cloudSdkValue = (cloudSdkValues).remove("Shelf");
377+
if( cloudSdkValue instanceof Map ) {
378378
if( toShelf == null ) {
379379
toShelf = new Shelf();
380380
}
381381
@SuppressWarnings( "unchecked" )
382-
final Map<java.lang.String, Object> inputMap = ((Map<java.lang.String, Object>) value);
382+
final Map<java.lang.String, Object> inputMap = ((Map<java.lang.String, Object>) cloudSdkValue);
383383
toShelf.fromMap(inputMap);
384384
}
385385
}
@@ -426,12 +426,12 @@ public Option<Vendor> getVendorIfPresent()
426426
/**
427427
* Overwrites the associated <b>Vendor</b> entity for the loaded navigation property <b>Vendor</b>.
428428
*
429-
* @param value
429+
* @param cloudSdkValue
430430
* New <b>Vendor</b> entity.
431431
*/
432-
public void setVendor( final Vendor value )
432+
public void setVendor( final Vendor cloudSdkValue )
433433
{
434-
toVendor = value;
434+
toVendor = cloudSdkValue;
435435
}
436436

437437
/**
@@ -453,12 +453,12 @@ public Option<Shelf> getShelfIfPresent()
453453
/**
454454
* Overwrites the associated <b>Shelf</b> entity for the loaded navigation property <b>Shelf</b>.
455455
*
456-
* @param value
456+
* @param cloudSdkValue
457457
* New <b>Shelf</b> entity.
458458
*/
459-
public void setShelf( final Shelf value )
459+
public void setShelf( final Shelf cloudSdkValue )
460460
{
461-
toShelf = value;
461+
toShelf = cloudSdkValue;
462462
}
463463

464464
/**
@@ -471,42 +471,42 @@ public final static class ProductBuilder
471471
private Vendor toVendor;
472472
private Shelf toShelf;
473473

474-
private Product.ProductBuilder toVendor( final Vendor value )
474+
private Product.ProductBuilder toVendor( final Vendor cloudSdkValue )
475475
{
476-
toVendor = value;
476+
toVendor = cloudSdkValue;
477477
return this;
478478
}
479479

480480
/**
481481
* Navigation property <b>Vendor</b> for <b>Product</b> to single <b>Vendor</b>.
482482
*
483-
* @param value
483+
* @param cloudSdkValue
484484
* The Vendor to build this Product with.
485485
* @return This Builder to allow for a fluent interface.
486486
*/
487487
@Nonnull
488-
public Product.ProductBuilder vendor( final Vendor value )
488+
public Product.ProductBuilder vendor( final Vendor cloudSdkValue )
489489
{
490-
return toVendor(value);
490+
return toVendor(cloudSdkValue);
491491
}
492492

493-
private Product.ProductBuilder toShelf( final Shelf value )
493+
private Product.ProductBuilder toShelf( final Shelf cloudSdkValue )
494494
{
495-
toShelf = value;
495+
toShelf = cloudSdkValue;
496496
return this;
497497
}
498498

499499
/**
500500
* Navigation property <b>Shelf</b> for <b>Product</b> to single <b>Shelf</b>.
501501
*
502-
* @param value
502+
* @param cloudSdkValue
503503
* The Shelf to build this Product with.
504504
* @return This Builder to allow for a fluent interface.
505505
*/
506506
@Nonnull
507-
public Product.ProductBuilder shelf( final Shelf value )
507+
public Product.ProductBuilder shelf( final Shelf cloudSdkValue )
508508
{
509-
return toShelf(value);
509+
return toShelf(cloudSdkValue);
510510
}
511511

512512
}

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,13 @@ protected void fromMap( final Map<String, Object> inputValues )
280280
// navigation properties
281281
{
282282
if( (cloudSdkValues).containsKey("Customer") ) {
283-
final Object value = (cloudSdkValues).remove("Customer");
284-
if( value instanceof Map ) {
283+
final Object cloudSdkValue = (cloudSdkValues).remove("Customer");
284+
if( cloudSdkValue instanceof Map ) {
285285
if( toCustomer == null ) {
286286
toCustomer = new Customer();
287287
}
288288
@SuppressWarnings( "unchecked" )
289-
final Map<String, Object> inputMap = ((Map<String, Object>) value);
289+
final Map<String, Object> inputMap = ((Map<String, Object>) cloudSdkValue);
290290
toCustomer.fromMap(inputMap);
291291
}
292292
}
@@ -330,12 +330,12 @@ public Option<Customer> getCustomerIfPresent()
330330
/**
331331
* Overwrites the associated <b>Customer</b> entity for the loaded navigation property <b>Customer</b>.
332332
*
333-
* @param value
333+
* @param cloudSdkValue
334334
* New <b>Customer</b> entity.
335335
*/
336-
public void setCustomer( final Customer value )
336+
public void setCustomer( final Customer cloudSdkValue )
337337
{
338-
toCustomer = value;
338+
toCustomer = cloudSdkValue;
339339
}
340340

341341
/**
@@ -347,23 +347,23 @@ public final static class ReceiptBuilder
347347

348348
private Customer toCustomer;
349349

350-
private Receipt.ReceiptBuilder toCustomer( final Customer value )
350+
private Receipt.ReceiptBuilder toCustomer( final Customer cloudSdkValue )
351351
{
352-
toCustomer = value;
352+
toCustomer = cloudSdkValue;
353353
return this;
354354
}
355355

356356
/**
357357
* Navigation property <b>Customer</b> for <b>Receipt</b> to single <b>Customer</b>.
358358
*
359-
* @param value
359+
* @param cloudSdkValue
360360
* The Customer to build this Receipt with.
361361
* @return This Builder to allow for a fluent interface.
362362
*/
363363
@Nonnull
364-
public Receipt.ReceiptBuilder customer( final Customer value )
364+
public Receipt.ReceiptBuilder customer( final Customer cloudSdkValue )
365365
{
366-
return toCustomer(value);
366+
return toCustomer(cloudSdkValue);
367367
}
368368

369369
}

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

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -208,26 +208,26 @@ protected void fromMap( final Map<String, Object> inputValues )
208208
// navigation properties
209209
{
210210
if( (cloudSdkValues).containsKey("FloorPlan") ) {
211-
final Object value = (cloudSdkValues).remove("FloorPlan");
212-
if( value instanceof Map ) {
211+
final Object cloudSdkValue = (cloudSdkValues).remove("FloorPlan");
212+
if( cloudSdkValue instanceof Map ) {
213213
if( toFloorPlan == null ) {
214214
toFloorPlan = new FloorPlan();
215215
}
216216
@SuppressWarnings( "unchecked" )
217-
final Map<String, Object> inputMap = ((Map<String, Object>) value);
217+
final Map<String, Object> inputMap = ((Map<String, Object>) cloudSdkValue);
218218
toFloorPlan.fromMap(inputMap);
219219
}
220220
}
221221
if( (cloudSdkValues).containsKey("Products") ) {
222-
final Object value = (cloudSdkValues).remove("Products");
223-
if( value instanceof Iterable ) {
222+
final Object cloudSdkValue = (cloudSdkValues).remove("Products");
223+
if( cloudSdkValue instanceof Iterable ) {
224224
if( toProducts == null ) {
225225
toProducts = Lists.newArrayList();
226226
} else {
227227
toProducts = Lists.newArrayList(toProducts);
228228
}
229229
int i = 0;
230-
for( Object item : ((Iterable<?>) value) ) {
230+
for( Object item : ((Iterable<?>) cloudSdkValue) ) {
231231
if( !(item instanceof Map) ) {
232232
continue;
233233
}
@@ -289,12 +289,12 @@ public Option<FloorPlan> getFloorPlanIfPresent()
289289
/**
290290
* Overwrites the associated <b>FloorPlan</b> entity for the loaded navigation property <b>FloorPlan</b>.
291291
*
292-
* @param value
292+
* @param cloudSdkValue
293293
* New <b>FloorPlan</b> entity.
294294
*/
295-
public void setFloorPlan( final FloorPlan value )
295+
public void setFloorPlan( final FloorPlan cloudSdkValue )
296296
{
297-
toFloorPlan = value;
297+
toFloorPlan = cloudSdkValue;
298298
}
299299

300300
/**
@@ -324,16 +324,16 @@ public Option<List<Product>> getProductsIfPresent()
324324
* first time and it has not yet been loaded, an OData query will be run in order to load the missing information
325325
* and its result will get cached for future invocations.
326326
*
327-
* @param value
327+
* @param cloudSdkValue
328328
* List of <b>Product</b> entities.
329329
*/
330-
public void setProducts( @Nonnull final List<Product> value )
330+
public void setProducts( @Nonnull final List<Product> cloudSdkValue )
331331
{
332332
if( toProducts == null ) {
333333
toProducts = Lists.newArrayList();
334334
}
335335
toProducts.clear();
336-
toProducts.addAll(value);
336+
toProducts.addAll(cloudSdkValue);
337337
}
338338

339339
/**
@@ -390,42 +390,42 @@ public final static class ShelfBuilder
390390
private FloorPlan toFloorPlan;
391391
private List<Product> toProducts = Lists.newArrayList();
392392

393-
private Shelf.ShelfBuilder toFloorPlan( final FloorPlan value )
393+
private Shelf.ShelfBuilder toFloorPlan( final FloorPlan cloudSdkValue )
394394
{
395-
toFloorPlan = value;
395+
toFloorPlan = cloudSdkValue;
396396
return this;
397397
}
398398

399399
/**
400400
* Navigation property <b>FloorPlan</b> for <b>Shelf</b> to single <b>FloorPlan</b>.
401401
*
402-
* @param value
402+
* @param cloudSdkValue
403403
* The FloorPlan to build this Shelf with.
404404
* @return This Builder to allow for a fluent interface.
405405
*/
406406
@Nonnull
407-
public Shelf.ShelfBuilder floorPlan( final FloorPlan value )
407+
public Shelf.ShelfBuilder floorPlan( final FloorPlan cloudSdkValue )
408408
{
409-
return toFloorPlan(value);
409+
return toFloorPlan(cloudSdkValue);
410410
}
411411

412-
private Shelf.ShelfBuilder toProducts( final List<Product> value )
412+
private Shelf.ShelfBuilder toProducts( final List<Product> cloudSdkValue )
413413
{
414-
toProducts.addAll(value);
414+
toProducts.addAll(cloudSdkValue);
415415
return this;
416416
}
417417

418418
/**
419419
* Navigation property <b>Products</b> for <b>Shelf</b> to multiple <b>Product</b>.
420420
*
421-
* @param value
421+
* @param cloudSdkValue
422422
* The Products to build this Shelf with.
423423
* @return This Builder to allow for a fluent interface.
424424
*/
425425
@Nonnull
426-
public Shelf.ShelfBuilder products( Product... value )
426+
public Shelf.ShelfBuilder products( Product... cloudSdkValue )
427427
{
428-
return toProducts(Lists.newArrayList(value));
428+
return toProducts(Lists.newArrayList(cloudSdkValue));
429429
}
430430

431431
}

0 commit comments

Comments
 (0)