You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by il...@apache.org on 2014/04/01 16:18:52 UTC
[25/51] [abbrv] git commit: Removing useless method
Removing useless method
Project: http://git-wip-us.apache.org/repos/asf/olingo-odata4/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata4/commit/e0d1b6ff
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata4/tree/e0d1b6ff
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata4/diff/e0d1b6ff
Branch: refs/heads/master
Commit: e0d1b6ffac6c930d5bc2ea59901ff16e1484932a
Parents: b85c68f
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Sat Mar 29 13:53:26 2014 +0100
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Sat Mar 29 13:53:26 2014 +0100
----------------------------------------------------------------------
.../apache/olingo/client/core/it/v3/AsyncTestITCase.java | 6 ++++--
.../org/apache/olingo/commons/api/domain/ODataProperty.java | 9 ---------
2 files changed, 4 insertions(+), 11 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/e0d1b6ff/lib/client-core/src/test/java/org/apache/olingo/client/core/it/v3/AsyncTestITCase.java
----------------------------------------------------------------------
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 689c1f5..8b7fa01 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);
http://git-wip-us.apache.org/repos/asf/olingo-odata4/blob/e0d1b6ff/lib/commons-api/src/main/java/org/apache/olingo/commons/api/domain/ODataProperty.java
----------------------------------------------------------------------
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 24364d7..e43f68c 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
@@ -71,15 +71,6 @@ public class ODataProperty implements Serializable, ODataInvokeResult {
}
/**
- * Updates property value.
- *
- * @param value property value that replaces current.
- */
- public void setValue(final ODataValue value) {
- this.value = value;
- }
-
- /**
* Checks if has null value.
*
* @return 'TRUE' if has null value; 'FALSE' otherwise.