netbeans-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] bondolo commented on issue #173: [NETBEANS-97] Don't add braces around try/synchronized blocks when reformatting
Date Thu, 01 Jan 1970 00:00:00 GMT
bondolo commented on issue #173: [NETBEANS-97] Don't add braces around try/synchronized blocks
when reformatting
URL: https://github.com/apache/incubator-netbeans/pull/173#issuecomment-338439126
 
 
   I agree that not everyone might want this; in part the patch is to allow people to not
have extra braces inserted by the formatter where the user did not put them. The opposite
side, removing braces is only enabled if the user has adjusted their "Braces Generation" preference
to "Eliminate". Eliminate is an option I suspect few people use. 
   
   This patch is mostly about leaving things the way the user typed them rather than adding
unnecessary/unwanted braces.
   
   If there was to be an option, which doesn't seem necessary, it would be a "Braces Generation"
checkbox "around try & synchronized".

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message