Repository: olingo-odata2 Updated Branches: refs/heads/master 4e1667fcc -> e403c5595
[OLINGO-1063] Fixed getPropertyNames Project: http://git-wip-us.apache.org/repos/asf/olingo-odata2/repo Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata2/commit/e403c559 Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata2/tree/e403c559 Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata2/diff/e403c559 Branch: refs/heads/master Commit: e403c5595e37c3434496b56dea9d709d2b51a97a Parents: 4e1667f Author: mibo <[email protected]> Authored: Tue Dec 20 19:55:59 2016 +0100 Committer: mibo <[email protected]> Committed: Tue Dec 20 19:55:59 2016 +0100 ---------------------------------------------------------------------- .../odata2/core/edm/provider/EdmStructuralTypeImplProv.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/e403c559/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/edm/provider/EdmStructuralTypeImplProv.java ---------------------------------------------------------------------- diff --git a/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/edm/provider/EdmStructuralTypeImplProv.java b/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/edm/provider/EdmStructuralTypeImplProv.java index 8a8bcf5..1d46931 100644 --- a/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/edm/provider/EdmStructuralTypeImplProv.java +++ b/odata2-lib/odata-core/src/main/java/org/apache/olingo/odata2/core/edm/provider/EdmStructuralTypeImplProv.java @@ -109,15 +109,16 @@ public abstract class EdmStructuralTypeImplProv extends EdmNamedImplProv impleme @Override public List<String> getPropertyNames() throws EdmException { if (edmPropertyNames == null) { - edmPropertyNames = new ArrayList<String>(); + final List<String> temp = new ArrayList<String>(); if (edmBaseType != null) { - edmPropertyNames.addAll(edmBaseType.getPropertyNames()); + temp.addAll(edmBaseType.getPropertyNames()); } if (structuralType.getProperties() != null) { for (final Property property : structuralType.getProperties()) { - edmPropertyNames.add(property.getName()); + temp.add(property.getName()); } } + edmPropertyNames = temp; } return edmPropertyNames;
