Skip to content
Snippets Groups Projects
Commit fc0df0dc authored by Hans-Christoph Steiner's avatar Hans-Christoph Steiner
Browse files

make db maxSdkValues values use Byte.MAX_VALUE as max not 0

Having 0 mean max makes the logic confusing when maxSdkValue is used in
variable.  This sanitizes the data so that maxSdkValue is always just a
plain int value that can be used to test against.  It does this by
defaulting to Byte.MAX_VALUE (127) if it is not explicitly set. At the rate
of 24 SDK numbers in 8 years, that gives us about 24 years before we have
to think about setting it to Short.MAX_VALUE.

This fixes an issue created by e021eb5c
parent 74713810
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment