FileDescriptor.java (FileDescriptor(String, int)): Throw FileNotFoundException instead of IOException.
1999-06-10 Warren Levy <warrenl@cygnus.com> * java/io/FileDescriptor.java (FileDescriptor(String, int)): Throw FileNotFoundException instead of IOException. (open): ditto. * java/io/FileInputStream.java (FileInputStream): Doesn't throw IOException. * java/text/Collator.java (CANONICAL_DECOMPOSITION): Fixed typo in static field name. From-SVN: r27473
This commit is contained in:
parent
9a726fc16f
commit
a21f23fc67
4 changed files with 17 additions and 7 deletions
|
@ -27,7 +27,7 @@ import java.util.ResourceBundle;
|
|||
public abstract class Collator implements Cloneable, Serializable
|
||||
{
|
||||
public static final int NO_DECOMPOSITION = 0;
|
||||
public static final int CANONCIAL_DECOMPOSITION = 1;
|
||||
public static final int CANONICAL_DECOMPOSITION = 1;
|
||||
public static final int FULL_DECOMPOSITION = 2;
|
||||
|
||||
public static final int PRIMARY = 0;
|
||||
|
@ -38,7 +38,7 @@ public abstract class Collator implements Cloneable, Serializable
|
|||
protected Collator ()
|
||||
{
|
||||
strength = TERTIARY;
|
||||
decmp = CANONCIAL_DECOMPOSITION;
|
||||
decmp = CANONICAL_DECOMPOSITION;
|
||||
}
|
||||
|
||||
public abstract int compare (String source, String target);
|
||||
|
@ -107,7 +107,7 @@ public abstract class Collator implements Cloneable, Serializable
|
|||
public synchronized void setDecomposition (int mode)
|
||||
{
|
||||
if (mode != NO_DECOMPOSITION
|
||||
&& mode != CANONCIAL_DECOMPOSITION
|
||||
&& mode != CANONICAL_DECOMPOSITION
|
||||
&& mode != FULL_DECOMPOSITION)
|
||||
throw new IllegalArgumentException ();
|
||||
decmp = mode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue