mirror of
https://github.com/OMGeeky/ATCS.git
synced 2025-12-27 14:58:55 +01:00
is activated in the workspace settings. This required the addition of a new lib (in source form) for a SipHash implementation.
14 lines
325 B
Java
14 lines
325 B
Java
package com.zackehh.siphash;
|
|
|
|
import java.lang.reflect.Field;
|
|
|
|
public class SipHashTestUtils {
|
|
|
|
static <T> T getPrivateField(Object obj, String name, Class<T> clazz) throws Exception {
|
|
Field f = obj.getClass().getDeclaredField(name);
|
|
f.setAccessible(true);
|
|
return clazz.cast(f.get(obj));
|
|
}
|
|
|
|
}
|