Return-Path: X-Original-To: apmail-camel-commits-archive@www.apache.org Delivered-To: apmail-camel-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1E33711AD4 for ; Sun, 21 Sep 2014 12:02:03 +0000 (UTC) Received: (qmail 73701 invoked by uid 500); 21 Sep 2014 12:02:02 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 73631 invoked by uid 500); 21 Sep 2014 12:02:02 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 73614 invoked by uid 99); 21 Sep 2014 12:02:02 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Sep 2014 12:02:02 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 63C5AA1D3B2; Sun, 21 Sep 2014 12:02:02 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: ningjiang@apache.org To: commits@camel.apache.org Date: Sun, 21 Sep 2014 12:02:02 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/5] git commit: CAMEL-7829 Fixed the CS errors of camel-olingo2-api 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 Authored: Sun Sep 21 19:38:50 2014 +0800 Committer: Willem Jiang 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 final List 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 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: