public interface INeutronRequest<T extends INeutronObject<T>> {
default T getSingleton() {
// return this.sinleton
- Class cls = getClass();
+ Class<?> cls = getClass();
try {
Field field = cls.getDeclaredField("singleton");
@SuppressWarnings("unchecked")
default boolean isSingleton() {
// return this.sinleton != null
- Class cls = getClass();
+ Class<?> cls = getClass();
try {
Field field = cls.getDeclaredField("singleton");
return field.get(this) != null;
default List<T> getBulk() {
// return this.bulkRequest
- Class cls = getClass();
+ Class<?> cls = getClass();
try {
Field field = cls.getDeclaredField("bulkRequest");
@SuppressWarnings("unchecked")