Skip to content

Commit 86ad11d

Browse files
authored
CLDR-14925 Preliminary clean-up for snapshot of Priority Items Summary (#1646)
-Call System.out.println, not System.err.println, unless it is an error -Make some debugging output conditional on DEBUG or DEBUG_THREADS -Move an URL to CLDRURLS.PRIORITY_SUMMARY_HELP_URL -Call ph.shouldHide slightly sooner to avoid wasting time -Move some code into a new subroutine recordEnglishChanged -Fix deprecation warning for SurveyLog.logException -Employ existing method getChoiceSetForOrg instead of duplicating code -Remove dead code -Make private where possible -Formatting -Comments
1 parent 0eddf79 commit 86ad11d

4 files changed

Lines changed: 172 additions & 207 deletions

File tree

‎tools/cldr-apps/src/main/java/org/unicode/cldr/web/ReviewHide.java‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ public static void createTable(Connection conn) throws SQLException {
4141
}
4242
}
4343

44-
//get all the field for an user and locale
44+
/**
45+
* Get a map of all the notifications this user has chosen to hide in the Dashboard
46+
*
47+
* @param userId
48+
* @param locale
49+
* @return the map
50+
*/
4551
public HashMap<String, List<String>> getHiddenField(int userId, String locale) {
4652
if (this.hiddenField.isEmpty()) {
4753
Connection conn = null;
@@ -57,8 +63,9 @@ public HashMap<String, List<String>> getHiddenField(int userId, String locale) {
5763
while (rs.next()) {
5864
String choice = rs.getString("choice");
5965
List<String> paths = this.hiddenField.get(choice);
60-
if (paths == null)
66+
if (paths == null) {
6167
paths = new ArrayList<>();
68+
}
6269
paths.add(rs.getString("path"));
6370

6471
this.hiddenField.put(choice, paths);

0 commit comments

Comments
 (0)