You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by do...@apache.org on 2001/02/26 08:35:58 UTC

cvs commit: jakarta-avalon/src/java/org/apache/avalon Parameters.java

donaldp     01/02/25 23:35:58

  Modified:    src/java/org/apache/avalon Parameters.java
  Log:
  Reformatted
  
  Revision  Changes    Path
  1.2       +12 -7     jakarta-avalon/src/java/org/apache/avalon/Parameters.java
  
  Index: Parameters.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon/src/java/org/apache/avalon/Parameters.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Parameters.java	2001/02/24 04:01:45	1.1
  +++ Parameters.java	2001/02/26 07:35:58	1.2
  @@ -275,17 +275,22 @@
   
           while( parameters.hasNext() )
           {
  -            try {
  -                final Configuration child =(Configuration) parameters.next();
  -                final String name = child.getAttribute("name");
  -                final String value = child.getAttribute("value");
  +            try
  +            {
  +                final Configuration child = (Configuration)parameters.next();
  +                final String name = child.getAttribute( "name" );
  +                final String value = child.getAttribute( "value" );
                   param.setParameter( name, value );
  -            } catch (ClassCastException cce) {
  +            } 
  +            catch( final ClassCastException cce )
  +            {
                   // ignore this.  Temporary work around until the Iterator
                   // is guaranteed to return Configuration values.  Unfortunately
                   // there are problems with empty strings getting in there.
  -            } catch (Exception e) {
  -                throw new ConfigurationException("Cannot process Configurable", e);
  +            } 
  +            catch( final Exception e )
  +            {
  +                throw new ConfigurationException( "Cannot process Configurable", e );
               }
           }