diff options
author | Tom Tromey <tromey@cygnus.com> | 2000-02-11 18:44:37 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2000-02-11 18:44:37 +0000 |
commit | 9d381124d8598b49c13767f4c32f6460f7057a48 (patch) | |
tree | 657e6b65af7a6dec903e89816dd0831feba5b611 /libjava/java/io | |
parent | c4ce154a39b2eb178333de3418e53fdc7ee98bd2 (diff) | |
download | gcc-9d381124d8598b49c13767f4c32f6460f7057a48.zip gcc-9d381124d8598b49c13767f4c32f6460f7057a48.tar.gz gcc-9d381124d8598b49c13767f4c32f6460f7057a48.tar.bz2 |
* java/io/File.java (nextValue): Now synchronized.
From-SVN: r31925
Diffstat (limited to 'libjava/java/io')
-rw-r--r-- | libjava/java/io/File.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/java/io/File.java b/libjava/java/io/File.java index 229125e..df89909 100644 --- a/libjava/java/io/File.java +++ b/libjava/java/io/File.java @@ -215,7 +215,7 @@ public class File implements Serializable return mkdirs (new File (path)); } - private static String nextValue () + private static synchronized String nextValue () { return Long.toString(counter++, Character.MAX_RADIX); } |