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.
Consider the following code: StringBuilder report = new StringBuilder().append("Headline\n"); Formatter reportf = new Formatter(report, Locale.US); The editor proposes to change the type of "report" from StringBuilder to String, which is not possible since Formatter requires a StringBuilder as first argument. Is it possible to check whether the variable (here "report") is used in contexts requiring StringBuilder, before offering the hint?
*** This bug has been marked as a duplicate of bug 239082 ***