-
Notifications
You must be signed in to change notification settings - Fork 52
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
Name the "magic numbers" #24
Comments
These are constants. |
Great, and what are their names/meanings? |
by static final int FIELD_DELIMITER = 0x80 |
What would that add? Did you read TLV specs? Why is "CONSTANT_100" better than "100" ? |
"100" is a value. But in the code it has a meaning. And the name should express that meaning. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
BerTlvBuilder contains a lot of "magic numbers" (
0x80
,0x81
,0x100
and so on). What are they? Could you make them constant?The text was updated successfully, but these errors were encountered: