Skip to content

Commit

Permalink
sonarqube fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Jan 6, 2024
1 parent a3be719 commit 267996f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -666,15 +666,10 @@
import com.jdimension.jlawyer.client.settings.ClientSettings;
import com.jdimension.jlawyer.client.settings.ServerSettings;
import com.jdimension.jlawyer.client.utils.UserUtils;
import com.jdimension.jlawyer.server.services.MonitoringSnapshot;
import com.jdimension.jlawyer.services.JLawyerServiceLocator;
import com.jdimension.jlawyer.services.SystemManagementRemote;
import java.awt.Color;
import java.text.DecimalFormat;
import javax.swing.JOptionPane;
import javax.swing.JProgressBar;
import org.apache.log4j.Logger;
import themes.colors.DefaultColorTheme;

/**
*
Expand All @@ -693,7 +688,6 @@ public SystemMailboxDialog(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();

ClientSettings settings = ClientSettings.getInstance();
try {
if (!UserUtils.isCurrentUserAdmin()) {
this.cmdSave.setEnabled(false);
Expand Down Expand Up @@ -736,18 +730,6 @@ public SystemMailboxDialog(java.awt.Frame parent, boolean modal) {

}

private void setForeground(JProgressBar b, String errorLevel, String warnLevel, int value) {
int e = Integer.parseInt(errorLevel);
int w = Integer.parseInt(warnLevel);
if (value >= e) {
b.setForeground(DefaultColorTheme.COLOR_LOGO_RED);
} else if (value >= w) {
b.setForeground(Color.ORANGE.darker().darker());
} else {
b.setForeground(DefaultColorTheme.COLOR_LOGO_GREEN);
}
}

/**
* This method is called from within the constructor to initialize the form.
* WARNING: Do NOT modify this code. The content of this method is always
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6080,7 +6080,6 @@ private void cmbFormTypeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-F
}//GEN-LAST:event_cmbFormTypeActionPerformed

private void cmdFormsManagerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cmdFormsManagerActionPerformed
ClientSettings settings = ClientSettings.getInstance();
try {
if (UserUtils.isCurrentUserAdmin()) {
FormsManagementDialog dlg = new FormsManagementDialog(EditorsRegistry.getInstance().getMainWindow(), true);
Expand Down

0 comments on commit 267996f

Please sign in to comment.