From f4a6baeaeeb0acde65d3a6aaf3e14f02f6d3ae36 Mon Sep 17 00:00:00 2001 From: Ian Allen Date: Thu, 26 Sep 2019 10:38:44 -0300 Subject: [PATCH] OLINGO-1400 - remove duplicate call to provider.getEntityContainer() in EdmProviderImpl.createEntityContainer --- .../org/apache/olingo/commons/core/edm/EdmProviderImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/EdmProviderImpl.java b/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/EdmProviderImpl.java index abd17da87..bf5ea7d68 100644 --- a/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/EdmProviderImpl.java +++ b/lib/commons-core/src/main/java/org/apache/olingo/commons/core/edm/EdmProviderImpl.java @@ -86,9 +86,10 @@ public class EdmProviderImpl extends AbstractEdm { try { CsdlEntityContainerInfo entityContainerInfo = provider.getEntityContainerInfo(containerName); if (entityContainerInfo != null) { - addEntityContainerAnnotations(provider.getEntityContainer(), entityContainerInfo.getContainerName()); + CsdlEntityContainer entityContainer = provider.getEntityContainer(); + addEntityContainerAnnotations(entityContainer, entityContainerInfo.getContainerName()); return new EdmEntityContainerImpl(this, provider, entityContainerInfo.getContainerName(), - provider.getEntityContainer()); + entityContainer); } return null; } catch (ODataException e) {