Skip to content

Commit 3f8b3e5

Browse files
author
Doug Simon
committed
8337887: [JVMCI] Clarify jdk.vm.ci.code.Architecture.getName javadoc
Reviewed-by: never
1 parent 53db937 commit 3f8b3e5

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/aarch64/AArch64.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535

3636
/**
3737
* Represents the AArch64 architecture.
38+
*
39+
* The value returned by {@code Architecture#getName} for an instance of this class is {@code "aarch64"}.
3840
*/
3941
public class AArch64 extends Architecture {
4042

src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/amd64/AMD64.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040

4141
/**
4242
* Represents the AMD64 architecture.
43+
*
44+
* The value returned by {@code Architecture#getName} for an instance of this class is {@code "AMD64"}.
4345
*/
4446
public class AMD64 extends Architecture {
4547

src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/code/Architecture.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected Architecture(String name, PlatformKind wordKind, ByteOrder byteOrder,
107107
/**
108108
* Converts this architecture to a string.
109109
*
110-
* @return the string representation of this architecture
110+
* @return a lowercase version of {@linkplain #getName name}
111111
*/
112112
@Override
113113
public final String toString() {
@@ -126,9 +126,14 @@ public PlatformKind getWordKind() {
126126
return wordKind;
127127
}
128128

129-
/**
130-
* Gets the name of this architecture.
131-
*/
129+
/// Gets the name of this architecture. The value returned for
130+
/// each architecture is shown in the table below.
131+
///
132+
/// | Name | Receiver type |
133+
/// |-----------|-----------------------------|
134+
/// | "aarch64" | [jdk.vm.ci.aarch64.AArch64] |
135+
/// | "AMD64" | [jdk.vm.ci.amd64.AMD64] |
136+
/// | "riscv64" | [jdk.vm.ci.riscv64.RISCV64] |
132137
public String getName() {
133138
return name;
134139
}

src/jdk.internal.vm.ci/share/classes/jdk/vm/ci/riscv64/RISCV64.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535

3636
/**
3737
* Represents the RISCV64 architecture.
38+
*
39+
* The value returned by {@code Architecture#getName} for an instance of this class is {@code "riscv64"}.
3840
*/
3941
public class RISCV64 extends Architecture {
4042

0 commit comments

Comments
 (0)