beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lc...@apache.org
Subject [1/4] incubator-beam git commit: Removes extra blank space
Date Thu, 07 Jul 2016 13:46:30 GMT
Repository: incubator-beam
Updated Branches:
  refs/heads/master 1cb898f58 -> 66d726aa2


Removes extra blank space


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

Branch: refs/heads/master
Commit: 7e97cbcc8a6ec47bcfad17054e581a45dc248ac2
Parents: 9df033c
Author: Lucas Amorim <lucasamorim@Lucass-MBP.hitronhub.home>
Authored: Wed Jul 6 23:11:55 2016 -0700
Committer: Luke Cwik <lcwik@visitor-lcwik.wat.corp.google.com>
Committed: Thu Jul 7 09:07:15 2016 -0400

----------------------------------------------------------------------
 .../org/apache/beam/sdk/options/ProxyInvocationHandler.java    | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/7e97cbcc/sdks/java/core/src/main/java/org/apache/beam/sdk/options/ProxyInvocationHandler.java
----------------------------------------------------------------------
diff --git a/sdks/java/core/src/main/java/org/apache/beam/sdk/options/ProxyInvocationHandler.java
b/sdks/java/core/src/main/java/org/apache/beam/sdk/options/ProxyInvocationHandler.java
index cb69979..fe67f16 100644
--- a/sdks/java/core/src/main/java/org/apache/beam/sdk/options/ProxyInvocationHandler.java
+++ b/sdks/java/core/src/main/java/org/apache/beam/sdk/options/ProxyInvocationHandler.java
@@ -91,11 +91,9 @@ import javax.annotation.concurrent.ThreadSafe;
 class ProxyInvocationHandler implements InvocationHandler, HasDisplayData {
   private static final ObjectMapper MAPPER = new ObjectMapper();
   /**
-   * No two instances of this class are considered equivalent hence we generate a random
hash code
-   * between 0 and {@link Integer#MAX_VALUE}.
+   * No two instances of this class are considered equivalent hence we generate a random
hash code.
    */
-  private final int hashCode =  ThreadLocalRandom.current().nextInt(
-          Integer.MIN_VALUE, Integer.MAX_VALUE);
+  private final int hashCode = ThreadLocalRandom.current().nextInt();
   private final Set<Class<? extends PipelineOptions>> knownInterfaces;
   private final ClassToInstanceMap<PipelineOptions> interfaceToProxyCache;
   private final Map<String, BoundValue> options;


Mime
View raw message