[jboss-cvs] jboss-seam/src/main/org/jboss/seam/init ...

Gavin King gavin.king at jboss.com
Wed Jan 17 14:05:27 EST 2007


  User: gavin   
  Date: 07/01/17 14:05:27

  Modified:    src/main/org/jboss/seam/init  Initialization.java
  Log:
  consistent coding style
  
  Revision  Changes    Path
  1.136     +8 -7      jboss-seam/src/main/org/jboss/seam/init/Initialization.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Initialization.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/init/Initialization.java,v
  retrieving revision 1.135
  retrieving revision 1.136
  diff -u -b -r1.135 -r1.136
  --- Initialization.java	17 Jan 2007 12:54:27 -0000	1.135
  +++ Initialization.java	17 Jan 2007 19:05:27 -0000	1.136
  @@ -55,7 +55,7 @@
   /**
    * @author Gavin King
    * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
  - * @version $Revision: 1.135 $
  + * @version $Revision: 1.136 $
    */
   public class Initialization
   {
  @@ -280,10 +280,12 @@
   
            if (name == null)
            {
  -            if (!clazz.isAnnotationPresent(Name.class))
  -               throw new IllegalArgumentException(String.format(
  -                        "Component class %s must have @Name annotation or name must be specified in components.xml",
  -                        clazz.getName()));
  +            if ( !clazz.isAnnotationPresent(Name.class) )
  +            {
  +               throw new IllegalArgumentException(
  +                        "Component class must have @Name annotation or name must be specified in components.xml: " +
  +                        clazz.getName());
  +            }
               
               name = clazz.getAnnotation(Name.class).value();
            }
  @@ -294,8 +296,7 @@
         }
         else if (name == null)
         {
  -         throw new IllegalArgumentException(
  -                  "must specify either class or name in <component/> declaration");
  +         throw new IllegalArgumentException("must specify either class or name in <component/> declaration");
         }
   
         for (Element prop : (List<Element>) component.elements())
  
  
  



More information about the jboss-cvs-commits mailing list