Return-Path: X-Original-To: apmail-maven-commits-archive@www.apache.org Delivered-To: apmail-maven-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5881318A8B for ; Thu, 23 Jul 2015 21:29:07 +0000 (UTC) Received: (qmail 3137 invoked by uid 500); 23 Jul 2015 21:29:06 -0000 Delivered-To: apmail-maven-commits-archive@maven.apache.org Received: (qmail 2903 invoked by uid 500); 23 Jul 2015 21:29:05 -0000 Mailing-List: contact commits-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list commits@maven.apache.org Received: (qmail 2213 invoked by uid 99); 23 Jul 2015 21:29:05 -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, 23 Jul 2015 21:29:05 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 5138AE684A; Thu, 23 Jul 2015 21:29:05 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: tibordigana@apache.org To: commits@maven.apache.org Date: Thu, 23 Jul 2015 21:29:14 -0000 Message-Id: <5dcbe19a639a4c47a341119917c1bf88@git.apache.org> In-Reply-To: <6d048a05c1d443ba88ba436d8fd4d97f@git.apache.org> References: <6d048a05c1d443ba88ba436d8fd4d97f@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [10/19] maven-surefire git commit: [SUREFIRE] refactoring proper happens-before relationship: read buffer happens before close [SUREFIRE] refactoring proper happens-before relationship: read buffer happens before close Project: http://git-wip-us.apache.org/repos/asf/maven-surefire/repo Commit: http://git-wip-us.apache.org/repos/asf/maven-surefire/commit/a83675e7 Tree: http://git-wip-us.apache.org/repos/asf/maven-surefire/tree/a83675e7 Diff: http://git-wip-us.apache.org/repos/asf/maven-surefire/diff/a83675e7 Branch: refs/heads/master Commit: a83675e7785958871abb74487a24357149c79a33 Parents: 4bd7231 Author: Tibor17 Authored: Mon Jul 13 23:31:36 2015 +0200 Committer: Tibor17 Committed: Thu Jul 23 23:28:09 2015 +0200 ---------------------------------------------------------------------- .../booterclient/lazytestprovider/TestProvidingInputStream.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/maven-surefire/blob/a83675e7/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java ---------------------------------------------------------------------- diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java index eb1ab03..fd7d162 100644 --- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java +++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/booterclient/lazytestprovider/TestProvidingInputStream.java @@ -113,8 +113,8 @@ public class TestProvidingInputStream String currentElement = testItemQueue.poll(); if ( currentElement != null ) { - currentBuffer = encodeStringForForkCommunication( currentElement ); - buffer = currentBuffer; + buffer = encodeStringForForkCommunication( currentElement ); + currentBuffer = buffer; currentPos = 0; } else