Created
December 3, 2013 18:43
-
-
Save babanin/5f3130c3cbb07491832a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private static class LongCache { | |
| private LongCache(){} | |
| static final Long cache[] = new Long[-(-128) + 127 + 1]; | |
| static { | |
| for(int i = 0; i < cache.length; i++) | |
| cache[i] = new Long(i - 128); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment