Skip to content

Commit

Permalink
sonarqube fixes. issue #2183 issue #2184
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Nov 7, 2023
1 parent 0a36469 commit 3d15515
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,6 @@ private String getTooltipForTab(ArchiveFileBean caseContext) {
if(caseContext==null)
return null;
StringBuilder sb=new StringBuilder();
//sb.append("<html><b>").append(caseContext.getFileNumber()).append("</b><br/>").append(caseContext.getName()).append("<br/>").append(caseContext.getReason()).append("</html>");
sb.append(caseContext.getFileNumber()).append(System.lineSeparator()).append(caseContext.getName()).append(System.lineSeparator()).append(caseContext.getReason());
return sb.toString();
}
Expand Down Expand Up @@ -1375,8 +1374,7 @@ public void newMessageForSubmission(InstantMessage msg) {
// preserve case context of the current tab
if(tabIndex > 2) {
JScrollPane sp = (JScrollPane) this.tabsPane.getComponentAt(tabIndex);
JPanel messagesInTab = (JPanel) sp.getViewport().getComponent(0);


Object caseContext=sp.getClientProperty(CLIENTPROPERTY_CASECONTEXT);
if(caseContext!=null) {
msg.setCaseContext((ArchiveFileBean)caseContext);
Expand Down

0 comments on commit 3d15515

Please sign in to comment.