Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-core-dev] Compiler warning contributions

Hello,

I recently submitted the patch https://bugs.eclipse.org/bugs/show_bug.cgi?id=108824 Now I know how things work, I thought of another compiler warning which I want to implement. But first I need some feedback + confirmation that it will be included in eclipse (I don't have my bugzilla password with me, so no feat. req. now)

The problem is: String.replace() is sometimes called without assigning it's value to a new string.

Solution:
Give a warning if a method of a final class (String, Integer, etc) returns something non-void, and is not used for:
*rvalue
*comparison
*method parameter

Let me know if I should begin implementing.


Joris




Back to the top