boxing/unboxing intention

Hi!

In the following example the boxing/unboxing intention suggest to to
remove the "new Long(". But if you do it you break your code as this
will lead to a recursive loop until your stack is filled up.

public void setValue(Object value)
{
anySet.add(value);
}

public void setValue(long value)
{
setValue(new Long(value));
}


If its possible to detect those cases and do not suggest to remove the
manual boxing it would be nice.


---
Mario

1 comment
Comment actions Permalink

This is a known issue, and should be fixed in the next couple of builds.

--Dave Griffith

0

Please sign in to leave a comment.