+2003-10-22 Michael Koch <konqueror@gmx.de>
+
+ * java/io/File.java
+ (equals): Removed redundant obj == null check.
+ (createTempFile): Merged comments from classpath.
+
2003-10-21 Sascha Brawer <brawer@dandelis.ch>
Fix for bug #2944, reported by David Holmes <dholmes@dltech.com.au>
* is taken from the <code>path.separator</code> system property.
*/
public static final char pathSeparatorChar = pathSeparator.charAt(0);
-
+
static final String tmpdir = System.getProperty("java.io.tmpdir");
static int maxPathLen;
static boolean caseSensitive;
*/
public boolean equals (Object obj)
{
- if (obj == null)
- return false;
-
if (! (obj instanceof File))
return false;
+ " is not really a directory.");
}
- // Now process the prefix and suffix.
+ // Check if prefix is at least 3 characters long
if (prefix.length() < 3)
throw new IllegalArgumentException ("Prefix too short: " + prefix);
+ // Set default value of suffix
if (suffix == null)
suffix = ".tmp";