Merge pull request #2 from Trishun/env

Provides comment and some code cleanup
This commit is contained in:
Piotr Dec 2022-10-23 22:04:47 +02:00 committed by GitHub
commit a54bb59857
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 5 deletions

View file

@ -4,14 +4,9 @@ import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.io.PrintStream;
import java.lang.invoke.MethodHandles;
import java.lang.invoke.VarHandle;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Modifier;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;

View file

@ -10,6 +10,7 @@ import eu.ztsh.training.hackerrank.SolutionClassDescription.FieldModifier;
public class ReflectionHelper {
// https://stackoverflow.com/a/56043252
static {
try {
var lookup = MethodHandles.privateLookupIn(Field.class, MethodHandles.lookup());