geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject [geode] 02/08: GEODE-4845: make FieldSerializationUtils package-private
Date Fri, 16 Mar 2018 22:13:48 GMT
This is an automated email from the ASF dual-hosted git repository.

klund pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git

commit f8bab2a2d451be944baa802814e9f05e0807ed8b
Author: Kirk Lund <klund@apache.org>
AuthorDate: Wed Mar 14 14:46:45 2018 -0700

    GEODE-4845: make FieldSerializationUtils package-private
---
 .../test/junit/rules/serializable/FieldSerializationUtils.java | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/geode-junit/src/main/java/org/apache/geode/test/junit/rules/serializable/FieldSerializationUtils.java
b/geode-junit/src/main/java/org/apache/geode/test/junit/rules/serializable/FieldSerializationUtils.java
index 2244775..d456d01 100755
--- a/geode-junit/src/main/java/org/apache/geode/test/junit/rules/serializable/FieldSerializationUtils.java
+++ b/geode-junit/src/main/java/org/apache/geode/test/junit/rules/serializable/FieldSerializationUtils.java
@@ -19,11 +19,13 @@ import java.lang.reflect.Field;
 /**
  * Provides support for serialization of private fields by reflection.
  */
-public class FieldSerializationUtils {
+class FieldSerializationUtils {
 
-  protected FieldSerializationUtils() {}
+  FieldSerializationUtils() {
+    // nothing
+  }
 
-  public static Object readField(final Class targetClass, final Object targetInstance,
+  static Object readField(final Class targetClass, final Object targetInstance,
       final String fieldName) {
     try {
       Field field = targetClass.getDeclaredField(fieldName);
@@ -34,7 +36,7 @@ public class FieldSerializationUtils {
     }
   }
 
-  public static void writeField(final Class targetClass, final Object targetInstance,
+  static void writeField(final Class targetClass, final Object targetInstance,
       final String fieldName, final Object value) {
     try {
       Field field = targetClass.getDeclaredField(fieldName);

-- 
To stop receiving notification emails like this one, please contact
klund@apache.org.

Mime
View raw message