Permalink
Browse files

Made the signatures of both handleBiddingStateEvent() methods match.

  • Loading branch information...
jbrains committed May 2, 2011
1 parent 9d234bb commit ef328d0590986e64de65c5e051d709e3794862b4
Showing with 5 additions and 6 deletions.
  1. +5 −6 system-test/source/ca/jbrains/auction/test/Main.java
@@ -22,15 +22,13 @@ public void processMessage(Chat chat, Message message) {
public static final class BidsForSniperMessageListener extends
FooMessageListener {
private final Main main;
public BidsForSniperMessageListener(Main main) {
this.main = main;
}
// SMELL This nested class makes cyclic dependencies too
// easy
@Override
public void processMessage(Chat chat, Message message) {
final Object event = Messages.parse(message);
@@ -59,10 +57,10 @@ public UpdatesMainWindowMessageListener(Main main) {
@Override
public void processMessage(Chat chat, Message message) {
Object event = Messages.parse(message);
final Object event = Messages.parse(message);
if (event instanceof BiddingState) {
BiddingState biddingState = (BiddingState) event;
handleBiddingStateEvent(biddingState);
handleBiddingStateEvent(chat, biddingState);
} else {
handleAllOtherEvents();
}
@@ -72,7 +70,8 @@ private void handleAllOtherEvents() {
main.signalAuctionClosed();
}
private void handleBiddingStateEvent(BiddingState biddingState) {
private void handleBiddingStateEvent(
@SuppressWarnings("unused") Chat chat, BiddingState biddingState) {
if (!Main.SNIPER_XMPP_ID.equals(biddingState.getBidderName())) {
main.signalSniperIsBidding();
}

0 comments on commit ef328d0

Please sign in to comment.