dion        2002/07/14 09:09:14

  Modified:    src/java/org/apache/maven/importscrubber/ant
                        ImportScrubberTask.java
  Log:
  Style violations
  
  Revision  Changes    Path
  1.4       +23 -19    
jakarta-turbine-maven/src/java/org/apache/maven/importscrubber/ant/ImportScrubberTask.java
  
  Index: ImportScrubberTask.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/importscrubber/ant/ImportScrubberTask.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ImportScrubberTask.java   24 Feb 2002 12:09:37 -0000      1.3
  +++ ImportScrubberTask.java   14 Jul 2002 16:09:14 -0000      1.4
  @@ -70,65 +70,69 @@
    * <PRE>
    * <importscrubber root="/home/tom/project/src" recurse="true" verbose="true"/>
    * </PRE>
  + * @author Unknown
    */
   public class ImportScrubberTask extends Task
   {
  -    private boolean _verbose;
  -    private boolean _recurse;
  -    private String _rootString;
  -    private String _formatID;
  -    private boolean _sortjavalibshigh;
  +    private boolean verbose;
  +    private boolean recurse;
  +    private String rootString;
  +    private String formatID;
  +    private boolean sortjavalibshigh;
   
       public void setVerbose(boolean verbose)
       {
  -        _verbose = verbose;
  +        this.verbose = verbose;
       }
   
       public void setSortjavalibshigh(boolean sortjavalibshigh)
       {
  -        _sortjavalibshigh = sortjavalibshigh;
  +        this.sortjavalibshigh = sortjavalibshigh;
       }
   
       public void setRecurse(boolean recurse)
       {
  -        _recurse = recurse;
  +        this.recurse = recurse;
       }
   
       public void setRoot(String rootString)
       {
  -        _rootString = rootString;
  +        this.rootString = rootString;
       }
   
       public void setFormat(String format)
       {
  -        _formatID = format;
  +        formatID = format;
       }
   
       public void execute() throws BuildException
       {
  -        if (_rootString == null || _rootString.length() == 0)
  +        if (rootString == null || rootString.length() == 0)
           {
  -            throw new BuildException("You must set a root for the ImportScrubber 
task to work");
  +            throw new BuildException("You must set a root for the "
  +                + "ImportScrubber task to work");
           }
   
  -        if (_formatID == null)
  +        if (formatID == null)
           {
  -            _formatID = StatementFormatFactory.DEFAULT;
  +            formatID = StatementFormatFactory.DEFAULT;
           }
   
  -        File root = new File(_rootString);
  +        File root = new File(rootString);
           if (!root.exists())
           {
  -            throw new BuildException("The root " + _rootString + " does not exist");
  +            throw new BuildException("The root " + rootString
  +                + " does not exist");
           }
   
           try
           {
               ImportScrubber scrubber = new ImportScrubber();
  -            IStatementFormat format = 
StatementFormatFactory.getInstance().createStatementFormat(_formatID);
  -            format.sortJavaLibsHigh(_sortjavalibshigh);
  +            IStatementFormat format = StatementFormatFactory.getInstance().
  +                createStatementFormat(formatID);
  +            format.sortJavaLibsHigh(sortjavalibshigh);
               scrubber.setFormat(format);
  -            scrubber.setFileRoot(_rootString, _recurse);
  +            scrubber.setFileRoot(rootString, recurse);
               log("Building file list");
               scrubber.getFiles();
               log("Processing " + scrubber.getFiles().size() + " files");
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to