History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-21480
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Dmitry Jemerov
Reporter: t800t8
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

IDEA does not ignore to add } automatically

Created: 13 Aug 07 04:56   Updated: 13 Nov 07 11:55
Component/s: Editor. Code Completion
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 7,123


 Description  « Hide
Integer[][] m1 = new Integer[][] {{1, 2, 3}, {4, 5, 6}};

Please put the cursor between "6" and "}", then add "}". IDEA will add "}" while it should ignore -->

Integer[][] m1 = new Integer[][] {{1, 2, 3}, {4, 5, 6}}};


 All   Comments   Work Log   Change History      Sort Order:
t800t8 - 13 Nov 07 11:55
Another example
public Member load(int id) {
    return (Member) getJdbcTemplate().queryForObject("SELECT * FROM members WHERE id = ? ",
                                                     new Object[]{ id },
                                                     new RowMapper() {

                                                         public Object mapRow(ResultSet resultSet, int row)
                                                                 throws SQLException {
                                                                 return null;
                                                         }

                                                     });
}

Put the cursor between "id" and "}", then add "}"

public Member load(int id) {
    return (Member) getJdbcTemplate().queryForObject("SELECT * FROM members WHERE id = ? ",
                                                     new Object[]{ id }},
                                                     new RowMapper() {

                                                         public Object mapRow(ResultSet resultSet, int row)
                                                                 throws SQLException {
                                                             return null;
                                                         }

                                                     });
}