This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
the folowing code: boolean containsPeriod = new StringBuilder("some text").indexOf(".") >= 0; will make nb show this hint: String.indexOf can be replaced with String.contains Which is correct - but the code do not contain String.indexOf - it contains StringBuilder.indexOf
missing constraints on the method's declaring class; thanks for catching this. fixed in jet-main#536ab10a4efa
Integrated into 'main-silver', will be available in build *201402140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/536ab10a4efa User: Svata Dedic <sdedic@netbeans.org> Log: #241657: index > contains only suggested for String objects