You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
补充(来自issue 675):在 Java 9 之后,String 、StringBuilder 与 StringBuffer 的实现改用 byte 数组存储字符串 private final byte[] value
源码中的变量是改用了byte数组,但是不是final修饰的啊,写错了吧这里
/** * The value is used for character storage. */byte[] value;
/** * The id of the encoding used to encode the bytes in {@code value}. */bytecoder;
/** * The count is the number of characters used. */intcount;
privatestaticfinalbyte[] EMPTYVALUE = newbyte[0];
The text was updated successfully, but these errors were encountered:
补充(来自issue 675):在 Java 9 之后,String 、StringBuilder 与 StringBuffer 的实现改用 byte 数组存储字符串 private final byte[] value
源码中的变量是改用了byte数组,但是不是final修饰的啊,写错了吧这里
/** * The value is used for character storage. */byte[] value;
/** * The id of the encoding used to encode the bytes in {@code value}. */bytecoder;
/** * The count is the number of characters used. */intcount;
privatestaticfinalbyte[] EMPTYVALUE = newbyte[0];
原文如下:
源码中的变量是改用了byte数组,但是不是final修饰的啊,写错了吧这里
The text was updated successfully, but these errors were encountered: