Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 80CD6200B41 for ; Thu, 7 Jul 2016 15:46:35 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7F52B160A75; Thu, 7 Jul 2016 13:46:35 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C8737160A4F for ; Thu, 7 Jul 2016 15:46:34 +0200 (CEST) Received: (qmail 84243 invoked by uid 500); 7 Jul 2016 13:46:34 -0000 Mailing-List: contact commits-help@beam.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.incubator.apache.org Delivered-To: mailing list commits@beam.incubator.apache.org Received: (qmail 84233 invoked by uid 99); 7 Jul 2016 13:46:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2016 13:46:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 7BAF5180EE8 for ; Thu, 7 Jul 2016 13:46:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id NJwlvUL8xKoV for ; Thu, 7 Jul 2016 13:46:32 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id B9D085FE66 for ; Thu, 7 Jul 2016 13:46:31 +0000 (UTC) Received: (qmail 84195 invoked by uid 99); 7 Jul 2016 13:46:30 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2016 13:46:30 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CB0E5E03CE; Thu, 7 Jul 2016 13:46:30 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: lcwik@apache.org To: commits@beam.incubator.apache.org Date: Thu, 07 Jul 2016 13:46:30 -0000 Message-Id: <9fe86a5b2e554371aed47c094639766b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/4] incubator-beam git commit: Removes extra blank space archived-at: Thu, 07 Jul 2016 13:46:35 -0000 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 Authored: Wed Jul 6 23:11:55 2016 -0700 Committer: Luke Cwik 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> knownInterfaces; private final ClassToInstanceMap interfaceToProxyCache; private final Map options;