IDEA-106787: long string arrays in Groovy stubs

This commit is contained in:
Max Medvedev
2013-05-14 16:01:29 +04:00
parent e7b9610f8d
commit 7bd7a27cc7
@@ -47,7 +47,7 @@ public class GrStubUtils {
public static final int TOO_LONG = -1;
public static void writeStringArray(StubOutputStream dataStream, String[] array) throws IOException {
if (array.length >= Byte.MAX_VALUE) {
if (array.length > Byte.MAX_VALUE) {
dataStream.writeByte(TOO_LONG);
dataStream.writeInt(array.length);
}