avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dona...@apache.org
Subject cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/embeddor DefaultEmbeddor.java
Date Mon, 20 May 2002 11:46:39 GMT
donaldp     02/05/20 04:46:39

  Modified:    src/java/org/apache/avalon/phoenix/components/embeddor
                        DefaultEmbeddor.java
  Log:
  Fix checkstyle violations
  
  Revision  Changes    Path
  1.66      +14 -6     jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/embeddor/DefaultEmbeddor.java
  
  Index: DefaultEmbeddor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/components/embeddor/DefaultEmbeddor.java,v
  retrieving revision 1.65
  retrieving revision 1.66
  diff -u -r1.65 -r1.66
  --- DefaultEmbeddor.java	18 May 2002 09:16:12 -0000	1.65
  +++ DefaultEmbeddor.java	20 May 2002 11:46:39 -0000	1.66
  @@ -47,7 +47,8 @@
    */
   public class DefaultEmbeddor
       extends AbstractLogEnabled
  -    implements Embeddor, EmbeddorMBean, Contextualizable, Parameterizable, Configurable,
Initializable, Disposable
  +    implements Embeddor, EmbeddorMBean, Contextualizable,
  +    Parameterizable, Configurable, Initializable, Disposable
   {
       private static final Resources REZ =
           ResourceManager.getPackageResources( DefaultEmbeddor.class );
  @@ -240,7 +241,8 @@
                       // The server will shut itself down when all applications are disposed.
                       if( emptyKernel() )
                       {
  -                        final String message = REZ.getString( "embeddor.shutdown.all-apps-disposed"
);
  +                        final String message =
  +                            REZ.getString( "embeddor.shutdown.all-apps-disposed" );
                           getLogger().info( message );
                       }
                       break;
  @@ -473,7 +475,7 @@
       {
           final String filename = file.getName();
           int index = filename.lastIndexOf( '.' );
  -        if( -1 == index ) index = filename.length();
  +        if( -1 == index ) {index = filename.length();}
           final String name = filename.substring( 0, index );
           final File canonicalFile = file.getCanonicalFile();
           deployFile( name, canonicalFile );
  @@ -535,7 +537,7 @@
           for( int i = 0; i < m_entrys.length; i++ )
           {
               final Object object = m_entrys[ i ].getObject();
  -            if( null == object ) continue;
  +            if( null == object ) {continue;}
               ContainerUtil.shutdown( object );
           }
       }
  @@ -557,7 +559,10 @@
               final Object object = Class.forName( classname ).newInstance();
               if( !service.isInstance( object ) )
               {
  -                final String message = REZ.getString( "bad-type.error", classname, service.getName()
);
  +                final String message =
  +                    REZ.getString( "bad-type.error",
  +                                   classname,
  +                                   service.getName() );
                   throw new Exception( message );
               }
               return object;
  @@ -569,7 +574,10 @@
           }
           catch( final InstantiationException ie )
           {
  -            final String message = REZ.getString( "no-instantiate.error", service.getName(),
classname );
  +            final String message =
  +                REZ.getString( "no-instantiate.error",
  +                               service.getName(),
  +                               classname );
               throw new CascadingException( message, ie );
           }
           catch( final ClassNotFoundException cnfe )
  
  
  

--
To unsubscribe, e-mail:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message