Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New rt and rf abbrevations for return true; and return false; #5512

Merged
merged 1 commit into from
Feb 18, 2023

Conversation

japplis
Copy link
Contributor

@japplis japplis commented Feb 16, 2023

This is a pull request for 2 new code templates in NetBeans:

  • rt for "return true;"
  • rf for "return false;"

Reasons:

  • Both are used quite often. For example NetBeans source code has more than 14,000 "return true;" and more than 20,000 "return false;"
  • They are consistent with the following existing code template in NetBeans: "re" for "return" and "rn" for "return null;"
  • Easy to remember: just like rn for return null; 't' for true and 'f' for false
  • Easy to use: rt and rf are next each other on the keyboard
  • I've been using these code templates for at least 2 years and they remain ones of the main code templates I use

@mbien mbien added the Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) label Feb 16, 2023
@lkishalmi lkishalmi added this to the NB18 milestone Feb 18, 2023
Copy link
Contributor

@lkishalmi lkishalmi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane to me.

Thanks for your contribution!

Copy link
Contributor

@matthiasblaesing matthiasblaesing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane

@lkishalmi lkishalmi merged commit aad6dd6 into apache:master Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants