ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/util StringUtils.java
Date Mon, 25 Apr 2005 22:14:05 GMT
stevel      2005/04/25 15:14:05

  Modified:    src/main/org/apache/tools/ant/util StringUtils.java
  Log:
  added a private constructor, to stop this being instantiated/subclassed.
  
  Revision  Changes    Path
  1.12      +6 -0      ant/src/main/org/apache/tools/ant/util/StringUtils.java
  
  Index: StringUtils.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/util/StringUtils.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- StringUtils.java	9 Mar 2004 16:48:52 -0000	1.11
  +++ StringUtils.java	25 Apr 2005 22:14:05 -0000	1.12
  @@ -26,6 +26,12 @@
    */
   public final class StringUtils {
   
  +    /**
  +     * constructor to stop anyone instantiating the class
  +     */
  +    private StringUtils() {
  +    }
  +
       /** the line separator for this OS */
       public static final String LINE_SEP = System.getProperty("line.separator");
   
  
  
  

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


Mime
View raw message