Skip to content

Commit 5f293a7

Browse files
committed
svm: improve javadoc
1 parent c999c94 commit 5f293a7

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/java/LambdaUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ public static String capturingClass(String className) {
181181
}
182182

183183
/**
184-
* Checks if the passed class is lambda class.
184+
* Checks if the passed class is a lambda class.
185185
*
186186
* @param type the type to be checked
187-
* @return true if the clazz is lambda class, false instead
187+
* @return true if type is a lambda class, false instead
188188
*/
189189
public static boolean isLambdaClass(ResolvedJavaType type) {
190190
return isLambdaClassName(type.toClassName());

substratevm/src/com.oracle.svm.graal/src/com/oracle/svm/graal/RuntimeCPUFeatureRegion.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,17 +233,20 @@ private RuntimeCPUFeatureRegion() {
233233
* <p>
234234
* All arguments must be compile-time constant.
235235
*/
236-
public static native RuntimeCPUFeatureRegion enter(@ConstantNodeParameter Enum<?> arg0);
236+
public static native RuntimeCPUFeatureRegion enterSet(@ConstantNodeParameter EnumSet<?> features);
237237

238-
public static native RuntimeCPUFeatureRegion enterSet(@ConstantNodeParameter EnumSet<?> arg0);
238+
/**
239+
* @see #enterSet(EnumSet)
240+
*/
241+
public static native RuntimeCPUFeatureRegion enter(@ConstantNodeParameter Enum<?> arg0);
239242

240243
/**
241-
* @see #enter(Enum)
244+
* @see #enterSet(EnumSet)
242245
*/
243246
public static native <T extends Enum<T>> RuntimeCPUFeatureRegion enter(@ConstantNodeParameter Enum<T> arg0, @ConstantNodeParameter Enum<T> arg1);
244247

245248
/**
246-
* @see #enter(Enum)
249+
* @see #enterSet(EnumSet)
247250
*/
248251
public static native <T extends Enum<T>> RuntimeCPUFeatureRegion enter(@ConstantNodeParameter Enum<T> arg0, @ConstantNodeParameter Enum<T> arg1, @ConstantNodeParameter Enum<T> arg2);
249252

0 commit comments

Comments
 (0)