Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 20240 invoked from network); 18 Apr 2011 06:04:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Apr 2011 06:04:52 -0000 Received: (qmail 89208 invoked by uid 500); 18 Apr 2011 06:04:51 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 89137 invoked by uid 500); 18 Apr 2011 06:04:49 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 88542 invoked by uid 99); 18 Apr 2011 06:04:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Apr 2011 06:04:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Apr 2011 06:04:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B5E52A6535 for ; Mon, 18 Apr 2011 06:04:05 +0000 (UTC) Date: Mon, 18 Apr 2011 06:04:05 +0000 (UTC) From: "Tracy Snell (JIRA)" To: dev@camel.apache.org Message-ID: <2127498734.63797.1303106645741.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <475720527.905.1299329506179.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CAMEL-3758) use AtomicInteger in AvailablePortFinder MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-3758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020909#comment-13020909 ] Tracy Snell commented on CAMEL-3758: ------------------------------------ This change doesn't break any code. Unless you were completely using it wrong. In that case it fixes your code. It just allows for easier use and parallel unit tests are much less likely to clash. > use AtomicInteger in AvailablePortFinder > ----------------------------------------- > > Key: CAMEL-3758 > URL: https://issues.apache.org/jira/browse/CAMEL-3758 > Project: Camel > Issue Type: Improvement > Components: camel-test > Reporter: Tracy Snell > Assignee: Tracy Snell > Priority: Minor > Fix For: 2.8.0 > > > Use a static AutomicInteger in AvailablePortFinder to increment the default port available. Will remove the burden from the user of the class and will help if we move to a multi threaded test environment. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira