aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/util/reflect
diff options
context:
space:
mode:
authorAlkalus <draknyte1@hotmail.com>2017-08-24 15:41:39 +1000
committerAlkalus <draknyte1@hotmail.com>2017-08-24 15:41:39 +1000
commit14728ac0d0c1a118dc638702df78e45b6c9c4277 (patch)
tree0b67096e3dc4bfb5905fa52ede8d246bb8a397ab /src/Java/gtPlusPlus/core/util/reflect
parent2ce6f51eb26de8c3b0ba86b6480438fae44fe9f5 (diff)
downloadGT5-Unofficial-14728ac0d0c1a118dc638702df78e45b6c9c4277.tar.gz
GT5-Unofficial-14728ac0d0c1a118dc638702df78e45b6c9c4277.tar.bz2
GT5-Unofficial-14728ac0d0c1a118dc638702df78e45b6c9c4277.zip
% Swapped FFPP checkRecipe logic to use the Fusion Reactor logic for fluid handling.
$ Cleaned up some code.
Diffstat (limited to 'src/Java/gtPlusPlus/core/util/reflect')
-rw-r--r--src/Java/gtPlusPlus/core/util/reflect/ClientProxyFinder.java2
-rw-r--r--src/Java/gtPlusPlus/core/util/reflect/ReflectionUtils.java4
-rw-r--r--src/Java/gtPlusPlus/core/util/reflect/ServerProxyFinder.java2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/Java/gtPlusPlus/core/util/reflect/ClientProxyFinder.java b/src/Java/gtPlusPlus/core/util/reflect/ClientProxyFinder.java
index c1d0279f72..99a9bf2fa9 100644
--- a/src/Java/gtPlusPlus/core/util/reflect/ClientProxyFinder.java
+++ b/src/Java/gtPlusPlus/core/util/reflect/ClientProxyFinder.java
@@ -12,7 +12,7 @@ public class ClientProxyFinder {
final SidedProxy sidedProxy = field.getAnnotation(SidedProxy.class);
final Object fieldValue = field.get(modInstance);
try {
- final Class clientSideClass = Class.forName(sidedProxy.clientSide());
+ final Class<?> clientSideClass = Class.forName(sidedProxy.clientSide());
if(clientSideClass.isAssignableFrom(fieldValue.getClass())) {
final Object clientProxy = clientSideClass.cast(fieldValue);
//do what you want with client proxy instance
diff --git a/src/Java/gtPlusPlus/core/util/reflect/ReflectionUtils.java b/src/Java/gtPlusPlus/core/util/reflect/ReflectionUtils.java
index c789871b6f..f88f8e32e0 100644
--- a/src/Java/gtPlusPlus/core/util/reflect/ReflectionUtils.java
+++ b/src/Java/gtPlusPlus/core/util/reflect/ReflectionUtils.java
@@ -102,7 +102,7 @@ public class ReflectionUtils {
/**
* Allows to change the state of an immutable instance. Huh?!?
*/
- public static void setFieldValue(Class clazz, String fieldName, Object newValue) throws Exception {
+ public static void setFieldValue(Class<?> clazz, String fieldName, Object newValue) throws Exception {
Field nameField = getField(clazz, fieldName);
setValue(clazz, nameField, newValue);
}
@@ -110,7 +110,7 @@ public class ReflectionUtils {
/**
* Allows to change the state of final statics. Huh?!?
*/
- public static void setDefault(Class clazz, String fieldName, Object newValue) throws Exception {
+ public static void setDefault(Class<?> clazz, String fieldName, Object newValue) throws Exception {
Field staticField = clazz.getDeclaredField(fieldName);
setValue(null, staticField, newValue);
}
diff --git a/src/Java/gtPlusPlus/core/util/reflect/ServerProxyFinder.java b/src/Java/gtPlusPlus/core/util/reflect/ServerProxyFinder.java
index 2fae02a9fd..38382b4a46 100644
--- a/src/Java/gtPlusPlus/core/util/reflect/ServerProxyFinder.java
+++ b/src/Java/gtPlusPlus/core/util/reflect/ServerProxyFinder.java
@@ -12,7 +12,7 @@ public class ServerProxyFinder {
final SidedProxy sidedProxy = field.getAnnotation(SidedProxy.class);
final Object fieldValue = field.get(modInstance);
try {
- final Class serverSideClass = Class.forName(sidedProxy.serverSide());
+ final Class<?> serverSideClass = Class.forName(sidedProxy.serverSide());
if(serverSideClass.isAssignableFrom(fieldValue.getClass())) {
final Object serverProxy = serverSideClass.cast(fieldValue);
//do what you want with server proxy instance