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 9109 - 'return' abbreviation in java editor should not have a trailing space.
Summary: 'return' abbreviation in java editor should not have a trailing space.
Status: CLOSED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC All
: P4 trivial (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-01-15 21:15 UTC by athompson
Modified: 2007-11-05 13:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description athompson 2001-01-15 21:15:12 UTC
although one can argue that truly correct programming obviates the need for a
'return' statement if you are not returning a value, it is nevertheless
sometimes useful. in addition, some people like to enclose their return
arguments in paranthesis, i.e. 'return(x)'.  in any case it would be more
consistent to omit the trailing space, since 'return' is not a modifier and does
not necessarily have to be followed by anything.
Comment 1 Miloslav Metelka 2001-01-16 10:28:59 UTC
Unfortunatelly we cannot make the abbreviations comfortable for all the users
by default. Originally the abbreviation for 'return ' worked the way that you
request but the users demanded to change it to the current behavior. If you
want 're' to be expanded to 'return' or 'return(' please change the 're'
abbreviation in Tools->Options->Editor Settings->Java Editor->Abbreviations.
Comment 2 Quality Engineering 2003-06-30 18:00:51 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 3 Quality Engineering 2003-06-30 18:07:33 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.