long[] (JsonReaderEx reader) { checkIsNull(reader); reader.beginArray(); if (!reader.hasNext()) { reader.endArray(); return ArrayUtilRt.EMPTY_LONG_ARRAY; } LongArrayList result = new LongArrayList(); do { result.add(reader.nextLong()); } while (reader.hasNext()); reader.endArray(); return result.toLongArray(); }