You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by sg...@apache.org on 2005/05/09 14:03:17 UTC

cvs commit: jakarta-turbine-fulcrum/yaafi/src/java/org/apache/fulcrum/yaafi/cli Main.java

sgoeschl    2005/05/09 05:03:17

  Modified:    yaafi/src/java/org/apache/fulcrum/yaafi/cli Main.java
  Log:
  Got rid of PMD warning
  
  Revision  Changes    Path
  1.6       +12 -10    jakarta-turbine-fulcrum/yaafi/src/java/org/apache/fulcrum/yaafi/cli/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-fulcrum/yaafi/src/java/org/apache/fulcrum/yaafi/cli/Main.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Main.java	26 Apr 2005 12:28:58 -0000	1.5
  +++ Main.java	9 May 2005 12:03:17 -0000	1.6
  @@ -53,6 +53,12 @@
       /** parameter for blocking the main thread in Main.run() */
       public static final String APPLICATION_ISBLOCKING = "yaafi.cli.isBlocking";
       
  +	/** the interval to check for termination */
  +	private static final int SLEEP_TIME = 100; 
  +
  +	/** the timeout for joing the shutdown thread */
  +	private static final int JOIN_TIME = 1000; 
  +
       /** The service manager */
       private ServiceContainer container;
       
  @@ -70,10 +76,7 @@
   
   	/** The logger being used */
   	private Logger logger;
  -	
  -	/** the interval to check for termination */
  -	private static int SLEEP_TIME = 100; 
  -    
  +	    
   	/** the name of the application */
   	private String applicationName;
   	
  @@ -212,7 +215,7 @@
        * home directory.
        *  
        * @param baseDir the base directory 
  -     * @param fileName the filename 
  +     * @param name the filename 
        * @return the file
        */
       public static File makeAbsoluteFile( File baseDir, String name )
  @@ -273,14 +276,13 @@
               }
               catch (InterruptedException e)
               {
  -                // ignore
  +                ; // ignore
               }
           }        
       }
       
       /**
  -     * Locates the file for the given file name.
  -     * @param baseDir the base directory 
  +     * Locates the file for the given file name. 
        * @param fileName the filename 
        * @return the absolute path
        */
  @@ -594,13 +596,13 @@
                   try
                   {
                       this.getLogger().debug( "Waiting for shutdown handler thread to terminate" );
  -                    this.shutdownThread.join(1000);
  +                    this.shutdownThread.join(JOIN_TIME);
                       this.shutdownThread = null;
                       this.getLogger().debug( "Shutdown handler thread is terminated" );
                   }
                   catch (InterruptedException e)
                   {
  -                    // nothing to do
  +                    ; // nothing to do
                   }                                
               }
               
  
  
  

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