Old new thing
Nov. 12th, 2014 04:10 pmI've been writing Java code for 15 years (scary!) but there are still things to learn. Today I discovered you can't
...except the actual number of types is 3.
switch
on a long
, only an int
. This is significant in the code I'm fixing because a certain type code is a long
and we wouldn't want to be limited to Integer.MAX_VALUE
types (2,147,483,647 of them)......except the actual number of types is 3.