cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject cxf git commit: Fix checkstyle issues in samples
Date Tue, 28 Jul 2015 15:34:53 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 52c003020 -> 2a2ed6757


Fix checkstyle issues in samples


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/2a2ed675
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/2a2ed675
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/2a2ed675

Branch: refs/heads/master
Commit: 2a2ed67576b525f9708fcb8bd9e8387a277a1f4f
Parents: 52c0030
Author: Daniel Kulp <dkulp@apache.org>
Authored: Tue Jul 28 11:34:39 2015 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Tue Jul 28 11:34:39 2015 -0400

----------------------------------------------------------------------
 .../java/demo/jaxrs/server/BigQueryServer.java    |  8 ++++++--
 .../java/demo/jaxrs/server/BigQueryService.java   |  4 ++--
 .../java/demo/jaxrs/server/ShakespeareText.java   | 18 ++++++++++++++++++
 .../rs/service/SampleRestWSApplication.java       |  1 -
 4 files changed, 26 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/2a2ed675/distribution/src/main/release/samples/jax_rs/big_query/src/main/java/demo/jaxrs/server/BigQueryServer.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/big_query/src/main/java/demo/jaxrs/server/BigQueryServer.java
b/distribution/src/main/release/samples/jax_rs/big_query/src/main/java/demo/jaxrs/server/BigQueryServer.java
index bfc8ee8..f82fa7a 100644
--- a/distribution/src/main/release/samples/jax_rs/big_query/src/main/java/demo/jaxrs/server/BigQueryServer.java
+++ b/distribution/src/main/release/samples/jax_rs/big_query/src/main/java/demo/jaxrs/server/BigQueryServer.java
@@ -43,7 +43,10 @@ import org.apache.cxf.rs.security.oauth2.provider.OAuthJSONProvider;
 import org.apache.cxf.rs.security.oauth2.utils.OAuthUtils;
 
 
-public class BigQueryServer {
+public final class BigQueryServer {
+    private BigQueryServer() {
+    }
+    
     public static void main(String[] args) throws Exception {
         final String pc12File = args[0];
         final String keySecret = args[1];
@@ -86,7 +89,8 @@ public class BigQueryServer {
         JwtBearerGrant grant = new JwtBearerGrant(base64UrlAssertion);
         
         WebClient accessTokenService = WebClient.create("https://www.googleapis.com/oauth2/v3/token",
-                                                        Arrays.asList(new OAuthJSONProvider(),
new AccessTokenGrantWriter()));
+                                                        Arrays.asList(new OAuthJSONProvider(),
+                                                                      new AccessTokenGrantWriter()));
         accessTokenService.type(MediaType.APPLICATION_FORM_URLENCODED).accept(MediaType.APPLICATION_JSON);
         
         return accessTokenService.post(grant, ClientAccessToken.class);

http://git-wip-us.apache.org/repos/asf/cxf/blob/2a2ed675/distribution/src/main/release/samples/jax_rs/big_query/src/main/java/demo/jaxrs/server/BigQueryService.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/big_query/src/main/java/demo/jaxrs/server/BigQueryService.java
b/distribution/src/main/release/samples/jax_rs/big_query/src/main/java/demo/jaxrs/server/BigQueryService.java
index 99441ba..3eac41f 100644
--- a/distribution/src/main/release/samples/jax_rs/big_query/src/main/java/demo/jaxrs/server/BigQueryService.java
+++ b/distribution/src/main/release/samples/jax_rs/big_query/src/main/java/demo/jaxrs/server/BigQueryService.java
@@ -40,8 +40,8 @@ public class BigQueryService {
 
     private static final String BQ_SELECT = 
         "SELECT corpus,corpus_date FROM publicdata:samples.shakespeare WHERE word=\\\"%s\\\"";
-    private static final String BQ_REQUEST = "{" +
-        "\"kind\": \"bigquery#queryRequest\"," 
+    private static final String BQ_REQUEST = "{"
+        + "\"kind\": \"bigquery#queryRequest\"," 
         + "\"query\": \"%s\","
         + "\"maxResults\": %d" 
         + "}";

http://git-wip-us.apache.org/repos/asf/cxf/blob/2a2ed675/distribution/src/main/release/samples/jax_rs/big_query/src/main/java/demo/jaxrs/server/ShakespeareText.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/big_query/src/main/java/demo/jaxrs/server/ShakespeareText.java
b/distribution/src/main/release/samples/jax_rs/big_query/src/main/java/demo/jaxrs/server/ShakespeareText.java
index a3ef3de..95baa17 100644
--- a/distribution/src/main/release/samples/jax_rs/big_query/src/main/java/demo/jaxrs/server/ShakespeareText.java
+++ b/distribution/src/main/release/samples/jax_rs/big_query/src/main/java/demo/jaxrs/server/ShakespeareText.java
@@ -1,3 +1,21 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 package demo.jaxrs.server;
 
 public class ShakespeareText {

http://git-wip-us.apache.org/repos/asf/cxf/blob/2a2ed675/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot/src/main/java/sample/rs/service/SampleRestWSApplication.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot/src/main/java/sample/rs/service/SampleRestWSApplication.java
b/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot/src/main/java/sample/rs/service/SampleRestWSApplication.java
index 056cf56..7b44d62 100644
--- a/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot/src/main/java/sample/rs/service/SampleRestWSApplication.java
+++ b/distribution/src/main/release/samples/jax_rs/jaxrs_spring_boot/src/main/java/sample/rs/service/SampleRestWSApplication.java
@@ -30,7 +30,6 @@ import org.springframework.boot.context.embedded.ServletRegistrationBean;
 import org.springframework.boot.context.web.SpringBootServletInitializer;
 import org.springframework.context.ApplicationContext;
 import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
 import org.springframework.context.annotation.Import;
 
 @EnableAutoConfiguration


Mime
View raw message