OLINGO-1400 - remove duplicate call to provider.getEntityContainer() in EdmProviderImpl.createEntityContainer

This commit is contained in:
Ian Allen 2019-09-26 10:38:44 -03:00
parent 6c2103ccd4
commit f4a6baeaee
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) {