src/share/classes/javax/swing/text/html/parser/ContentModelState.java

Print this page

        

*** 90,105 **** --- 90,107 ---- /** * Check if the state can be terminated. That is there are no more * tokens required in the input stream. * @return true if the model can terminate without further input */ + @SuppressWarnings("fallthrough") public boolean terminate() { switch (model.type) { case '+': if ((value == 0) && !(model).empty()) { return false; } + // Fall through okay? case '*': case '?': return (next == null) || next.terminate(); case '|':