From e0d1b6ffac6c930d5bc2ea59901ff16e1484932a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesco=20Chicchiricc=C3=B2?= Date: Sat, 29 Mar 2014 13:53:26 +0100 Subject: [PATCH] Removing useless method --- .../apache/olingo/client/core/it/v3/AsyncTestITCase.java | 6 ++++-- .../apache/olingo/commons/api/domain/ODataProperty.java | 9 --------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/lib/client-core/src/test/java/org/apache/olingo/client/core/it/v3/AsyncTestITCase.java b/lib/client-core/src/test/java/org/apache/olingo/client/core/it/v3/AsyncTestITCase.java index 689c1f5fd..8b7fa0196 100644 --- a/lib/client-core/src/test/java/org/apache/olingo/client/core/it/v3/AsyncTestITCase.java +++ b/lib/client-core/src/test/java/org/apache/olingo/client/core/it/v3/AsyncTestITCase.java @@ -72,8 +72,10 @@ public class AsyncTestITCase extends AbstractTestITCase { entity.getAssociationLinks().clear(); entity.getNavigationLinks().clear(); entity.getEditMediaLinks().clear(); - entity.getProperty("Description").setValue( - client.getPrimitiveValueBuilder().setText("AsyncTest#updateEntity").build()); + + entity.getProperties().remove(entity.getProperty("Description")); + entity.getProperties().add(client.getObjectFactory().newPrimitiveProperty("Description", + client.getPrimitiveValueBuilder().setText("AsyncTest#updateEntity").build())); final ODataEntityUpdateRequest updateReq = client.getCUDRequestFactory().getEntityUpdateRequest(uri, UpdateType.MERGE, entity); diff --git a/lib/commons-api/src/main/java/org/apache/olingo/commons/api/domain/ODataProperty.java b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/domain/ODataProperty.java index 24364d7b1..e43f68c72 100644 --- a/lib/commons-api/src/main/java/org/apache/olingo/commons/api/domain/ODataProperty.java +++ b/lib/commons-api/src/main/java/org/apache/olingo/commons/api/domain/ODataProperty.java @@ -70,15 +70,6 @@ public class ODataProperty implements Serializable, ODataInvokeResult { return value; } - /** - * Updates property value. - * - * @param value property value that replaces current. - */ - public void setValue(final ODataValue value) { - this.value = value; - } - /** * Checks if has null value. *