diff options
Diffstat (limited to 'libjava/classpath/vm/reference/sun')
3 files changed, 17 insertions, 17 deletions
diff --git a/libjava/classpath/vm/reference/sun/misc/Unsafe.java b/libjava/classpath/vm/reference/sun/misc/Unsafe.java index 5dee8cfefd7..e316bdb8da1 100644 --- a/libjava/classpath/vm/reference/sun/misc/Unsafe.java +++ b/libjava/classpath/vm/reference/sun/misc/Unsafe.java @@ -76,7 +76,7 @@ public class Unsafe sm.checkPropertiesAccess(); return unsafe; } - + /** * Returns the memory address offset of the given static field. * The offset is merely used as a means to access a particular field @@ -272,7 +272,7 @@ public class Unsafe /** * Returns the offset of the first element for a given array class. * To access elements of the array class, this value may be used along - * with that returned by + * with that returned by * <a href="#arrayIndexScale"><code>arrayIndexScale</code></a>, * if non-zero. * @@ -287,7 +287,7 @@ public class Unsafe * Returns the scale factor used for addressing elements of the supplied * array class. Where a suitable scale factor can not be returned (e.g. * for primitive types), zero should be returned. The returned value - * can be used with + * can be used with * <a href="#arrayBaseOffset"><code>arrayBaseOffset</code></a> * to access elements of the class. * @@ -295,9 +295,9 @@ public class Unsafe * @return the scale factor, or zero if not supported for this array class. */ public native int arrayIndexScale(Class arrayClass); - + /** - * Releases the block on a thread created by + * Releases the block on a thread created by * <a href="#park"><code>park</code></a>. This method can also be used * to terminate a blockage caused by a prior call to <code>park</code>. * This operation is unsafe, as the thread must be guaranteed to be @@ -308,7 +308,7 @@ public class Unsafe public native void unpark(Object thread); /** - * Blocks the thread until a matching + * Blocks the thread until a matching * <a href="#unpark"><code>unpark</code></a> occurs, the thread is * interrupted or the optional timeout expires. If an <code>unpark</code> * call has already occurred, this also counts. A timeout value of zero diff --git a/libjava/classpath/vm/reference/sun/reflect/Reflection.java b/libjava/classpath/vm/reference/sun/reflect/Reflection.java index ef25ce71f1c..ddbb69d16a8 100644 --- a/libjava/classpath/vm/reference/sun/reflect/Reflection.java +++ b/libjava/classpath/vm/reference/sun/reflect/Reflection.java @@ -42,7 +42,7 @@ import gnu.classpath.VMStackWalker; public class Reflection { /** - * A stack-walking wrapper method used by the JSR 166 RI. + * A stack-walking wrapper method used by the JSR 166 RI. */ public static Class getCallerClass(int depth) { diff --git a/libjava/classpath/vm/reference/sun/reflect/misc/ReflectUtil.java b/libjava/classpath/vm/reference/sun/reflect/misc/ReflectUtil.java index 88a6f2515bf..aca365d6b9e 100644 --- a/libjava/classpath/vm/reference/sun/reflect/misc/ReflectUtil.java +++ b/libjava/classpath/vm/reference/sun/reflect/misc/ReflectUtil.java @@ -53,7 +53,7 @@ public class ReflectUtil /** * Check if the current thread is allowed to access the package of - * the declaringClass. + * the declaringClass. * * @param declaringClass class name to check access to * @throws SecurityException if permission is denied @@ -64,15 +64,15 @@ public class ReflectUtil SecurityManager sm; if ((sm = System.getSecurityManager()) != null) { - while (declaringClass.isArray()) - declaringClass = declaringClass.getComponentType(); - String name = declaringClass.getName(); - int i = name.lastIndexOf('.'); - if (i != -1) // if declaringClass is a member of a package - { - name = name.substring(0, i); - sm.checkPackageAccess(name); - } + while (declaringClass.isArray()) + declaringClass = declaringClass.getComponentType(); + String name = declaringClass.getName(); + int i = name.lastIndexOf('.'); + if (i != -1) // if declaringClass is a member of a package + { + name = name.substring(0, i); + sm.checkPackageAccess(name); + } } } |