# HG changeset patch # User Tom Rodriguez # Date 1433184597 25200 # Node ID 2081f8f294fee6444872237c9e22fd704dcd1a54 # Parent 57912478d94d7763678e2014d1ec348f17bd9943 Fixed some javadoc diff -r 57912478d94d -r 2081f8f294fe graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/HotSpotConstantReflectionProvider.java --- a/graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/HotSpotConstantReflectionProvider.java Mon Jun 01 18:13:48 2015 +0200 +++ b/graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/HotSpotConstantReflectionProvider.java Mon Jun 01 11:49:57 2015 -0700 @@ -97,7 +97,7 @@ /** * Try to convert {@code offset} into an an index into {@code array}. * - * @return -1 if the offset isn't within the array or the computed index + * @return the computed index or -1 if the offset isn't within the array */ private int indexForOffset(JavaConstant array, long offset) { if (array.getKind() != Kind.Object || array.isNull()) { diff -r 57912478d94d -r 2081f8f294fe graal/com.oracle.jvmci.meta/src/com/oracle/jvmci/meta/ConstantReflectionProvider.java --- a/graal/com.oracle.jvmci.meta/src/com/oracle/jvmci/meta/ConstantReflectionProvider.java Mon Jun 01 18:13:48 2015 +0200 +++ b/graal/com.oracle.jvmci.meta/src/com/oracle/jvmci/meta/ConstantReflectionProvider.java Mon Jun 01 11:49:57 2015 -0700 @@ -64,7 +64,7 @@ /** * Reads a value from the given array at the given offset if it is a stable array. The offset - * will decoded relative to the platform addressing into an index into the array. Returns + * will be decoded relative to the platform addressing into an index into the array. Returns * {@code null} if the constant is not a stable array, if it is a default value, if the offset * is out of bounds, or if the value is not available at this point. */