Repository: camel
Updated Branches:
  refs/heads/camel-2.12.x bde9a447a -> 57b1099f4
  refs/heads/camel-2.13.x 64aa22d6f -> 978011461
  refs/heads/camel-2.14.x fa690a5de -> fc99a62fd


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/57e2fa49
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/57e2fa49
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/57e2fa49

Branch: refs/heads/camel-2.14.x
Commit: 57e2fa4998f328fb5f53a19e61f80d6adb851cad
Parents: fa690a5
Author: Willem Jiang <[email protected]>
Authored: Sun Sep 21 19:38:50 2014 +0800
Committer: Willem Jiang <[email protected]>
Committed: Sun Sep 21 20:48:41 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/57e2fa49/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