text: public static final AbbreviatedObjectId fromString(String str) {if (str.length() > Constants.OBJECT_ID_STRING_LENGTH)throw new IllegalArgumentException(MessageFormat.format(JGitText.get().invalidId, str));final byte[] b = Constants.encodeASCII(str);return fromHexString(b, 0, b.length);}