mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-30 15:22:41 +00:00
8157249: [JVMCI] remove ConstantReflectionProvider.isEmbeddable method
Remove unused API Reviewed-by: kvn
This commit is contained in:
parent
1dd1fb6cca
commit
33c94b986e
@ -96,15 +96,6 @@ public interface ConstantReflectionProvider {
|
||||
*/
|
||||
ResolvedJavaType asJavaType(Constant constant);
|
||||
|
||||
/**
|
||||
* Check if the constant is embeddable in the code.
|
||||
*
|
||||
* @param constant the constant to test
|
||||
*/
|
||||
default boolean isEmbeddable(Constant constant) {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets access to the internals of {@link MethodHandle}.
|
||||
*/
|
||||
|
||||
@ -120,12 +120,6 @@ public class HotSpotConstantReflectionProviderTest {
|
||||
Assert.assertEquals(actual, expected, "Unexpected result:");
|
||||
}
|
||||
|
||||
@Test(dataProvider = "isEmbeddableDataProvider", dataProviderClass = IsEmbeddableDataProvider.class)
|
||||
public void testIsEmbeddable(JavaConstant constant, boolean expected) {
|
||||
boolean actual = CONSTANT_REFLECTION_PROVIDER.isEmbeddable(constant);
|
||||
Assert.assertEquals(actual, expected, "Unexpected result:");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetMemoryAccessProvider() {
|
||||
MemoryAccessProvider actual = CONSTANT_REFLECTION_PROVIDER.getMemoryAccessProvider();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user