Skip to content

Commit adde8dc

Browse files
committed
Fix @TargetClass naming convention violations in com.oracle.svm.truffle.nfi.posix
1 parent f66d164 commit adde8dc

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

substratevm/src/com.oracle.svm.truffle.nfi.posix/src/com/oracle/svm/truffle/nfi/posix/PosixTruffleNFIFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private static PointerBase dlmopen(Lmid_t lmid, String filename, int mode) {
110110
@Platforms(Platform.LINUX.class)
111111
private static PointerBase loadLibraryInNamespace(long nativeContext, String name, int mode) {
112112
assert (mode & isolatedNamespaceFlag) == 0;
113-
Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContextLinux context = SubstrateUtil.cast(getContext(nativeContext), Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContextLinux.class);
113+
var context = SubstrateUtil.cast(getContext(nativeContext), Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContext_Linux.class);
114114

115115
// Double-checked locking on the NFI context instance.
116116
long namespaceId = context.isolatedNamespaceId;
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@
3434

3535
@Platforms(Platform.LINUX.class)
3636
@TargetClass(className = "com.oracle.truffle.nfi.backend.libffi.LibFFIContext", onlyWith = TruffleNFIFeature.IsEnabled.class)
37-
final class Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContextLinux {
37+
final class Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContext_Linux {
3838

3939
// Checkstyle: stop
4040
@Alias volatile long isolatedNamespaceId;
4141

4242
@Alias @InjectAccessors(IsolatedAccessor.class) int ISOLATED_NAMESPACE;
4343

4444
static class IsolatedAccessor {
45-
static int getISOLATED_NAMESPACE(@SuppressWarnings("unused") Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContextLinux ctx) {
45+
static int getISOLATED_NAMESPACE(@SuppressWarnings("unused") Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContext_Linux ctx) {
4646
return PosixTruffleNFISupport.isolatedNamespaceFlag;
4747
}
4848
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,24 @@
3535

3636
@TargetClass(className = "com.oracle.truffle.nfi.backend.libffi.LibFFIContext", onlyWith = TruffleNFIFeature.IsEnabled.class)
3737
@Platforms({Platform.LINUX.class, Platform.DARWIN.class})
38-
final class Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContextPosix {
38+
final class Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContext_Posix {
3939

4040
// Checkstyle: stop
4141
static class RTLDAccessor {
4242

43-
static int getRTLD_GLOBAL(@SuppressWarnings("unused") Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContextPosix ctx) {
43+
static int getRTLD_GLOBAL(@SuppressWarnings("unused") Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContext_Posix ctx) {
4444
return Dlfcn.RTLD_GLOBAL();
4545
}
4646

47-
static int getRTLD_LOCAL(@SuppressWarnings("unused") Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContextPosix ctx) {
47+
static int getRTLD_LOCAL(@SuppressWarnings("unused") Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContext_Posix ctx) {
4848
return Dlfcn.RTLD_LOCAL();
4949
}
5050

51-
static int getRTLD_LAZY(@SuppressWarnings("unused") Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContextPosix ctx) {
51+
static int getRTLD_LAZY(@SuppressWarnings("unused") Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContext_Posix ctx) {
5252
return Dlfcn.RTLD_LAZY();
5353
}
5454

55-
static int getRTLD_NOW(@SuppressWarnings("unused") Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContextPosix ctx) {
55+
static int getRTLD_NOW(@SuppressWarnings("unused") Target_com_oracle_truffle_nfi_backend_libffi_LibFFIContext_Posix ctx) {
5656
return Dlfcn.RTLD_NOW();
5757
}
5858
}

0 commit comments

Comments
 (0)