summaryrefslogtreecommitdiffstats
path: root/libjava/java/lang
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/lang')
-rw-r--r--libjava/java/lang/Class.h2
-rw-r--r--libjava/java/lang/Package.java2
-rw-r--r--libjava/java/lang/natClassLoader.cc2
-rw-r--r--libjava/java/lang/natObject.cc2
4 files changed, 4 insertions, 4 deletions
diff --git a/libjava/java/lang/Class.h b/libjava/java/lang/Class.h
index 24ca5b1f2b4..f84f363df5e 100644
--- a/libjava/java/lang/Class.h
+++ b/libjava/java/lang/Class.h
@@ -305,7 +305,7 @@ private:
friend jshort _Jv_FindIIndex (jclass *, jshort *, jshort);
// Return array class corresponding to element type KLASS, creating it if
- // neccessary.
+ // necessary.
inline friend jclass
_Jv_GetArrayClass (jclass klass, java::lang::ClassLoader *loader)
{
diff --git a/libjava/java/lang/Package.java b/libjava/java/lang/Package.java
index 189d26e611b..e7ca66876fa 100644
--- a/libjava/java/lang/Package.java
+++ b/libjava/java/lang/Package.java
@@ -39,7 +39,7 @@ import java.util.StringTokenizer;
* <a href="http://java.sun.com/products/jdk/1.3/docs/guide/versioning/spec/VersioningSpecification.html">Product Versioning Specification</a>.
* It also allows packages to be sealed with respect to the originating URL.
* <p>
- * The most usefull method is the <code>isCompatibleWith()</code> method that
+ * The most useful method is the <code>isCompatibleWith()</code> method that
* compares a desired version of a specification with the version of the
* specification as implemented by a package. A package is considered
* compatible with another version if the version of the specification is
diff --git a/libjava/java/lang/natClassLoader.cc b/libjava/java/lang/natClassLoader.cc
index 7d366078dc2..d94055e1cf0 100644
--- a/libjava/java/lang/natClassLoader.cc
+++ b/libjava/java/lang/natClassLoader.cc
@@ -657,7 +657,7 @@ _Jv_NewArrayClass (jclass element, java::lang::ClassLoader *loader,
array_class->interface_count = sizeof interfaces / sizeof interfaces[0];
// Since all array classes have the same interface dispatch table, we can
- // cache one and reuse it. It is not neccessary to synchronize this.
+ // cache one and reuse it. It is not necessary to synchronize this.
if (!array_idt)
{
_Jv_PrepareConstantTimeTables (array_class);
diff --git a/libjava/java/lang/natObject.cc b/libjava/java/lang/natObject.cc
index 17d8dbc8cfb..816268c4f37 100644
--- a/libjava/java/lang/natObject.cc
+++ b/libjava/java/lang/natObject.cc
@@ -746,7 +746,7 @@ heavy_lock_obj_finalization_proc (void *obj, void *cd)
// heavy lock. Unlink it and, if necessary, register a finalizer
// to destroy sync_info.
unlink_heavy(addr, he);
- hl -> address = 0; // Dont destroy it again.
+ hl -> address = 0; // Don't destroy it again.
release_set(&(he -> address), he_address);
# if defined (_Jv_HaveCondDestroy) || defined (_Jv_HaveMutexDestroy)
// Make sure lock is not held and then destroy condvar and mutex.
OpenPOWER on IntegriCloud