From daca25b853b52ea5035f6979a325fe030df38870 Mon Sep 17 00:00:00 2001 From: jsm28 Date: Wed, 31 Oct 2001 00:48:17 +0000 Subject: * HACKING, gnu/gcj/xlib/Pixmap.java, gnu/gcj/xlib/XException.java, gnu/java/rmi/rmic/RMIC.java, java/awt/Window.java, java/awt/AWTEvent.java, java/io/ByteArrayOutputStream.java, java/io/CharConversionException.java, java/io/PipedInputStream.java, java/io/PipedReader.java, java/io/PrintWriter.java, java/io/WriteAbortedException.java, java/io/natFileWin32.cc, java/lang/Class.h, java/lang/natClassLoader.cc, java/lang/natObject.cc, java/lang/Package.java, java/net/BindException.java, java/net/ConnectException.java, java/net/ProtocolException.java, java/net/SocketException.java, java/net/UnknownServiceException.java, java/security/cert/X509Certificate.java, java/security/interfaces/DSAKey.java, java/security/SecureRandom.java, java/security/SignedObject.java, java/sql/DatabaseMetaData.java, java/text/DecimalFormatSymbols.java, java/util/jar/Attributes.java, java/util/jar/JarEntry.java, java/util/jar/JarInputStream.java, java/util/jar/JarOutputStream.java, java/util/Calendar.java, java/util/Collections.java, java/util/GregorianCalendar.java, java/util/HashMap.java, java/util/List.java, java/util/Properties.java, java/util/Timer.java, java/util/Vector.java, java/util/WeakHashMap.java, javax/naming/NamingException.java, testsuite/libjava.lang/Thread_Wait.java, org/xml/sax/helpers/DefaultHandler.java, org/xml/sax/HandlerBase.java, org/xml/sax/SAXParseException.java, ChangeLog, acinclude.m4, aclocal.m4, posix-threads.cc: Fix spelling errors. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46665 138bc75d-0d04-0410-961f-82ee72b054a4 --- libjava/java/util/Calendar.java | 8 ++++---- libjava/java/util/Collections.java | 2 +- libjava/java/util/GregorianCalendar.java | 8 ++++---- libjava/java/util/HashMap.java | 2 +- libjava/java/util/List.java | 2 +- libjava/java/util/Properties.java | 2 +- libjava/java/util/Timer.java | 14 +++++++------- libjava/java/util/Vector.java | 14 +++++++------- libjava/java/util/WeakHashMap.java | 2 +- libjava/java/util/jar/Attributes.java | 2 +- libjava/java/util/jar/JarEntry.java | 2 +- libjava/java/util/jar/JarInputStream.java | 2 +- libjava/java/util/jar/JarOutputStream.java | 2 +- 13 files changed, 31 insertions(+), 31 deletions(-) (limited to 'libjava/java/util') diff --git a/libjava/java/util/Calendar.java b/libjava/java/util/Calendar.java index 81494112533..a807a361623 100644 --- a/libjava/java/util/Calendar.java +++ b/libjava/java/util/Calendar.java @@ -445,7 +445,7 @@ public abstract class Calendar implements Serializable, Cloneable } /** - * Gets the set of locales for which a Calendar is availiable. + * Gets the set of locales for which a Calendar is available. * @exception MissingResourceException if locale data couldn't be found. * @return the set of locales. */ @@ -682,7 +682,7 @@ public abstract class Calendar implements Serializable, Cloneable * Compares the given calendar with this. * @param o the object to that we should compare. * @return true, if the given object is a calendar, that represents - * the same time (but doesn't neccessary have the same fields). + * the same time (but doesn't necessary have the same fields). */ public boolean equals(Object o) { @@ -892,7 +892,7 @@ public abstract class Calendar implements Serializable, Cloneable /** * Gets the actual minimum value that is allowed for the specified field. - * This value is dependant on the values of the other fields. + * This value is dependent on the values of the other fields. * @param field the time field. One of the time field constants. * @return the actual minimum value. * @since jdk1.2 @@ -902,7 +902,7 @@ public abstract class Calendar implements Serializable, Cloneable /** * Gets the actual maximum value that is allowed for the specified field. - * This value is dependant on the values of the other fields. + * This value is dependent on the values of the other fields. * @param field the time field. One of the time field constants. * @return the actual maximum value. * @since jdk1.2 diff --git a/libjava/java/util/Collections.java b/libjava/java/util/Collections.java index 3e2a40e554c..8e77a802476 100644 --- a/libjava/java/util/Collections.java +++ b/libjava/java/util/Collections.java @@ -538,7 +538,7 @@ public class Collections /** Cache a single Random object for use by shuffle(List). This improves * performance as well as ensuring that sequential calls to shuffle() will - * not result in the same shuffle order occuring: the resolution of + * not result in the same shuffle order occurring: the resolution of * System.currentTimeMillis() is not sufficient to guarantee a unique seed. */ private static Random defaultRandom = null; diff --git a/libjava/java/util/GregorianCalendar.java b/libjava/java/util/GregorianCalendar.java index 4c6e23c53df..f2141e0c599 100644 --- a/libjava/java/util/GregorianCalendar.java +++ b/libjava/java/util/GregorianCalendar.java @@ -216,7 +216,7 @@ public class GregorianCalendar extends Calendar * Get the linear time in milliseconds since the epoch. If you * specify a nonpositive year it is interpreted as BC as * following: 0 is 1 BC, -1 is 2 BC and so on. The date is - * interpreted as gregorian if the change occured before that date. + * interpreted as gregorian if the change occurred before that date. * * @param year the year of the date. * @param dayOfYear the day of year of the date; 1 based. @@ -627,7 +627,7 @@ public class GregorianCalendar extends Calendar * Compares the given calender with this. * @param o the object to that we should compare. * @return true, if the given object is a calendar, that represents - * the same time (but doesn't neccessary have the same fields). + * the same time (but doesn't necessary have the same fields). * @XXX Should we check if time zones, locale, cutover etc. are equal? */ public boolean equals(Object o) @@ -973,7 +973,7 @@ public class GregorianCalendar extends Calendar /** * Gets the actual minimum value that is allowed for the specified field. - * This value is dependant on the values of the other fields. Note that + * This value is dependent on the values of the other fields. Note that * this calls complete() if not enough fields are set. This * can have ugly side effects. * @param field the time field. One of the time field constants. @@ -1001,7 +1001,7 @@ public class GregorianCalendar extends Calendar /** * Gets the actual maximum value that is allowed for the specified field. - * This value is dependant on the values of the other fields. Note that + * This value is dependent on the values of the other fields. Note that * this calls complete() if not enough fields are set. This * can have ugly side effects. * @param field the time field. One of the time field constants. diff --git a/libjava/java/util/HashMap.java b/libjava/java/util/HashMap.java index b75718ffa63..3b351058a95 100644 --- a/libjava/java/util/HashMap.java +++ b/libjava/java/util/HashMap.java @@ -505,7 +505,7 @@ public class HashMap extends AbstractMap public boolean remove(Object o) { // Test against the size of the HashMap to determine if anything - // really got removed. This is neccessary because the return value of + // really got removed. This is necessary because the return value of // HashMap.remove() is ambiguous in the null case. int oldsize = size; HashMap.this.remove(o); diff --git a/libjava/java/util/List.java b/libjava/java/util/List.java index 25892d73cdc..f2ee49cd260 100644 --- a/libjava/java/util/List.java +++ b/libjava/java/util/List.java @@ -288,7 +288,7 @@ public interface List extends Collection Object remove(int index); /** - * Remove the first occurence of an object from this list (optional + * Remove the first occurrence of an object from this list (optional * operation). That is, remove the first element e such that * o == null ? e == null : o.equals(e). * diff --git a/libjava/java/util/Properties.java b/libjava/java/util/Properties.java index 457048c1d09..ee39a01b530 100644 --- a/libjava/java/util/Properties.java +++ b/libjava/java/util/Properties.java @@ -125,7 +125,7 @@ public class Properties extends Hashtable * * * @param in the input stream - * @exception IOException if an error occured when reading + * @exception IOException if an error occurred when reading * from the input. */ public void load(InputStream inStream) throws IOException { diff --git a/libjava/java/util/Timer.java b/libjava/java/util/Timer.java index d00c93768cb..32c0bea3b3f 100644 --- a/libjava/java/util/Timer.java +++ b/libjava/java/util/Timer.java @@ -39,8 +39,8 @@ package java.util; * scheduling guarantees more or less that the task will be executed at a * specific time, but if there is ever a delay in execution then the period * between successive executions will be shorter. The first method of - * repeated scheduling is prefered for repeated tasks in response to user - * interaction, the second method of repeated scheduling is prefered for tasks + * repeated scheduling is preferred for repeated tasks in response to user + * interaction, the second method of repeated scheduling is preferred for tasks * that act like alarms. *

* The Timer keeps a binary heap as a task priority queue which means that @@ -65,7 +65,7 @@ public class Timer /** Default size of this queue */ private final int DEFAULT_SIZE = 32; - /** Wheter to return null when there is nothing in the queue */ + /** Whether to return null when there is nothing in the queue */ private boolean nullOnEmpty; /** @@ -375,7 +375,7 @@ public class Timer private boolean canceled; /** - * Creates a new Timer with a non deamon Thread as Scheduler, with normal + * Creates a new Timer with a non daemon Thread as Scheduler, with normal * priority and a default name. */ public Timer() @@ -384,7 +384,7 @@ public class Timer } /** - * Creates a new Timer with a deamon Thread as scheduler if deamon is true, + * Creates a new Timer with a daemon Thread as scheduler if daemon is true, * with normal priority and a default name. */ public Timer(boolean daemon) @@ -393,7 +393,7 @@ public class Timer } /** - * Creates a new Timer with a deamon Thread as scheduler if deamon is true, + * Creates a new Timer with a daemon Thread as scheduler if daemon is true, * with the priority given and a default name. */ private Timer(boolean daemon, int priority) @@ -402,7 +402,7 @@ public class Timer } /** - * Creates a new Timer with a deamon Thread as scheduler if deamon is true, + * Creates a new Timer with a daemon Thread as scheduler if daemon is true, * with the priority and name given.E */ private Timer(boolean daemon, int priority, String name) diff --git a/libjava/java/util/Vector.java b/libjava/java/util/Vector.java index 16785907664..cef84e51e72 100644 --- a/libjava/java/util/Vector.java +++ b/libjava/java/util/Vector.java @@ -32,7 +32,7 @@ import java.io.Serializable; /** * the Vector classes implements growable arrays of Objects. * You can access elements in a Vector with an index, just as you - * can in a built in array, but Vectors can grow and shrink to accomodate + * can in a built in array, but Vectors can grow and shrink to accommodate * more or fewer objects. * * Vectors try to mantain efficiency in growing by having a @@ -244,12 +244,12 @@ public class Vector extends AbstractList /** * Searches the vector starting at index for object elem - * and returns the index of the first occurence of this Object. If + * and returns the index of the first occurrence of this Object. If * the object is not found, -1 is returned * * @param e The Object to search for * @param index Start searching at this index - * @returns The index of the first occurence of elem, or -1 + * @returns The index of the first occurrence of elem, or -1 * if it is not found */ public synchronized int indexOf(Object e, int index) @@ -263,11 +263,11 @@ public class Vector extends AbstractList } /** - * Returns the first occurence of elem in the Vector, or -1 if + * Returns the first occurrence of elem in the Vector, or -1 if * elem is not found. * * @param elem The object to search for - * @returns The index of the first occurence of elem or -1 if + * @returns The index of the first occurrence of elem or -1 if * not found */ public int indexOf(Object elem) @@ -287,7 +287,7 @@ public class Vector extends AbstractList } /** - * Returns the index of the first occurence of elem, when searching + * Returns the index of the first occurrence of elem, when searching * backwards from index. If the object does not occur in this Vector, * -1 is returned. * @@ -465,7 +465,7 @@ public class Vector extends AbstractList } /** - * Removes the first occurence of the given object from the Vector. + * Removes the first occurrence of the given object from the Vector. * If such a remove was performed (the object was found), true is returned. * If there was no such object, false is returned. * diff --git a/libjava/java/util/WeakHashMap.java b/libjava/java/util/WeakHashMap.java index c81ecee1fe0..6f39d468108 100644 --- a/libjava/java/util/WeakHashMap.java +++ b/libjava/java/util/WeakHashMap.java @@ -615,7 +615,7 @@ public class WeakHashMap extends AbstractMap implements Map { WeakBucket prev = buckets[slot]; /* This may throw a NullPointerException. It shouldn't but if - * a race condition occured (two threads removing the same + * a race condition occurred (two threads removing the same * bucket at the same time) it may happen.
* But with race condition many much worse things may happen * anyway. diff --git a/libjava/java/util/jar/Attributes.java b/libjava/java/util/jar/Attributes.java index b18b5d8ca8a..ce1c9abaa2c 100644 --- a/libjava/java/util/jar/Attributes.java +++ b/libjava/java/util/jar/Attributes.java @@ -45,7 +45,7 @@ import java.util.Set; * manipulating the Attributes more or less type safe. *

* Most of the methods are wrappers to implement the Map interface. The really - * usefull and often used methods are getValue(Name) and + * useful and often used methods are getValue(Name) and * getValue(String). If you actually want to set attributes you * may want to use the putValue(String, String) method * (sorry there is no public type safe putValue(Name, String) diff --git a/libjava/java/util/jar/JarEntry.java b/libjava/java/util/jar/JarEntry.java index 7238d5b5164..fa27169d571 100644 --- a/libjava/java/util/jar/JarEntry.java +++ b/libjava/java/util/jar/JarEntry.java @@ -46,7 +46,7 @@ import java.util.zip.ZipEntry; public class JarEntry extends ZipEntry { - // (Packge local) fields + // (Package local) fields Attributes attr; Certificate certs[]; diff --git a/libjava/java/util/jar/JarInputStream.java b/libjava/java/util/jar/JarInputStream.java index c63758e4daf..f077f1be6e9 100644 --- a/libjava/java/util/jar/JarInputStream.java +++ b/libjava/java/util/jar/JarInputStream.java @@ -75,7 +75,7 @@ public class JarInputStream extends ZipInputStream * tries to verify all the entry signatures while reading. * * @param in InputStream to read the jar from - * @param verify wheter or not to verify the manifest entries + * @param verify whether or not to verify the manifest entries * @exception IOException when an error occurs when opening or reading */ public JarInputStream(InputStream in, boolean verify) throws IOException diff --git a/libjava/java/util/jar/JarOutputStream.java b/libjava/java/util/jar/JarOutputStream.java index ca7729df02e..c073819f54a 100644 --- a/libjava/java/util/jar/JarOutputStream.java +++ b/libjava/java/util/jar/JarOutputStream.java @@ -93,7 +93,7 @@ public class JarOutputStream extends ZipOutputStream * This implementation just calls super.putNextEntre(). * * @param entry The information for the next entry - * @exception IOException when some unexpected I/O exception occured + * @exception IOException when some unexpected I/O exception occurred */ public void putNextEntry(ZipEntry entry) throws IOException { -- cgit v1.2.3