Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/HotSpotConstantReflectionProvider.java @ 21643:2081f8f294fe
Fixed some javadoc
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Mon, 01 Jun 2015 11:49:57 -0700 |
parents | 48c1ebd24120 |
children |
comparison
equal
deleted
inserted
replaced
21642:57912478d94d | 21643:2081f8f294fe |
---|---|
95 } | 95 } |
96 | 96 |
97 /** | 97 /** |
98 * Try to convert {@code offset} into an an index into {@code array}. | 98 * Try to convert {@code offset} into an an index into {@code array}. |
99 * | 99 * |
100 * @return -1 if the offset isn't within the array or the computed index | 100 * @return the computed index or -1 if the offset isn't within the array |
101 */ | 101 */ |
102 private int indexForOffset(JavaConstant array, long offset) { | 102 private int indexForOffset(JavaConstant array, long offset) { |
103 if (array.getKind() != Kind.Object || array.isNull()) { | 103 if (array.getKind() != Kind.Object || array.isNull()) { |
104 return -1; | 104 return -1; |
105 } | 105 } |