File tree Expand file tree Collapse file tree
src/main/java/com/junichi11/netbeans/modules/github/issues/query/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -230,12 +230,16 @@ public final void setResultCounts(int count) {
230230 resultsLabel .setText ("" ); // NOI18N
231231 return ;
232232 }
233- if (count == 0 ) {
234- resultsLabel .setText (Bundle .GitHubQueryPanel_message_result_empty ());
235- } else if (count == 1 ) {
236- resultsLabel .setText (Bundle .GitHubQueryPanel_message_result_issue ());
237- } else {
238- resultsLabel .setText (Bundle .GitHubQueryPanel_message_result_issues (count ));
233+ switch (count ) {
234+ case 0 :
235+ resultsLabel .setText (Bundle .GitHubQueryPanel_message_result_empty ());
236+ break ;
237+ case 1 :
238+ resultsLabel .setText (Bundle .GitHubQueryPanel_message_result_issue ());
239+ break ;
240+ default :
241+ resultsLabel .setText (Bundle .GitHubQueryPanel_message_result_issues (count ));
242+ break ;
239243 }
240244 }
241245
You can’t perform that action at this time.
0 commit comments