/** * If token is LITERAL_IF and there is an {@code else} following or token is CASE_GROUP and * there is another {@code case} following, then update the uninitialized variables. * @param ast token to be checked * @return true if should be updated, else false */ private static boolean shouldUpdateUninitializedVariables(DetailAST ast) { return isIfTokenWithAnElseFollowing(ast) || isCaseTokenWithAnotherCaseFollowing(ast); }
/** * If token is LITERAL_IF and there is an {@code else} following or token is CASE_GROUP and * there is another {@code case} following, then update the uninitialized variables. * @param ast token to be checked * @return true if should be updated, else false */ private static boolean shouldUpdateUninitializedVariables(DetailAST ast) { return isIfTokenWithAnElseFollowing(ast) || isCaseTokenWithAnotherCaseFollowing(ast); }