static short[] newShortArrayOrNull(int n) { ret n <= 0 ? null : new short[n]; }