use of org.terasology.reflection.reflect.InaccessibleFieldException in project Terasology by MovingBlocks.
the class FieldAccessBenchmark method setup.
@Override
public void setup() {
i = 0;
comp = new DisplayNameComponent();
try {
accessor = reflectFactory.createFieldAccessor(DisplayNameComponent.class, DisplayNameComponent.class.getField("description"));
} catch (InaccessibleFieldException | NoSuchFieldException e) {
logger.error("Failed to establish field accessor object", e);
}
}
Aggregations