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.

Bug 209248 - toString() Insert Code enhancement
Summary: toString() Insert Code enhancement
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Other
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-06 19:54 UTC by choces
Modified: 2012-03-07 07:55 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description choces 2012-03-06 19:54:07 UTC
This is a test class, with the toString() code generated thru Insert Code:

public class Test {

    private float[] array;

    @Override
    public String toString() {
        return "Test{" + "array=" + array + '}';
    }
}

I wonder if this code would be a better one for arrays:

  @Override
    public String toString() {
        return "Test{" + "array=" + Arrays.toString(array) + '}';
    }