Repository: camel
Updated Branches:
  refs/heads/master 882857fa9 -> 88cc247ed


CAMEL-7829 Fixed the CS errors of camel-olingo2-api


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7e11fb71
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7e11fb71
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7e11fb71

Branch: refs/heads/master
Commit: 7e11fb7189b1e4715fd5e39c4eb7094a1ef4e20b
Parents: 6aa728b
Author: Willem Jiang <[email protected]>
Authored: Sun Sep 21 19:38:50 2014 +0800
Committer: Willem Jiang <[email protected]>
Committed: Sun Sep 21 20:01:36 2014 +0800

----------------------------------------------------------------------
 .../olingo2/api/impl/Olingo2AppImpl.java        | 24 ++++++++++++--------
 1 file changed, 14 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/7e11fb71/components/camel-olingo2/camel-olingo2-api/src/main/java/org/apache/camel/component/olingo2/api/impl/Olingo2AppImpl.java
----------------------------------------------------------------------
diff --git 
a/components/camel-olingo2/camel-olingo2-api/src/main/java/org/apache/camel/component/olingo2/api/impl/Olingo2AppImpl.java
 
b/components/camel-olingo2/camel-olingo2-api/src/main/java/org/apache/camel/component/olingo2/api/impl/Olingo2AppImpl.java
index 2c41453..78ce007 100644
--- 
a/components/camel-olingo2/camel-olingo2-api/src/main/java/org/apache/camel/component/olingo2/api/impl/Olingo2AppImpl.java
+++ 
b/components/camel-olingo2/camel-olingo2-api/src/main/java/org/apache/camel/component/olingo2/api/impl/Olingo2AppImpl.java
@@ -485,28 +485,32 @@ public final class Olingo2AppImpl implements Olingo2App {
                             // get the response content as Map<String, Object>
                             final List<EdmProperty> complexPropertyPath = 
uriInfo.getPropertyPath();
                             final EdmProperty complexProperty = 
complexPropertyPath.get(complexPropertyPath.size() - 1);
-                            responseHandler.onResponse(
-                                (T) 
EntityProvider.readProperty(getContentType(), complexProperty,
-                                result.getEntity().getContent(),
-                                EntityProviderReadProperties.init().build()));
+                            
responseHandler.onResponse((T)EntityProvider.readProperty(getContentType(),
+                                                                               
       complexProperty, result
+                                                                               
           .getEntity()
+                                                                               
           .getContent(),
+                                                                               
       EntityProviderReadProperties
+                                                                               
           .init().build()));
                             break;
 
                         case URI7A:
                             // $links with 0..1 cardinality property
                             // get the response content as String
                             final EdmEntitySet targetLinkEntitySet = 
uriInfo.getTargetEntitySet();
-                            responseHandler.onResponse(
-                                (T) EntityProvider.readLink(getContentType(), 
targetLinkEntitySet,
-                                result.getEntity().getContent()));
+                            
responseHandler.onResponse((T)EntityProvider.readLink(getContentType(),
+                                                                               
   targetLinkEntitySet, result
+                                                                               
       .getEntity()
+                                                                               
       .getContent()));
                             break;
 
                         case URI7B:
                             // $links with * cardinality property
                             // get the response content as 
java.util.List<String>
                             final EdmEntitySet targetLinksEntitySet = 
uriInfo.getTargetEntitySet();
-                            responseHandler.onResponse(
-                                (T) EntityProvider.readLinks(getContentType(), 
targetLinksEntitySet,
-                                result.getEntity().getContent()));
+                            
responseHandler.onResponse((T)EntityProvider.readLinks(getContentType(),
+                                                                               
    targetLinksEntitySet,
+                                                                               
    result.getEntity()
+                                                                               
        .getContent()));
                             break;
 
                         case URI1:

Reply via email to