[
https://issues.apache.org/jira/browse/NETBEANS-4686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
KoKo updated NETBEANS-4686:
---------------------------
Description:
If we have the code below:
{code:java}
// there is whitespace between parentheses
new HashMap<>( );
{code}
Steps to reproduce:
1. delete the opening parenthesis (
and the code becomes:
{code:java}
new HashMap<> );
{code}
2. type in the opening parenthesis (
Expected result:
{code:java}
new HashMap<>( );
{code}
Actual result:
{code:java}
new HashMap<>() );
{code}
The closing parenthesis is inserted automatically.
was:
If we have the code below:
{code:java}
// there is whitespace between parentheses
new HashMap<>( );
{code}
Steps to reproduce:
# delete the opening parenthesis (
# type in the opening parenthesis (
The code should become:
{code:java}
// there is whitespace between parentheses
new HashMap<>( );
{code}
but was:
{code:java}
// there is whitespace between parentheses
new HashMap<>() );
{code}
The closing parenthesis is inserted automatically.
> Do not automatically insert closing parenthesis if already present when
> typing opening parenthesis
> --------------------------------------------------------------------------------------------------
>
> Key: NETBEANS-4686
> URL: https://issues.apache.org/jira/browse/NETBEANS-4686
> Project: NetBeans
> Issue Type: Improvement
> Components: java - Editor
> Affects Versions: 12.0, 11.3
> Reporter: KoKo
> Priority: Major
>
> If we have the code below:
>
> {code:java}
> // there is whitespace between parentheses
> new HashMap<>( );
> {code}
>
> Steps to reproduce:
> 1. delete the opening parenthesis (
> and the code becomes:
> {code:java}
> new HashMap<> );
> {code}
> 2. type in the opening parenthesis (
>
> Expected result:
> {code:java}
> new HashMap<>( );
> {code}
>
> Actual result:
> {code:java}
> new HashMap<>() );
> {code}
> The closing parenthesis is inserted automatically.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists