olingo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chri...@apache.org
Subject olingo-odata2 git commit: [OLINGO-970] Remove unused imports
Date Wed, 18 Jan 2017 15:59:00 GMT
Repository: olingo-odata2
Updated Branches:
  refs/heads/master d94c0456a -> 6a609b4db


[OLINGO-970] Remove unused imports


Project: http://git-wip-us.apache.org/repos/asf/olingo-odata2/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata2/commit/6a609b4d
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata2/tree/6a609b4d
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata2/diff/6a609b4d

Branch: refs/heads/master
Commit: 6a609b4db1f933e5682e696a08e2dfd45dea9e6c
Parents: d94c045
Author: Christian Amend <christian.amend@sap.com>
Authored: Wed Jan 18 16:58:25 2017 +0100
Committer: Christian Amend <christian.amend@sap.com>
Committed: Wed Jan 18 16:58:25 2017 +0100

----------------------------------------------------------------------
 .../core/datasource/AnnotationsInMemoryDsTest.java          | 6 +++---
 .../annotation/processor/core/model/GuidKeyEntity.java      | 5 ++---
 .../jpa/processor/ref/listeners/CustomerQueryExtension.java | 9 +++++----
 .../jpa/processor/ref/web/JPAReferenceServiceFactory.java   | 1 -
 4 files changed, 10 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/6a609b4d/odata2-annotation-processor/annotation-processor-core/src/test/java/org/apache/olingo/odata2/annotation/processor/core/datasource/AnnotationsInMemoryDsTest.java
