Skip to content

Instantly share code, notes, and snippets.

@MatrixFrog
Created August 21, 2015 19:51
Show Gist options
  • Save MatrixFrog/e6fc186ca0814f3d510d to your computer and use it in GitHub Desktop.
Save MatrixFrog/e6fc186ca0814f3d510d to your computer and use it in GitHub Desktop.
draft email to javasedocs_us@oracle.com
On https://docs.oracle.com/javase/tutorial/java/javaOO/lambdaexpressions.html there is the following enum:
public enum Sex {
MALE, FEMALE
}
Sex and gender are not that simple. Some people don't fit into either category. I realize this is just sample code but it serves to exclude lots of people who will read these docs, so I would suggest changing the field type to something more free-form, such as a String. Or, if it's necessary to use an enum to demonstrate some language feature, use something which is actually a binary state, such as
public enum AccountType {
FREE, PREMIUM
}
Thank you!
Tyler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment