Merge pull request #56 from ianwallen/OLINGO-1400

[OLINGO-1400] Remove duplicate call to provider.getEntityContainer() in EdmProviderImpl.createEntityContainer
This commit is contained in:
mibo 2019-11-18 09:10:25 +01:00 committed by GitHub
commit 43010c72e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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) {