switch (matcher.match (uri)) { case WORDS: return "vnd.android.cursor.dir / logan.dict"; case WORD: return "vnd.android.cursor.item / logan.dict"; default: throw new IllegalArgumentException ("unknown uri" + uri); } }
Each case statement in the above code block Why not add break?
<-! Baidu Button BEGIN -> more Share to: <-! Baidu Button END ->
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) -> Reply: Why are return a plus break Reply: Upstairs positive solution Reply: do not have a return is not a break up? Reply:
break is not to continue to determine the following case, improve efficiency, return is a direct return, plus a return would not break; simply because unreachable break after return statement. Reply:
Why are return a plus break
do not have a return is not break up?
break is not to continue to determine the following case, improve efficiency, return is a direct return, plus a return would not break; simply because unreachable break after return statement.
No comments:
Post a Comment