cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1233500 - in /cxf/trunk: rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/ rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/ systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/
Date Thu, 19 Jan 2012 17:50:06 GMT
Author: dkulp
Date: Thu Jan 19 17:50:06 2012
New Revision: 1233500

URL: http://svn.apache.org/viewvc?rev=1233500&view=rev
Log:
Fix checkstyle issues

Modified:
    cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyDataEngineImpl.java
    cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyDataEngineImplTest.java
    cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/PolicyLoggingInterceptor.java

Modified: cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyDataEngineImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyDataEngineImpl.java?rev=1233500&r1=1233499&r2=1233500&view=diff
==============================================================================
--- cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyDataEngineImpl.java
(original)
+++ cxf/trunk/rt/ws/policy/src/main/java/org/apache/cxf/ws/policy/PolicyDataEngineImpl.java
Thu Jan 19 17:50:06 2012
@@ -58,7 +58,8 @@ public class PolicyDataEngineImpl implem
 
     public <T> T getClientEndpointPolicy(EndpointInfo ei, Conduit c,
                                          PolicyCalculator<T> policyCalculator) {
-        Collection<Assertion> alternative = getPolicyEngine().getClientEndpointPolicy(ei,
c).getChosenAlternative();
+        Collection<Assertion> alternative = getPolicyEngine()
+            .getClientEndpointPolicy(ei, c).getChosenAlternative();
         List<T> filteredPolicies = new ArrayList<T>();
         for (Assertion a : alternative) {
             if (policyCalculator.getDataClassName().equals(a.getName())) {
@@ -78,7 +79,8 @@ public class PolicyDataEngineImpl implem
 
     public <T> T getServerEndpointPolicy(EndpointInfo ei, Destination d, 
                                          PolicyCalculator<T> policyCalculator) {
-        Collection<Assertion> alternative = getPolicyEngine().getServerEndpointPolicy(ei,
d).getChosenAlternative();
+        Collection<Assertion> alternative = getPolicyEngine()
+            .getServerEndpointPolicy(ei, d).getChosenAlternative();
         List<T> filteredPolicies = new ArrayList<T>();
         for (Assertion a : alternative) {
             if (policyCalculator.getDataClassName().equals(a.getName())) {

Modified: cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyDataEngineImplTest.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyDataEngineImplTest.java?rev=1233500&r1=1233499&r2=1233500&view=diff
==============================================================================
--- cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyDataEngineImplTest.java
(original)
+++ cxf/trunk/rt/ws/policy/src/test/java/org/apache/cxf/ws/policy/PolicyDataEngineImplTest.java
Thu Jan 19 17:50:06 2012
@@ -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 org.apache.cxf.ws.policy;
 
 import java.util.ArrayList;
@@ -16,7 +34,7 @@ import org.junit.Assert;
 import org.junit.Test;
 
 public class PolicyDataEngineImplTest extends Assert {
-    private final static QName TEST_POLICY_NAME = new QName("http://test","TestPolicy");
+    private static final QName TEST_POLICY_NAME = new QName("http://test", "TestPolicy");
     
     class TestPolicy {
     }

Modified: cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/PolicyLoggingInterceptor.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/PolicyLoggingInterceptor.java?rev=1233500&r1=1233499&r2=1233500&view=diff
==============================================================================
--- cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/PolicyLoggingInterceptor.java
(original)
+++ cxf/trunk/systests/ws-specs/src/test/java/org/apache/cxf/systest/ws/policy/PolicyLoggingInterceptor.java
Thu Jan 19 17:50:06 2012
@@ -67,7 +67,7 @@ public class PolicyLoggingInterceptor ex
             for (Assertion a : as) {
                 LOG.fine("Assertion: " + a.getClass().getName());
                 HTTPServerPolicy p = (JaxbAssertion.cast(a, HTTPServerPolicy.class)).getData();

-                LOG.fine("server policy: " + new ServerPolicyCalculator().toString(p));
+                LOG.fine("server policy: " + ServerPolicyCalculator.toString(p));
             }
         }
 



Mime
View raw message