Author: adietish
Date: 2011-07-18 10:56:59 -0400 (Mon, 18 Jul 2011)
New Revision: 33021
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/PollThreadUtils.java
Log:
[JBIDE-9359] renamed parameter to better reflect its purpose (was: pollThread now:
currentPollThread)
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/PollThreadUtils.java
===================================================================
---
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/PollThreadUtils.java 2011-07-18
14:50:05 UTC (rev 33020)
+++
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/util/PollThreadUtils.java 2011-07-18
14:56:59 UTC (rev 33021)
@@ -121,9 +121,9 @@
* @return
* @return the new poll thread
*/
- public static PollThread pollServer(final boolean expectedState, PollThread pollThread,
DelegatingServerBehavior behaviour) {
+ public static PollThread pollServer(final boolean expectedState, PollThread
currentPollThread, DelegatingServerBehavior behaviour) {
IServerStatePoller poller = PollThreadUtils.getPoller(expectedState,
behaviour.getServer());
- return pollServer(expectedState, poller, pollThread, behaviour);
+ return pollServer(expectedState, poller, currentPollThread, behaviour);
}
/**
@@ -136,9 +136,9 @@
* @param behaviour the server behavior to use.
* @return the new poll thread
*/
- public static PollThread pollServer(boolean expectedState, IServerStatePoller poller,
PollThread pollThread,
+ public static PollThread pollServer(boolean expectedState, IServerStatePoller poller,
PollThread currentPollThread,
DelegatingServerBehavior behaviour) {
- stopPolling(pollThread);
+ stopPolling(currentPollThread);
PollThread newPollThread = new PollThread(expectedState, poller, behaviour);
newPollThread.start();
return newPollThread;