Permalink
Browse files

Bug: Use equals() to compare, not ==

Buglinky had started spamming the bug tracker massively again, because
it wasn't correctly identifying its own events.  Yeah, this was just a
dumb Java comparison bug on my part.
  • Loading branch information...
1 parent 6a5c51c commit 9b3a75a2784aa258f59f4ad6df5f1bb9b64bc78c @emk committed Aug 29, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/buglinky/BugLinkyServlet.java
View
2 src/buglinky/BugLinkyServlet.java
@@ -46,7 +46,7 @@ private void addInstructionsToWave(RobotMessageBundle bundle) {
/** Dispatch events to the appropriate handler method. */
private void dispatchEvents(RobotMessageBundle bundle) {
for (Event e: bundle.getEvents()) {
- if (e.getModifiedBy() != ME) {
+ if (!e.getModifiedBy().equals(ME)) {
switch (e.getType()) {
// One or the other of these should be wired up in
// capabilities.xml. If we use BLIP_SUBMITTED, we'll apply

0 comments on commit 9b3a75a

Please sign in to comment.