You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by pt...@apache.org on 2009/02/03 21:30:02 UTC

svn commit: r740421 - in /jakarta/cactus/trunk/samples/ejb3/src: main/java/org/apache/cactus/sample/ejb3/ConverterBean.java main/java/org/apache/cactus/sample/ejb3/IConvertLocal.java test/java/org/apache/cactus/sample/ejb3/TestConverterEJB.java

Author: ptahchiev
Date: Tue Feb  3 20:30:02 2009
New Revision: 740421

URL: http://svn.apache.org/viewvc?rev=740421&view=rev
Log:
Checkstyle improved.

Modified:
    jakarta/cactus/trunk/samples/ejb3/src/main/java/org/apache/cactus/sample/ejb3/ConverterBean.java
    jakarta/cactus/trunk/samples/ejb3/src/main/java/org/apache/cactus/sample/ejb3/IConvertLocal.java
    jakarta/cactus/trunk/samples/ejb3/src/test/java/org/apache/cactus/sample/ejb3/TestConverterEJB.java

Modified: jakarta/cactus/trunk/samples/ejb3/src/main/java/org/apache/cactus/sample/ejb3/ConverterBean.java
URL: http://svn.apache.org/viewvc/jakarta/cactus/trunk/samples/ejb3/src/main/java/org/apache/cactus/sample/ejb3/ConverterBean.java?rev=740421&r1=740420&r2=740421&view=diff
==============================================================================
--- jakarta/cactus/trunk/samples/ejb3/src/main/java/org/apache/cactus/sample/ejb3/ConverterBean.java (original)
+++ jakarta/cactus/trunk/samples/ejb3/src/main/java/org/apache/cactus/sample/ejb3/ConverterBean.java Tue Feb  3 20:30:02 2009
@@ -30,7 +30,8 @@
  * @version $Id: ConverterBean.java 238816 2008-06-31 16:36:46Z ptahchiev $
  */
 @Stateless
-public class ConverterBean implements IConvertLocal {
+public class ConverterBean implements IConvertLocal 
+{
 
     /* (non-Javadoc)
      * @see org.apache.cactus.sample.ejb3.IConvertLocal#convert(double)

Modified: jakarta/cactus/trunk/samples/ejb3/src/main/java/org/apache/cactus/sample/ejb3/IConvertLocal.java
URL: http://svn.apache.org/viewvc/jakarta/cactus/trunk/samples/ejb3/src/main/java/org/apache/cactus/sample/ejb3/IConvertLocal.java?rev=740421&r1=740420&r2=740421&view=diff
==============================================================================
--- jakarta/cactus/trunk/samples/ejb3/src/main/java/org/apache/cactus/sample/ejb3/IConvertLocal.java (original)
+++ jakarta/cactus/trunk/samples/ejb3/src/main/java/org/apache/cactus/sample/ejb3/IConvertLocal.java Tue Feb  3 20:30:02 2009
@@ -25,7 +25,7 @@
 import javax.ejb.Local;
 
 /**
- * Sample EJB local interface
+ * Sample EJB local interface.
  *
  * @version $Id: IConverterLocal.java 238816 2008-06-31 16:36:46Z ptahchiev $
  */
@@ -35,9 +35,8 @@
     /**
      * A method declaration to convert yen to dollars.
      * 
-     * @param theYenAmount
-     * @return
+     * @param theYenAmount to convert
+     * @return the converted ammount
      */
     public double convert(double theYenAmount);
-
 }

Modified: jakarta/cactus/trunk/samples/ejb3/src/test/java/org/apache/cactus/sample/ejb3/TestConverterEJB.java
URL: http://svn.apache.org/viewvc/jakarta/cactus/trunk/samples/ejb3/src/test/java/org/apache/cactus/sample/ejb3/TestConverterEJB.java?rev=740421&r1=740420&r2=740421&view=diff
==============================================================================
--- jakarta/cactus/trunk/samples/ejb3/src/test/java/org/apache/cactus/sample/ejb3/TestConverterEJB.java (original)
+++ jakarta/cactus/trunk/samples/ejb3/src/test/java/org/apache/cactus/sample/ejb3/TestConverterEJB.java Tue Feb  3 20:30:02 2009
@@ -24,8 +24,6 @@
 
 import javax.naming.InitialContext;
 
-import junit.framework.TestCase;
-
 import org.apache.cactus.ServletTestCase;
 
 /**
@@ -36,7 +34,7 @@
 public class TestConverterEJB extends ServletTestCase
 {
     /**
-     * Class under test
+     * Class under test.
      */
     //private Converter converter;
     private IConvertLocal converter;
@@ -55,7 +53,8 @@
         InitialContext ctx = new InitialContext(properties);
         
         
-        converter = (IConvertLocal) ctx.lookup("cactus.samples.ejb3-cactified/"+ConverterBean.class.getSimpleName()+"/local");
+        converter = (IConvertLocal) ctx.lookup("cactus.samples.ejb3-cactified/"
+                + ConverterBean.class.getSimpleName() + "/local");
         
         //ConverterHome home = (ConverterHome) PortableRemoteObject.narrow(
         //    ctx.lookup("Converter"), ConverterHome.class);



---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org