commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject cvs commit: jakarta-commons/io/src/java/org/apache/commons/io EndianUtils.java FileUtils.java FilenameUtils.java HexDump.java
Date Sat, 21 Feb 2004 02:32:50 GMT
bayard      2004/02/20 18:32:50

  Modified:    io/src/java/org/apache/commons/io EndianUtils.java
                        FileUtils.java FilenameUtils.java HexDump.java
  Log:
  added the classic should NOT be constructed warning
  
  Revision  Changes    Path
  1.12      +6 -1      jakarta-commons/io/src/java/org/apache/commons/io/EndianUtils.java
  
  Index: EndianUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/io/src/java/org/apache/commons/io/EndianUtils.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- EndianUtils.java	2 Jan 2004 07:53:46 -0000	1.11
  +++ EndianUtils.java	21 Feb 2004 02:32:50 -0000	1.12
  @@ -69,6 +69,11 @@
   public final class EndianUtils
   {
   
  +    /**
  +     * Instances should NOT be constructed in standard programming.
  +     */
  +    public EndianUtils() { }
  +
       // ========================================== Swapping routines
   
       /**
  
  
  
  1.26      +6 -1      jakarta-commons/io/src/java/org/apache/commons/io/FileUtils.java
  
  Index: FileUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/io/src/java/org/apache/commons/io/FileUtils.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- FileUtils.java	30 Dec 2003 16:27:42 -0000	1.25
  +++ FileUtils.java	21 Feb 2004 02:32:50 -0000	1.26
  @@ -121,6 +121,11 @@
   public class FileUtils {
   
       /**
  +     * Instances should NOT be constructed in standard programming.
  +     */
  +    public FileUtils() { }
  +
  +    /**
        * The number of bytes in a kilobyte.
        */
       public static final long ONE_KB = 1024;
  
  
  
  1.6       +6 -1      jakarta-commons/io/src/java/org/apache/commons/io/FilenameUtils.java
  
  Index: FilenameUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/io/src/java/org/apache/commons/io/FilenameUtils.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- FilenameUtils.java	30 Dec 2003 15:23:23 -0000	1.5
  +++ FilenameUtils.java	21 Feb 2004 02:32:50 -0000	1.6
  @@ -81,6 +81,11 @@
   public class FilenameUtils {
   
       /**
  +     * Instances should NOT be constructed in standard programming.
  +     */
  +    public FilenameUtils() { }
  +
  +    /**
        * Check if a file exits.
        *
        * @param fileName The name of the file to check.
  
  
  
  1.6       +9 -4      jakarta-commons/io/src/java/org/apache/commons/io/HexDump.java
  
  Index: HexDump.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/io/src/java/org/apache/commons/io/HexDump.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- HexDump.java	30 Dec 2003 06:50:16 -0000	1.5
  +++ HexDump.java	21 Feb 2004 02:32:50 -0000	1.6
  @@ -75,6 +75,11 @@
   public class HexDump {
   
       /**
  +     * Instances should NOT be constructed in standard programming.
  +     */
  +    public HexDump() { }
  +
  +    /**
        * dump an array of bytes to an OutputStream
        *
        * @param data the byte array to be dumped
  
  
  

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


Mime
View raw message