----------------------------------------------------------------------
diff --git a/odata2-annotation-processor/annotation-processor-core/src/test/java/org/apache/olingo/odata2/annotation/processor/core/datasource/AnnotationsInMemoryDsTest.java
b/odata2-annotation-processor/annotation-processor-core/src/test/java/org/apache/olingo/odata2/annotation/processor/core/datasource/AnnotationsInMemoryDsTest.java
index fe75049..c1fc882 100644
--- a/odata2-annotation-processor/annotation-processor-core/src/test/java/org/apache/olingo/odata2/annotation/processor/core/datasource/AnnotationsInMemoryDsTest.java
+++ b/odata2-annotation-processor/annotation-processor-core/src/test/java/org/apache/olingo/odata2/annotation/processor/core/datasource/AnnotationsInMemoryDsTest.java
@@ -700,7 +700,7 @@ public class AnnotationsInMemoryDsTest {
     photo.setImageType("image/png");
     datasource.createData(edmEntitySet, photo);
 
-    List photos = datasource.readData(edmEntitySet);
+    List<?> photos = datasource.readData(edmEntitySet);
     Photo readPhoto = (Photo) photos.get(0);
     Assert.assertEquals(automaticNameKeyValue + ":" + typeKeyValue,
             readPhoto.getName() + ":" + readPhoto.getType());
@@ -737,7 +737,7 @@ public class AnnotationsInMemoryDsTest {
     photo2.setImageType("image/png");
     datasource.createData(edmEntitySet, photo2);
 
-    List photos = datasource.readData(edmEntitySet);
+    List<?> photos = datasource.readData(edmEntitySet);
     Assert.assertEquals(2, photos.size());
 
     // Check photo 1 has specified key values.
@@ -764,7 +764,7 @@ public class AnnotationsInMemoryDsTest {
     testEntity.setName(entityName);
     datasource.createData(edmEntitySet, testEntity);
 
-    List entities = datasource.readData(edmEntitySet);
+    List<?> entities = datasource.readData(edmEntitySet);
     GuidKeyEntity readEntity = (GuidKeyEntity) entities.get(0);
     Assert.assertEquals(entityName, readEntity.getName());
   }

http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/6a609b4d/odata2-annotation-processor/annotation-processor-core/src/test/java/org/apache/olingo/odata2/annotation/processor/core/model/GuidKeyEntity.java
----------------------------------------------------------------------
diff --git a/odata2-annotation-processor/annotation-processor-core/src/test/java/org/apache/olingo/odata2/annotation/processor/core/model/GuidKeyEntity.java
b/odata2-annotation-processor/annotation-processor-core/src/test/java/org/apache/olingo/odata2/annotation/processor/core/model/GuidKeyEntity.java
index 36feabe..ce62894 100644
--- a/odata2-annotation-processor/annotation-processor-core/src/test/java/org/apache/olingo/odata2/annotation/processor/core/model/GuidKeyEntity.java
+++ b/odata2-annotation-processor/annotation-processor-core/src/test/java/org/apache/olingo/odata2/annotation/processor/core/model/GuidKeyEntity.java
@@ -15,6 +15,8 @@
  */
 package org.apache.olingo.odata2.annotation.processor.core.model;
 
+import java.util.UUID;
+
 import org.apache.olingo.odata2.api.annotation.edm.EdmEntitySet;
 import org.apache.olingo.odata2.api.annotation.edm.EdmEntityType;
 import org.apache.olingo.odata2.api.annotation.edm.EdmFacets;
@@ -22,9 +24,6 @@ import org.apache.olingo.odata2.api.annotation.edm.EdmKey;
 import org.apache.olingo.odata2.api.annotation.edm.EdmProperty;
 import org.apache.olingo.odata2.api.annotation.edm.EdmType;
 
-import java.util.AbstractMap;
-import java.util.UUID;
-
 @EdmEntityType(name = "GuidKeyEntity", namespace = ModelSharedConstants.NAMESPACE_1)
 @EdmEntitySet(name = GuidKeyEntity.GUID_KEY_ENTITIES)
 public class GuidKeyEntity {

http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/6a609b4d/odata2-jpa-processor/jpa-ref/src/main/java/org/apache/olingo/odata2/jpa/processor/ref/listeners/CustomerQueryExtension.java
----------------------------------------------------------------------
diff --git a/odata2-jpa-processor/jpa-ref/src/main/java/org/apache/olingo/odata2/jpa/processor/ref/listeners/CustomerQueryExtension.java
b/odata2-jpa-processor/jpa-ref/src/main/java/org/apache/olingo/odata2/jpa/processor/ref/listeners/CustomerQueryExtension.java
index ef385fe..1babccd 100644
--- a/odata2-jpa-processor/jpa-ref/src/main/java/org/apache/olingo/odata2/jpa/processor/ref/listeners/CustomerQueryExtension.java
+++ b/odata2-jpa-processor/jpa-ref/src/main/java/org/apache/olingo/odata2/jpa/processor/ref/listeners/CustomerQueryExtension.java
@@ -18,6 +18,11 @@
  ******************************************************************************/
 package org.apache.olingo.odata2.jpa.processor.ref.listeners;
 
+import java.util.Locale;
+
+import javax.persistence.EntityManager;
+import javax.persistence.Query;
+
 import org.apache.olingo.odata2.api.uri.expression.FilterExpression;
 import org.apache.olingo.odata2.api.uri.info.GetEntitySetUriInfo;
 import org.apache.olingo.odata2.api.uri.info.GetEntityUriInfo;
@@ -28,10 +33,6 @@ import org.apache.olingo.odata2.jpa.processor.api.jpql.JPQLContext;
 import org.apache.olingo.odata2.jpa.processor.api.jpql.JPQLContextType;
 import org.apache.olingo.odata2.jpa.processor.api.jpql.JPQLStatement;
 
-import javax.persistence.EntityManager;
-import javax.persistence.Query;
-import java.util.Locale;
-
 public class CustomerQueryExtension extends ODataJPAQueryExtensionEntityListener {
 
   @Override

http://git-wip-us.apache.org/repos/asf/olingo-odata2/blob/6a609b4d/odata2-jpa-processor/jpa-web/src/main/java/org/apache/olingo/odata2/jpa/processor/ref/web/JPAReferenceServiceFactory.java
----------------------------------------------------------------------
diff --git a/odata2-jpa-processor/jpa-web/src/main/java/org/apache/olingo/odata2/jpa/processor/ref/web/JPAReferenceServiceFactory.java
b/odata2-jpa-processor/jpa-web/src/main/java/org/apache/olingo/odata2/jpa/processor/ref/web/JPAReferenceServiceFactory.java
index 845875b..8fd9bfa 100644
--- a/odata2-jpa-processor/jpa-web/src/main/java/org/apache/olingo/odata2/jpa/processor/ref/web/JPAReferenceServiceFactory.java
+++ b/odata2-jpa-processor/jpa-web/src/main/java/org/apache/olingo/odata2/jpa/processor/ref/web/JPAReferenceServiceFactory.java
@@ -27,7 +27,6 @@ import org.apache.olingo.odata2.jpa.processor.api.ODataJPAContext;
 import org.apache.olingo.odata2.jpa.processor.api.ODataJPAServiceFactory;
 import org.apache.olingo.odata2.jpa.processor.api.OnJPAWriteContent;
 import org.apache.olingo.odata2.jpa.processor.api.exception.ODataJPARuntimeException;
-import org.apache.olingo.odata2.jpa.processor.api.factory.ODataJPAAccessFactory;
 import org.apache.olingo.odata2.jpa.processor.ref.extension.OnDBWriteContent;
 import org.apache.olingo.odata2.jpa.processor.ref.extension.SalesOrderProcessingExtension;
 import org.apache.olingo.odata2.jpa.processor.ref.factory.JPAEntityManagerFactory;


Mime
View raw message