From 8c049462ff6387d8c3f69f4e42a4c4b36e38a90c Mon Sep 17 00:00:00 2001 From: rfeng Date: Thu, 5 Nov 2009 21:14:49 +0000 Subject: Format the code git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@833174 13f79535-47bb-0310-9956-ffa450edef68 --- .../payment/creditcard/CreditCardPayment.java | 10 ++-------- .../payment/creditcard/impl/CreditCardPaymentImpl.java | 17 ++++++++--------- 2 files changed, 10 insertions(+), 17 deletions(-) (limited to 'sandbox/travelsample/contributions/creditcard-payment-sdo/src/main/java') diff --git a/sandbox/travelsample/contributions/creditcard-payment-sdo/src/main/java/com/tuscanyscatours/payment/creditcard/CreditCardPayment.java b/sandbox/travelsample/contributions/creditcard-payment-sdo/src/main/java/com/tuscanyscatours/payment/creditcard/CreditCardPayment.java index 2eaf9eb028..9f508ecc59 100644 --- a/sandbox/travelsample/contributions/creditcard-payment-sdo/src/main/java/com/tuscanyscatours/payment/creditcard/CreditCardPayment.java +++ b/sandbox/travelsample/contributions/creditcard-payment-sdo/src/main/java/com/tuscanyscatours/payment/creditcard/CreditCardPayment.java @@ -1,4 +1,3 @@ - package com.tuscanyscatours.payment.creditcard; import javax.jws.WebMethod; @@ -8,7 +7,6 @@ import javax.jws.WebService; import javax.xml.ws.RequestWrapper; import javax.xml.ws.ResponseWrapper; - /** * This class was generated by the JAX-WS RI. * JAX-WS RI 2.1.3-b02- @@ -18,7 +16,6 @@ import javax.xml.ws.ResponseWrapper; @WebService(name = "CreditCardPayment", targetNamespace = "http://tuscanyscatours.com/CreditCardPayment/") public interface CreditCardPayment { - /** * * @param amount @@ -30,10 +27,7 @@ public interface CreditCardPayment { @WebResult(name = "Status", targetNamespace = "") @RequestWrapper(localName = "authorize", targetNamespace = "http://tuscanyscatours.com/CreditCardPayment/", className = "com.tuscanyscatours.payment.creditcard.AuthorizeType") @ResponseWrapper(localName = "authorizeResponse", targetNamespace = "http://tuscanyscatours.com/CreditCardPayment/", className = "com.tuscanyscatours.payment.creditcard.AuthorizeResponseType") - public String authorize( - @WebParam(name = "CreditCard", targetNamespace = "") - CreditCardDetailsType creditCard, - @WebParam(name = "Amount", targetNamespace = "") - float amount); + public String authorize(@WebParam(name = "CreditCard", targetNamespace = "") CreditCardDetailsType creditCard, + @WebParam(name = "Amount", targetNamespace = "") float amount); } diff --git a/sandbox/travelsample/contributions/creditcard-payment-sdo/src/main/java/com/tuscanyscatours/payment/creditcard/impl/CreditCardPaymentImpl.java b/sandbox/travelsample/contributions/creditcard-payment-sdo/src/main/java/com/tuscanyscatours/payment/creditcard/impl/CreditCardPaymentImpl.java index 681f9af7e2..ed817a58bb 100644 --- a/sandbox/travelsample/contributions/creditcard-payment-sdo/src/main/java/com/tuscanyscatours/payment/creditcard/impl/CreditCardPaymentImpl.java +++ b/sandbox/travelsample/contributions/creditcard-payment-sdo/src/main/java/com/tuscanyscatours/payment/creditcard/impl/CreditCardPaymentImpl.java @@ -29,19 +29,18 @@ import com.tuscanyscatours.payment.creditcard.CreditCardPayment; */ @Service(CreditCardPayment.class) public class CreditCardPaymentImpl implements CreditCardPayment { - + public String authorize(CreditCardDetailsType creditCard, float amount) { - if (creditCard != null){ - System.out.println("Checking card: name = " + - creditCard.getCardOwner().getName() + - " number = " + - creditCard.getCreditCardNumber() + - " for amount " + - amount); + if (creditCard != null) { + System.out.println("Checking card: name = " + creditCard.getCardOwner().getName() + + " number = " + + creditCard.getCreditCardNumber() + + " for amount " + + amount); } else { System.out.println("Checking card is null"); } - + return "OK"; } } -- cgit v1.2.3