Skip to content

Commit b12ab48

Browse files
committed
added the classic should NOT be constructed warning
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/io/trunk@140512 13f79535-47bb-0310-9956-ffa450edef68
1 parent 59c3c76 commit b12ab48

4 files changed

Lines changed: 27 additions & 7 deletions

File tree

src/java/org/apache/commons/io/EndianUtils.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,16 @@
6464
* Origin of code: Apache Avalon (Excalibur)
6565
*
6666
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
67-
* @version CVS $Revision: 1.11 $ $Date: 2004/01/02 07:53:46 $
67+
* @version CVS $Revision: 1.12 $ $Date: 2004/02/21 02:32:50 $
6868
*/
6969
public final class EndianUtils
7070
{
7171

72+
/**
73+
* Instances should NOT be constructed in standard programming.
74+
*/
75+
public EndianUtils() { }
76+
7277
// ========================================== Swapping routines
7378

7479
/**

src/java/org/apache/commons/io/FileUtils.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,15 @@
116116
* @author <a href="mailto:jefft@apache.org">Jeff Turner</a>
117117
* @author Matthew Hawthorne
118118
* @author <a href="mailto:jeremias@apache.org">Jeremias Maerki</a>
119-
* @version $Id: FileUtils.java,v 1.25 2003/12/30 16:27:42 jeremias Exp $
119+
* @version $Id: FileUtils.java,v 1.26 2004/02/21 02:32:50 bayard Exp $
120120
*/
121121
public class FileUtils {
122122

123+
/**
124+
* Instances should NOT be constructed in standard programming.
125+
*/
126+
public FileUtils() { }
127+
123128
/**
124129
* The number of bytes in a kilobyte.
125130
*/

src/java/org/apache/commons/io/FilenameUtils.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,15 @@
7676
* @author <a href="mailto:jefft@apache.org">Jeff Turner</a>
7777
* @author Matthew Hawthorne
7878
* @author <a href="mailto:jeremias@apache.org">Jeremias Maerki</a>
79-
* @version $Id: FilenameUtils.java,v 1.5 2003/12/30 15:23:23 jeremias Exp $
79+
* @version $Id: FilenameUtils.java,v 1.6 2004/02/21 02:32:50 bayard Exp $
8080
*/
8181
public class FilenameUtils {
8282

83+
/**
84+
* Instances should NOT be constructed in standard programming.
85+
*/
86+
public FilenameUtils() { }
87+
8388
/**
8489
* Check if a file exits.
8590
*

src/java/org/apache/commons/io/HexDump.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//io/src/java/org/apache/commons/io/HexDump.java,v 1.5 2003/12/30 06:50:16 bayard Exp $
3-
* $Revision: 1.5 $
4-
* $Date: 2003/12/30 06:50:16 $
2+
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//io/src/java/org/apache/commons/io/HexDump.java,v 1.6 2004/02/21 02:32:50 bayard Exp $
3+
* $Revision: 1.6 $
4+
* $Date: 2004/02/21 02:32:50 $
55
*
66
* ====================================================================
77
*
@@ -70,10 +70,15 @@
7070
*
7171
* @author Scott Sanders (sanders at apache dot org)
7272
* @author Marc Johnson
73-
* @version $Revision: 1.5 $ $Date: 2003/12/30 06:50:16 $
73+
* @version $Revision: 1.6 $ $Date: 2004/02/21 02:32:50 $
7474
*/
7575
public class HexDump {
7676

77+
/**
78+
* Instances should NOT be constructed in standard programming.
79+
*/
80+
public HexDump() { }
81+
7782
/**
7883
* dump an array of bytes to an OutputStream
7984
*

0 commit comments

Comments
 (0)