You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've tried the PortValidator and noticed, that it does the following check: port > 0 && port < Short.MAX_VALUE.
However Short is signed and so it's max value is different. The actual max value is whole unsigned 16 bits.
Also the check should be less than or equal to if I am not mistaken, since it already is the max value, not it's size.
The text was updated successfully, but these errors were encountered:
Hi, I've tried the PortValidator and noticed, that it does the following check:
port > 0 && port < Short.MAX_VALUE
.However
Short
is signed and so it's max value is different. The actual max value is whole unsigned 16 bits.Also the check should be less than or equal to if I am not mistaken, since it already is the max value, not it's size.
The text was updated successfully, but these errors were encountered: