[OLINGO-530] Javadoc and cleanup unused imports

This commit is contained in:
Christian Amend 2015-01-14 15:53:24 +01:00
parent 1c735e89b3
commit 0aad7c037c
3 changed files with 19 additions and 2 deletions

View File

@ -301,7 +301,7 @@ public class BatchTestITCase extends AbstractTestITCase {
}
@Test
@SuppressWarnings("unchecked")
@SuppressWarnings({ "unchecked", "rawtypes" })
public void batchRequest() throws EdmPrimitiveTypeException {
// create your request
final ODataBatchRequest request = client.getBatchRequestFactory().getBatchRequest(testStaticServiceRootURL);

View File

@ -390,7 +390,7 @@ public class BatchTestITCase extends AbstractTestITCase {
}
@Test
@SuppressWarnings({"unchecked"})
@SuppressWarnings({"unchecked", "rawtypes"})
public void batchRequest() throws EdmPrimitiveTypeException {
// create your request
final ODataBatchRequest request = client.getBatchRequestFactory().getBatchRequest(testStaticServiceRootURL);

View File

@ -24,10 +24,27 @@ import org.apache.olingo.commons.api.data.Entity;
import org.apache.olingo.commons.api.data.EntitySet;
import org.apache.olingo.commons.api.edm.EdmEntityType;
/**
* Deserializer on OData server side.
*/
public interface ODataDeserializer {
/**
* Deserializes an entity stream into an {@link Entity} object.
* @param stream
* @param edmEntityType
* @return deserialized {@link Entity} object
* @throws DeserializerException
*/
Entity entity(InputStream stream, EdmEntityType edmEntityType) throws DeserializerException;
/**
* Deserializes an entity collection stream into an {@link EntitySet} object.
* @param stream
* @param edmEntityType
* @return deserialized {@link EntitySet} object
* @throws DeserializerException
*/
EntitySet entityCollection(InputStream stream, EdmEntityType edmEntityType) throws DeserializerException;
}