private static Feedback getFeedbackWithoutWarnings(String... suggestions) { return new Feedback(null, suggestions); }
private static Feedback getEmptyFeedback() { return new Feedback(null); }
private static Feedback getEmptyFeedback() { return new Feedback(null); }
private static Feedback getFeedbackWithoutWarnings(String... suggestions) { return new Feedback(null, suggestions); }
return getDictionaryMatchFeedback(match, isSoleMatch); case Spatial: return new Feedback(match.turns == 1 ? SPATIAL_WARNING_STRAIGHT_ROWS_OF_KEYS : SPATIAL_WARNING_SHORT_KEYBOARD_PATTERNS, ); case Repeat: return new Feedback(match.baseToken.length() == 1 ? REPEAT_WARNING_LIKE_AAA : REPEAT_WARNING_LIKE_ABCABCABC, ); case Sequence: return new Feedback(SEQUENCE_WARNING_LIKE_ABCOR6543, EXTRA_SUGGESTIONS_ADD_ANOTHER_WORD, SEQUENCE_SUGGESTIONS_AVOID_SEQUENCES ); case Regex: return new Feedback("recent_year".equals(match.regexName) ? REGEX_WARNING_RECENT_YEARS : null, ); case Date: return new Feedback( DATE_WARNING_DATES, EXTRA_SUGGESTIONS_ADD_ANOTHER_WORD,
return getDictionaryMatchFeedback(match, isSoleMatch); case Spatial: return new Feedback(match.turns == 1 ? SPATIAL_WARNING_STRAIGHT_ROWS_OF_KEYS : SPATIAL_WARNING_SHORT_KEYBOARD_PATTERNS, ); case Repeat: return new Feedback(match.baseToken.length() == 1 ? REPEAT_WARNING_LIKE_AAA : REPEAT_WARNING_LIKE_ABCABCABC, ); case Sequence: return new Feedback(SEQUENCE_WARNING_LIKE_ABCOR6543, EXTRA_SUGGESTIONS_ADD_ANOTHER_WORD, SEQUENCE_SUGGESTIONS_AVOID_SEQUENCES ); case Regex: return new Feedback("recent_year".equals(match.regexName) ? REGEX_WARNING_RECENT_YEARS : null, ); case Date: return new Feedback( DATE_WARNING_DATES, EXTRA_SUGGESTIONS_ADD_ANOTHER_WORD,
suggestions.add(DICTIONARY_SUGGESTIONS_L33T); return new Feedback(warning, suggestions.toArray(new String[suggestions.size()]));
suggestions.add(DICTIONARY_SUGGESTIONS_L33T); return new Feedback(warning, suggestions.toArray(new String[suggestions.size()]));