代码是 java.lang.StringCoding 类中的一个方法
static char[] decode(byte abyte0[], int i, int j)
{
String s = Charset.defaultCharset().name();
return decode(s, abyte0, i, j); //第一个 return
UnsupportedEncodingException unsupportedencodingexception;
unsupportedencodingexception;
warnUnsupportedCharset(s);
return decode("ISO-8859-1", abyte0, i, j); //第二个 return
unsupportedencodingexception;
MessageUtils.err((new StringBuilder()).append("ISO-8859-1 charset not available: ").append(unsupportedencodingexception.toString()).toString());
System.exit(1);
return null;
}
这里第二个 return ( return decode("ISO-8859-1", abyte0, i, j))应该在某种情况下会运行到,。。。但是想不明白
不明白这里 return 为什么可以有多个(串联),直接百度函数使用多个 return ,都不是我要表达的意思,实在没办法,只能找社区碰碰运气。。。求大神指点