This is an automated email from the git hooks/post-receive script. eugene-guest pushed a commit to annotated tag testng-6.9.5 in repository testng.
commit ea69c6b70bf7a9d11f327104051039a498e61e83 Author: Ryan Schmitt <[email protected]> Date: Sat May 30 18:11:04 2015 -0700 RetryAnalyzerCount: Use AtomicInteger properly --- src/main/java/org/testng/util/RetryAnalyzerCount.java | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/testng/util/RetryAnalyzerCount.java b/src/main/java/org/testng/util/RetryAnalyzerCount.java index 267075b..44bee11 100755 --- a/src/main/java/org/testng/util/RetryAnalyzerCount.java +++ b/src/main/java/org/testng/util/RetryAnalyzerCount.java @@ -38,13 +38,10 @@ public abstract class RetryAnalyzerCount implements IRetryAnalyzer { */ @Override public boolean retry(ITestResult result) { - boolean retry = false; - - if (count.intValue() > 0) { - retry = retryMethod(result); - count.decrementAndGet(); + if (count.getAndDecrement() > 0) { + return retryMethod(result); } - return retry; + return false; } /** -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/testng.git _______________________________________________ pkg-java-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

