Skip to content

Commit

Permalink
sonarqube fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed May 22, 2024
1 parent 4a6e1fb commit b5ca3e1
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2511,10 +2511,6 @@ private void displayMessage() {

}
}
body=this.mailContentUI.getBody();
if(this.mailContentUI.getContentType()!=null && this.mailContentUI.getContentType().toLowerCase().contains("html")) {
body=EmailUtils.html2Text(this.mailContentUI.getBody());
}

CreateNewCasePanel cncp=new CreateNewCasePanel(this.getClass().getName(), this, relevantAddresses, msgC.getMessage().getSubject(), this.mailContentUI, senderName, senderAddress);
actionPanelEntries.add(cncp);
Expand Down Expand Up @@ -2547,7 +2543,7 @@ private void displayMessage() {
sp.setEntry(cce, this);
actionPanelEntries.add(sp);

if (phoneNumbers.size() > 0) {
if (!phoneNumbers.isEmpty()) {
ExtractedPhoneNumbersPanel pnp = new ExtractedPhoneNumbersPanel();
pnp.setPhoneNumbers(phoneNumbers);
actionPanelEntries.add(pnp);
Expand Down Expand Up @@ -2580,7 +2576,6 @@ private void displayMessage() {
if (aFile1.isArchived()) {
// both archived
// sort by changed date
//return aFile1.getFileNumber().compareTo(aFile2.getFileNumber());
return new FileNumberComparator().compare(aFile1, aFile2) * -1;
} else {
// only 2 is archived
Expand All @@ -2592,7 +2587,6 @@ private void displayMessage() {
} else {
// both are non-archived
// sort by changed date
//return aFile1.getFileNumber().compareTo(aFile2.getFileNumber());
return new FileNumberComparator().compare(aFile1, aFile2) * -1;
}
});
Expand Down

0 comments on commit b5ca3e1

Please sign in to comment.