beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject [09/11] incubator-beam git commit: Use more natural class to find class loader in ReflectHelpers
Date Thu, 24 Nov 2016 00:03:09 GMT
Use more natural class to find class loader in ReflectHelpers


Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/6f86af61
Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/6f86af61
Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/6f86af61

Branch: refs/heads/python-sdk
Commit: 6f86af612f97ad57cf4ba2cae21ba232f7494ada
Parents: dcd401b
Author: Kenneth Knowles <klk@google.com>
Authored: Tue Nov 22 22:16:29 2016 -0800
Committer: Davor Bonaci <davor@google.com>
Committed: Wed Nov 23 16:02:04 2016 -0800

----------------------------------------------------------------------
 .../main/java/org/apache/beam/sdk/util/common/ReflectHelpers.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/6f86af61/sdks/java/core/src/main/java/org/apache/beam/sdk/util/common/ReflectHelpers.java
----------------------------------------------------------------------
diff --git a/sdks/java/core/src/main/java/org/apache/beam/sdk/util/common/ReflectHelpers.java
b/sdks/java/core/src/main/java/org/apache/beam/sdk/util/common/ReflectHelpers.java
index 637e8e3..4ec39c1 100644
--- a/sdks/java/core/src/main/java/org/apache/beam/sdk/util/common/ReflectHelpers.java
+++ b/sdks/java/core/src/main/java/org/apache/beam/sdk/util/common/ReflectHelpers.java
@@ -39,7 +39,6 @@ import java.util.Queue;
 import java.util.ServiceLoader;
 import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
-import org.apache.beam.sdk.util.IOChannelUtils;
 
 /**
  * Utilities for working with with {@link Class Classes} and {@link Method Methods}.
@@ -225,7 +224,7 @@ public class ReflectHelpers {
   public static ClassLoader findClassLoader() {
     ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
     if (classLoader == null) {
-      classLoader = IOChannelUtils.class.getClassLoader();
+      classLoader = ReflectHelpers.class.getClassLoader();
     }
     if (classLoader == null) {
       classLoader = ClassLoader.getSystemClassLoader();


Mime
View raw message