[Inspection Gadgets] Small Bug?

The following code gives me a "Unecessary Unboxing":

public int compare( Contact contact0, Contact contact1 ) {
return new Long( contact0.getId() ).compareTo( contact1.getId() );

But removing the "new Long" does not work.

Johannes Schneider

1 comment
Comment actions Permalink

Definitely a bug. Please submit a JIRA item.

--Dave Griffith


Please sign in to leave a comment.