You probably want to throw runtime exception here. 

Cleaner is perhaps is size > Integer.MAX_INT then ...