8153782: [JVMCI] update JVMCI sources to Eclipse 4.5.2 format style

Reviewed-by: twisti, never
This commit is contained in:
Doug Simon 2016-05-11 16:40:04 +00:00
parent 1917be9572
commit 1d60ce77a0
29 changed files with 592 additions and 616 deletions

View File

@ -25,8 +25,8 @@ package jdk.vm.ci.code;
/** /**
* Constants and intrinsic definition for memory barriers. * Constants and intrinsic definition for memory barriers.
* *
* The documentation for each constant is taken from Doug Lea's <a * The documentation for each constant is taken from Doug Lea's
* href="http://gee.cs.oswego.edu/dl/jmm/cookbook.html">The JSR-133 Cookbook for Compiler * <a href="http://gee.cs.oswego.edu/dl/jmm/cookbook.html">The JSR-133 Cookbook for Compiler
* Writers</a>. * Writers</a>.
* <p> * <p>
* The {@code JMM_*} constants capture the memory barriers necessary to implement the Java Memory * The {@code JMM_*} constants capture the memory barriers necessary to implement the Java Memory

View File

@ -56,8 +56,8 @@ public class TargetDescription {
public final JavaKind wordJavaKind; public final JavaKind wordJavaKind;
/** /**
* The stack alignment requirement of the platform. For example, from Appendix D of <a * The stack alignment requirement of the platform. For example, from Appendix D of
* href="http://www.intel.com/Assets/PDF/manual/248966.pdf">Intel 64 and IA-32 Architectures * <a href="http://www.intel.com/Assets/PDF/manual/248966.pdf">Intel 64 and IA-32 Architectures
* Optimization Reference Manual</a>: * Optimization Reference Manual</a>:
* *
* <pre> * <pre>

View File

@ -21,10 +21,10 @@
* questions. * questions.
*/ */
/** /**
* Package that defines the interface between a Java application that wants to install code and the runtime. * Package that defines the interface between a Java application that wants to install code and the
* The runtime provides in implementation of the {@link jdk.vm.ci.code.CodeCacheProvider} interface. * runtime. The runtime provides in implementation of the {@link jdk.vm.ci.code.CodeCacheProvider}
* The method {@link jdk.vm.ci.code.CodeCacheProvider#addCode(jdk.vm.ci.meta.ResolvedJavaMethod, CompiledCode, jdk.vm.ci.meta.SpeculationLog, InstalledCode)} * interface. The method
* {@link jdk.vm.ci.code.CodeCacheProvider#addCode(jdk.vm.ci.meta.ResolvedJavaMethod, CompiledCode, jdk.vm.ci.meta.SpeculationLog, InstalledCode)}
* can be used to install code. * can be used to install code.
*/ */
package jdk.vm.ci.code; package jdk.vm.ci.code;

View File

@ -122,7 +122,8 @@ public class AArch64HotSpotJVMCIBackendFactory implements HotSpotJVMCIBackendFac
} }
} }
protected JVMCIBackend createBackend(HotSpotMetaAccessProvider metaAccess, HotSpotCodeCacheProvider codeCache, ConstantReflectionProvider constantReflection, StackIntrospection stackIntrospection) { protected JVMCIBackend createBackend(HotSpotMetaAccessProvider metaAccess, HotSpotCodeCacheProvider codeCache, ConstantReflectionProvider constantReflection,
StackIntrospection stackIntrospection) {
return new JVMCIBackend(metaAccess, codeCache, constantReflection, stackIntrospection); return new JVMCIBackend(metaAccess, codeCache, constantReflection, stackIntrospection);
} }
} }

View File

@ -206,7 +206,8 @@ public class AMD64HotSpotJVMCIBackendFactory implements HotSpotJVMCIBackendFacto
} }
} }
protected JVMCIBackend createBackend(HotSpotMetaAccessProvider metaAccess, HotSpotCodeCacheProvider codeCache, ConstantReflectionProvider constantReflection, StackIntrospection stackIntrospection) { protected JVMCIBackend createBackend(HotSpotMetaAccessProvider metaAccess, HotSpotCodeCacheProvider codeCache, ConstantReflectionProvider constantReflection,
StackIntrospection stackIntrospection) {
return new JVMCIBackend(metaAccess, codeCache, constantReflection, stackIntrospection); return new JVMCIBackend(metaAccess, codeCache, constantReflection, stackIntrospection);
} }
} }

View File

@ -246,8 +246,8 @@ final class CompilerToVM {
native void resolveInvokeDynamicInPool(HotSpotConstantPool constantPool, int cpi); native void resolveInvokeDynamicInPool(HotSpotConstantPool constantPool, int cpi);
/** /**
* Ensures that the type referenced by the entry for a <a * Ensures that the type referenced by the entry for a
* href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-2.html#jvms-2.9">signature * <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-2.html#jvms-2.9">signature
* polymorphic</a> method at index {@code cpi} in {@code constantPool} is loaded and * polymorphic</a> method at index {@code cpi} in {@code constantPool} is loaded and
* initialized. * initialized.
* *

View File

@ -152,7 +152,8 @@ public class HotSpotMetaAccessProvider implements MetaAccessProvider, HotSpotPro
int actionValue = convertDeoptAction(action); int actionValue = convertDeoptAction(action);
int reasonValue = convertDeoptReason(reason); int reasonValue = convertDeoptReason(reason);
int debugValue = debugId & intMaskRight(config.deoptimizationDebugIdBits); int debugValue = debugId & intMaskRight(config.deoptimizationDebugIdBits);
JavaConstant c = JavaConstant.forInt(~((debugValue << config.deoptimizationDebugIdShift) | (reasonValue << config.deoptimizationReasonShift) | (actionValue << config.deoptimizationActionShift))); JavaConstant c = JavaConstant.forInt(
~((debugValue << config.deoptimizationDebugIdShift) | (reasonValue << config.deoptimizationReasonShift) | (actionValue << config.deoptimizationActionShift)));
assert c.asInt() < 0; assert c.asInt() < 0;
return c; return c;
} }

View File

@ -32,7 +32,7 @@ import java.util.Formatter;
import jdk.vm.ci.meta.JavaMethod; import jdk.vm.ci.meta.JavaMethod;
import jdk.vm.ci.meta.ResolvedJavaMethod; import jdk.vm.ci.meta.ResolvedJavaMethod;
abstract class HotSpotMethod implements JavaMethod, Formattable /* , JavaMethodContex */{ abstract class HotSpotMethod implements JavaMethod, Formattable /* , JavaMethodContex */ {
public static String applyFormattingFlagsAndWidth(String s, int flags, int width) { public static String applyFormattingFlagsAndWidth(String s, int flags, int width) {
if (flags == 0 && width < 0) { if (flags == 0 && width < 0) {

View File

@ -27,8 +27,8 @@ package jdk.vm.ci.inittimer;
*/ */
public @interface SuppressFBWarnings { public @interface SuppressFBWarnings {
/** /**
* The set of FindBugs <a * The set of FindBugs
* href="http://findbugs.sourceforge.net/bugDescriptions.html">warnings</a> that are to be * <a href="http://findbugs.sourceforge.net/bugDescriptions.html">warnings</a> that are to be
* suppressed in annotated element. The value can be a bug category, kind or pattern. * suppressed in annotated element. The value can be a bug category, kind or pattern.
*/ */
String[] value(); String[] value();

View File

@ -123,10 +123,10 @@ public interface ConstantReflectionProvider {
JavaConstant boxPrimitive(JavaConstant source); JavaConstant boxPrimitive(JavaConstant source);
/** /**
* Converts the given {@link JavaKind#Object object} constant to a * Converts the given {@link JavaKind#Object object} constant to a {@link JavaKind#isPrimitive()
* {@link JavaKind#isPrimitive() primitive} constant, according to the Java unboxing rules. * primitive} constant, according to the Java unboxing rules. Returns {@code null} if the source
* Returns {@code null} if the source is is not an object constant that can be unboxed, or the * is is not an object constant that can be unboxed, or the unboxed value is not available at
* unboxed value is not available at this point. * this point.
*/ */
JavaConstant unboxPrimitive(JavaConstant source); JavaConstant unboxPrimitive(JavaConstant source);

View File

@ -81,8 +81,8 @@ public interface MetaAccessProvider {
long getMemorySize(JavaConstant constant); long getMemorySize(JavaConstant constant);
/** /**
* Parses a <a * Parses a
* href="http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.3.3">method * <a href="http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.3.3">method
* descriptor</a> into a {@link Signature}. The behavior of this method is undefined if the * descriptor</a> into a {@link Signature}. The behavior of this method is undefined if the
* method descriptor is not well formed. * method descriptor is not well formed.
*/ */

View File

@ -94,8 +94,8 @@ public interface ResolvedJavaMethod extends JavaMethod, InvokeTarget, ModifiersP
} }
/** /**
* Checks that the method is a <a * Checks that the method is a
* href="http://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.6">varargs</a> * <a href="http://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.6">varargs</a>
* method. * method.
* *
* @return whether the method is a varargs method * @return whether the method is a varargs method
@ -105,8 +105,8 @@ public interface ResolvedJavaMethod extends JavaMethod, InvokeTarget, ModifiersP
} }
/** /**
* Checks that the method is a <a * Checks that the method is a
* href="http://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.6">bridge</a> * <a href="http://docs.oracle.com/javase/specs/jvms/se8/html/jvms-4.html#jvms-4.6">bridge</a>
* method. * method.
* *
* @return whether the method is a bridge method * @return whether the method is a bridge method
@ -332,8 +332,8 @@ public interface ResolvedJavaMethod extends JavaMethod, InvokeTarget, ModifiersP
SpeculationLog getSpeculationLog(); SpeculationLog getSpeculationLog();
/** /**
* Determines if the method identified by its holder and name is a <a * Determines if the method identified by its holder and name is a
* href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-2.html#jvms-2.9">signature * <a href="https://docs.oracle.com/javase/specs/jvms/se8/html/jvms-2.html#jvms-2.9">signature
* polymorphic</a> method. * polymorphic</a> method.
*/ */
static boolean isSignaturePolymorphic(JavaType holder, String name, MetaAccessProvider metaAccess) { static boolean isSignaturePolymorphic(JavaType holder, String name, MetaAccessProvider metaAccess) {

View File

@ -276,10 +276,10 @@ public interface ResolvedJavaType extends JavaType, ModifiersProvider, Annotated
ResolvedJavaField[] getInstanceFields(boolean includeSuperclasses); ResolvedJavaField[] getInstanceFields(boolean includeSuperclasses);
/** /**
* Returns the static fields of this class, including * Returns the static fields of this class, including {@linkplain ResolvedJavaField#isInternal()
* {@linkplain ResolvedJavaField#isInternal() internal} fields. A zero-length array is returned * internal} fields. A zero-length array is returned for array and primitive types. The order of
* for array and primitive types. The order of fields returned by this method is stable. That * fields returned by this method is stable. That is, for a single JVM execution the same order
* is, for a single JVM execution the same order is returned each time this method is called. * is returned each time this method is called.
*/ */
ResolvedJavaField[] getStaticFields(); ResolvedJavaField[] getStaticFields();

View File

@ -84,8 +84,8 @@ public interface Signature {
} }
/** /**
* Gets the <a * Gets the
* href="http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.3.3">method * <a href="http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.3.3">method
* descriptor</a> corresponding to this signature. For example: * descriptor</a> corresponding to this signature. For example:
* *
* <pre> * <pre>

View File

@ -22,8 +22,8 @@
*/ */
/** /**
* Package that defines the interface between a runtime and a Java application that wants to access meta information. The runtime * Package that defines the interface between a runtime and a Java application that wants to access
* provides an implementation of the {@link jdk.vm.ci.meta.MetaAccessProvider} interface. * meta information. The runtime provides an implementation of the
* {@link jdk.vm.ci.meta.MetaAccessProvider} interface.
*/ */
package jdk.vm.ci.meta; package jdk.vm.ci.meta;

View File

@ -95,15 +95,12 @@ public class HotSpotConstantReflectionProviderTest {
expected == null ? "null" : expected.toString(), "Unexpected result:"); expected == null ? "null" : expected.toString(), "Unexpected result:");
} }
@Test(dataProvider = "readFieldValueNegativeDataProvider", @Test(dataProvider = "readFieldValueNegativeDataProvider", dataProviderClass = ReadFieldValueDataProvider.class, expectedExceptions = {NullPointerException.class})
dataProviderClass = ReadFieldValueDataProvider.class,
expectedExceptions = {NullPointerException.class})
public void testNegativeReadFieldValue(ResolvedJavaField field, JavaConstant receiver) { public void testNegativeReadFieldValue(ResolvedJavaField field, JavaConstant receiver) {
CONSTANT_REFLECTION_PROVIDER.readFieldValue(field, receiver); CONSTANT_REFLECTION_PROVIDER.readFieldValue(field, receiver);
} }
@Test(dataProvider = "readStableFieldValueDataProvider", @Test(dataProvider = "readStableFieldValueDataProvider", dataProviderClass = ReadStableFieldValueDataProvider.class)
dataProviderClass = ReadStableFieldValueDataProvider.class)
public void testReadStableFieldValue(ResolvedJavaField field, JavaConstant receiver, boolean isDefStab, public void testReadStableFieldValue(ResolvedJavaField field, JavaConstant receiver, boolean isDefStab,
JavaConstant expected) { JavaConstant expected) {
Assert.assertEquals( Assert.assertEquals(
@ -112,8 +109,7 @@ public class HotSpotConstantReflectionProviderTest {
"Unexpected result:"); "Unexpected result:");
} }
@Test(dataProvider = "readStableFieldValueArrayDataProvider", @Test(dataProvider = "readStableFieldValueArrayDataProvider", dataProviderClass = ReadStableFieldValueDataProvider.class)
dataProviderClass = ReadStableFieldValueDataProvider.class)
public void testReadStableFieldValueForArray(ResolvedJavaField field, JavaConstant receiver, boolean isDefStab, public void testReadStableFieldValueForArray(ResolvedJavaField field, JavaConstant receiver, boolean isDefStab,
int arrayDim, JavaConstant expected) { int arrayDim, JavaConstant expected) {
JavaConstant result = CONSTANT_REFLECTION_PROVIDER.readStableFieldValue(field, receiver, JavaConstant result = CONSTANT_REFLECTION_PROVIDER.readStableFieldValue(field, receiver,
@ -141,15 +137,12 @@ public class HotSpotConstantReflectionProviderTest {
Assert.assertEquals(result.toString(), expected.toString(), "Unexpected result:"); Assert.assertEquals(result.toString(), expected.toString(), "Unexpected result:");
} }
@Test(dataProvider = "readStableFieldValueNegativeDataProvider", @Test(dataProvider = "readStableFieldValueNegativeDataProvider", dataProviderClass = ReadStableFieldValueDataProvider.class, expectedExceptions = {NullPointerException.class})
dataProviderClass = ReadStableFieldValueDataProvider.class,
expectedExceptions = {NullPointerException.class})
public void testNegativeReadStableFieldValue(ResolvedJavaField field, JavaConstant receiver, boolean isDefStab) { public void testNegativeReadStableFieldValue(ResolvedJavaField field, JavaConstant receiver, boolean isDefStab) {
CONSTANT_REFLECTION_PROVIDER.readStableFieldValue(field, receiver, isDefStab); CONSTANT_REFLECTION_PROVIDER.readStableFieldValue(field, receiver, isDefStab);
} }
@Test(dataProvider = "readConstantFieldValueDataProvider", @Test(dataProvider = "readConstantFieldValueDataProvider", dataProviderClass = ReadConstantFieldValueDataProvider.class)
dataProviderClass = ReadConstantFieldValueDataProvider.class)
public void testReadConstantFieldValue(ResolvedJavaField field, JavaConstant receiver, JavaConstant expected, public void testReadConstantFieldValue(ResolvedJavaField field, JavaConstant receiver, JavaConstant expected,
String testInfo) { String testInfo) {
String msg = String.format("Unexpected result for %s. Field is stable = %s.", testInfo, String msg = String.format("Unexpected result for %s. Field is stable = %s.", testInfo,
@ -158,15 +151,12 @@ public class HotSpotConstantReflectionProviderTest {
expected, msg); expected, msg);
} }
@Test(dataProvider = "readConstantFieldValueNegativeDataProvider", @Test(dataProvider = "readConstantFieldValueNegativeDataProvider", dataProviderClass = ReadConstantFieldValueDataProvider.class, expectedExceptions = {NullPointerException.class})
dataProviderClass = ReadConstantFieldValueDataProvider.class,
expectedExceptions = {NullPointerException.class})
public void testNegativeReadConstantFieldValue(ResolvedJavaField field, JavaConstant receiver) { public void testNegativeReadConstantFieldValue(ResolvedJavaField field, JavaConstant receiver) {
CONSTANT_REFLECTION_PROVIDER.readConstantFieldValue(field, receiver); CONSTANT_REFLECTION_PROVIDER.readConstantFieldValue(field, receiver);
} }
@Test(dataProvider = "readConstantArrayElementDataProvider", @Test(dataProvider = "readConstantArrayElementDataProvider", dataProviderClass = ReadConstantArrayElementDataProvider.class)
dataProviderClass = ReadConstantArrayElementDataProvider.class)
public void testReadConstantArrayElement(JavaConstant array, int index, JavaConstant expected, String testInfo) { public void testReadConstantArrayElement(JavaConstant array, int index, JavaConstant expected, String testInfo) {
JavaConstant actual = CONSTANT_REFLECTION_PROVIDER.readConstantArrayElement(array, index); JavaConstant actual = CONSTANT_REFLECTION_PROVIDER.readConstantArrayElement(array, index);
Assert.assertEquals(actual == null ? "null" : actual.toString(), Assert.assertEquals(actual == null ? "null" : actual.toString(),
@ -174,8 +164,7 @@ public class HotSpotConstantReflectionProviderTest {
String.format("Unexpected result while testing %s:", testInfo)); String.format("Unexpected result while testing %s:", testInfo));
} }
@Test(dataProvider = "readConstantArrayElementForOffsetDataProvider", @Test(dataProvider = "readConstantArrayElementForOffsetDataProvider", dataProviderClass = ReadConstantArrayElementDataProvider.class)
dataProviderClass = ReadConstantArrayElementDataProvider.class)
public void testReadConstantArrayElementForOffset(JavaConstant array, long offset, JavaConstant expected, public void testReadConstantArrayElementForOffset(JavaConstant array, long offset, JavaConstant expected,
String testInfo) { String testInfo) {
JavaConstant actual = CONSTANT_REFLECTION_PROVIDER.readConstantArrayElementForOffset(array, JavaConstant actual = CONSTANT_REFLECTION_PROVIDER.readConstantArrayElementForOffset(array,

View File

@ -48,8 +48,7 @@ import jdk.vm.ci.meta.ResolvedJavaField;
public class ReadConstantArrayElementDataProvider { public class ReadConstantArrayElementDataProvider {
// Non-stable array fields names mapped to their base offsets and index scale // Non-stable array fields names mapped to their base offsets and index scale
private static final List<ArrayFieldParams> NON_STABLE_ARRAY_NAMES private static final List<ArrayFieldParams> NON_STABLE_ARRAY_NAMES = new LinkedList<>();
= new LinkedList<>();
static { static {
NON_STABLE_ARRAY_NAMES.add( NON_STABLE_ARRAY_NAMES.add(
@ -109,8 +108,7 @@ public class ReadConstantArrayElementDataProvider {
} }
// Stable array fields names mapped to their base offsets and index scale // Stable array fields names mapped to their base offsets and index scale
private static final List<ArrayFieldParams> STABLE_ARRAY_NAMES private static final List<ArrayFieldParams> STABLE_ARRAY_NAMES = new LinkedList<>();
= new LinkedList<>();
static { static {
NON_STABLE_ARRAY_NAMES.stream().forEach((entry) -> { NON_STABLE_ARRAY_NAMES.stream().forEach((entry) -> {
@ -145,11 +143,9 @@ public class ReadConstantArrayElementDataProvider {
"array field \"" + fieldName + "\" for index " + i}); "array field \"" + fieldName + "\" for index " + i});
}); });
} }
Stream<Map.Entry<ResolvedJavaField, JavaConstant>> arraysStream1 Stream<Map.Entry<ResolvedJavaField, JavaConstant>> arraysStream1 = Stream.concat(ARRAYS_MAP.entrySet().stream(),
= Stream.concat(ARRAYS_MAP.entrySet().stream(),
ARRAY_ARRAYS_MAP.entrySet().stream()); ARRAY_ARRAYS_MAP.entrySet().stream());
Stream<Map.Entry<ResolvedJavaField, JavaConstant>> arraysStream2 Stream<Map.Entry<ResolvedJavaField, JavaConstant>> arraysStream2 = Stream.concat(STABLE_ARRAYS_MAP.entrySet().stream(),
= Stream.concat(STABLE_ARRAYS_MAP.entrySet().stream(),
STABLE_ARRAY_ARRAYS_MAP.entrySet().stream()); STABLE_ARRAY_ARRAYS_MAP.entrySet().stream());
Stream.concat(arraysStream1, arraysStream2).forEach((array) -> { Stream.concat(arraysStream1, arraysStream2).forEach((array) -> {
for (int i : new int[]{-1, 2}) { for (int i : new int[]{-1, 2}) {

View File

@ -39,7 +39,6 @@ import jdk.vm.ci.hotspot.HotSpotJVMCIRuntime;
import jdk.vm.ci.meta.JavaConstant; import jdk.vm.ci.meta.JavaConstant;
import org.testng.annotations.DataProvider; import org.testng.annotations.DataProvider;
public class ReadConstantFieldValueDataProvider { public class ReadConstantFieldValueDataProvider {
@DataProvider(name = "readConstantFieldValueDataProvider") @DataProvider(name = "readConstantFieldValueDataProvider")

View File

@ -39,7 +39,6 @@ import java.util.LinkedList;
import jdk.vm.ci.meta.JavaConstant; import jdk.vm.ci.meta.JavaConstant;
import org.testng.annotations.DataProvider; import org.testng.annotations.DataProvider;
public class ReadFieldValueDataProvider { public class ReadFieldValueDataProvider {
@DataProvider(name = "readFieldValueDataProvider") @DataProvider(name = "readFieldValueDataProvider")

View File

@ -35,13 +35,10 @@ import jdk.vm.ci.runtime.JVMCI;
public class TestHelper { public class TestHelper {
public static final DummyClass DUMMY_CLASS_INSTANCE = new DummyClass(); public static final DummyClass DUMMY_CLASS_INSTANCE = new DummyClass();
public static final HotSpotConstantReflectionProvider CONSTANT_REFLECTION_PROVIDER public static final HotSpotConstantReflectionProvider CONSTANT_REFLECTION_PROVIDER = (HotSpotConstantReflectionProvider) JVMCI.getRuntime().getHostJVMCIBackend().getConstantReflection();
= (HotSpotConstantReflectionProvider) JVMCI.getRuntime().getHostJVMCIBackend().getConstantReflection(); public static final JavaConstant DUMMY_CLASS_CONSTANT = CONSTANT_REFLECTION_PROVIDER.forObject(DUMMY_CLASS_INSTANCE);
public static final JavaConstant DUMMY_CLASS_CONSTANT
= CONSTANT_REFLECTION_PROVIDER.forObject(DUMMY_CLASS_INSTANCE);
public static final Map<ResolvedJavaField, JavaConstant> INSTANCE_FIELDS_MAP public static final Map<ResolvedJavaField, JavaConstant> INSTANCE_FIELDS_MAP = new HashMap<>();
= new HashMap<>();
static { static {
INSTANCE_FIELDS_MAP.put(getResolvedJavaField(DummyClass.class, "booleanField"), INSTANCE_FIELDS_MAP.put(getResolvedJavaField(DummyClass.class, "booleanField"),
@ -65,8 +62,7 @@ public class TestHelper {
DUMMY_CLASS_INSTANCE.objectField)); DUMMY_CLASS_INSTANCE.objectField));
} }
public static final Map<ResolvedJavaField, JavaConstant> INSTANCE_FINAL_FIELDS_MAP public static final Map<ResolvedJavaField, JavaConstant> INSTANCE_FINAL_FIELDS_MAP = new HashMap<>();
= new HashMap<>();
static { static {
INSTANCE_FINAL_FIELDS_MAP.put(getResolvedJavaField(DummyClass.class, "finalBooleanField"), INSTANCE_FINAL_FIELDS_MAP.put(getResolvedJavaField(DummyClass.class, "finalBooleanField"),
@ -92,8 +88,7 @@ public class TestHelper {
DUMMY_CLASS_INSTANCE.finalObjectField)); DUMMY_CLASS_INSTANCE.finalObjectField));
} }
public static final Map<ResolvedJavaField, JavaConstant> INSTANCE_FINAL_DEFAULT_FIELDS_MAP public static final Map<ResolvedJavaField, JavaConstant> INSTANCE_FINAL_DEFAULT_FIELDS_MAP = new HashMap<>();
= new HashMap<>();
static { static {
INSTANCE_FINAL_DEFAULT_FIELDS_MAP.put(getResolvedJavaField(DummyClass.class, INSTANCE_FINAL_DEFAULT_FIELDS_MAP.put(getResolvedJavaField(DummyClass.class,
@ -134,8 +129,7 @@ public class TestHelper {
DUMMY_CLASS_INSTANCE.finalDefaultObjectField)); DUMMY_CLASS_INSTANCE.finalDefaultObjectField));
} }
public static final Map<ResolvedJavaField, JavaConstant> INSTANCE_STABLE_FIELDS_MAP public static final Map<ResolvedJavaField, JavaConstant> INSTANCE_STABLE_FIELDS_MAP = new HashMap<>();
= new HashMap<>();
static { static {
INSTANCE_STABLE_FIELDS_MAP.put(getResolvedJavaField(DummyClass.class, "stableBooleanField"), INSTANCE_STABLE_FIELDS_MAP.put(getResolvedJavaField(DummyClass.class, "stableBooleanField"),
@ -163,8 +157,7 @@ public class TestHelper {
DUMMY_CLASS_INSTANCE.stableObjectField)); DUMMY_CLASS_INSTANCE.stableObjectField));
} }
public static final Map<ResolvedJavaField, JavaConstant> INSTANCE_STABLE_DEFAULT_FIELDS_MAP public static final Map<ResolvedJavaField, JavaConstant> INSTANCE_STABLE_DEFAULT_FIELDS_MAP = new HashMap<>();
= new HashMap<>();
static { static {
INSTANCE_STABLE_DEFAULT_FIELDS_MAP.put(getResolvedJavaField(DummyClass.class, INSTANCE_STABLE_DEFAULT_FIELDS_MAP.put(getResolvedJavaField(DummyClass.class,
@ -228,8 +221,7 @@ public class TestHelper {
CONSTANT_REFLECTION_PROVIDER.forObject(DummyClass.staticObjectField)); CONSTANT_REFLECTION_PROVIDER.forObject(DummyClass.staticObjectField));
} }
public static final Map<ResolvedJavaField, JavaConstant> STATIC_FINAL_FIELDS_MAP public static final Map<ResolvedJavaField, JavaConstant> STATIC_FINAL_FIELDS_MAP = new HashMap<>();
= new HashMap<>();
static { static {
STATIC_FINAL_FIELDS_MAP.put( STATIC_FINAL_FIELDS_MAP.put(
@ -255,8 +247,7 @@ public class TestHelper {
CONSTANT_REFLECTION_PROVIDER.forObject(DummyClass.staticFinalObjectField)); CONSTANT_REFLECTION_PROVIDER.forObject(DummyClass.staticFinalObjectField));
} }
public static final Map<ResolvedJavaField, JavaConstant> STATIC_STABLE_FIELDS_MAP public static final Map<ResolvedJavaField, JavaConstant> STATIC_STABLE_FIELDS_MAP = new HashMap<>();
= new HashMap<>();
static { static {
STATIC_STABLE_FIELDS_MAP.put( STATIC_STABLE_FIELDS_MAP.put(
@ -287,8 +278,7 @@ public class TestHelper {
CONSTANT_REFLECTION_PROVIDER.forObject(DummyClass.staticStableObjectField)); CONSTANT_REFLECTION_PROVIDER.forObject(DummyClass.staticStableObjectField));
} }
public static final Map<ResolvedJavaField, JavaConstant> STATIC_STABLE_DEFAULT_FIELDS_MAP public static final Map<ResolvedJavaField, JavaConstant> STATIC_STABLE_DEFAULT_FIELDS_MAP = new HashMap<>();
= new HashMap<>();
static { static {
STATIC_STABLE_DEFAULT_FIELDS_MAP.put(getResolvedJavaField(DummyClass.class, STATIC_STABLE_DEFAULT_FIELDS_MAP.put(getResolvedJavaField(DummyClass.class,