Heres a bueat

2003-03-28
2012-10-07
  • Scott Oster

    Scott Oster - 2003-03-28

    if (obj1.equals(obj2) == true)
         return true;
    else
         return false;

    That little baby is breaking 3 rules at once!
    Isn't this a little better:
    return obj1.equals(obj2);

    Thanks PMD :)

     
    • Tom Copeland

      Tom Copeland - 2003-03-28

      Throw a couple of unused locals in there and it'll be all set!

      tom

       

Log in to post a comment.