IDEMPIERE-455 Discover and fix FindBugs problems / Eclipse warning -> not used

This commit is contained in:
Richard Morales 2012-12-13 18:41:45 -05:00
parent f102760447
commit ae3990ce11
113 changed files with 184 additions and 130 deletions

View File

@ -25,6 +25,7 @@ package org.compiere.process;
public class InfoWindowValidate extends SvrProcess
{
/** Info Window */
@SuppressWarnings("unused")
private int p_AD_InfoWindow_ID = 0;
/**

View File

@ -155,9 +155,9 @@ public class TestConnection
start = System.currentTimeMillis();
while (rs.next())
{
int i = rs.getInt("AD_Client_ID");
String s = rs.getString("Name");
i += s.length();
//int i = rs.getInt("AD_Client_ID");
//String s = rs.getString("Name");
//i += s.length();
no++;
}
end = System.currentTimeMillis();
@ -224,6 +224,7 @@ public class TestConnection
url = args[2];
System.out.println("");
@SuppressWarnings("unused")
TestConnection test = new TestConnection(url, uid, pwd);
} // main

View File

@ -61,6 +61,7 @@ public class TestEJB
//
try
{
@SuppressWarnings("unused")
Status status = (Status)ic.lookup ("Status");
//
}

View File

@ -203,11 +203,11 @@ public class AccessSqlParserTest extends TestCase
assertEquals("AccessSqlParser[M_AttributeInstance|M_Product=p,M_ProductPrice=pr,M_AttributeSet=pa|1]", fixture.toString());
}
/** **/
public void testHinttech()
/*public void testHinttech()
{
String sql = "SELECT XX_HTC1_EMPLOYEE_V.C_BPartner_ID,NULL,XX_HTC1_EMPLOYEE_V.C_BPARTNER_NAME,XX_HTC1_EMPLOYEE_V.IsActive FROM XX_HTC1_EMPLOYEE_V WHERE XX_HTC1_EMPLOYEE_V.AD_User_ID IN (SELECT ur.AD_User_ID FROM AD_User_Roles ur INNER JOIN AD_Role r ON (ur.AD_Role_ID=r.AD_Role_ID) WHERE r.Name like '%Field Manager%')";
AccessSqlParser fixture = new AccessSqlParser(sql);
}
}*/
/**
* <li>teo_sarca - [ 1652623 ] AccessSqlParser.getTableInfo(String) - tablename parsing bug

View File

@ -58,6 +58,7 @@ public class AmtInWords_IN implements AmtInWords
private static final long POWER_FIFTEEN = 1000000000000000L;
/** Static Logger */
@SuppressWarnings("unused")
private static CLogger s_log = CLogger.getCLogger (AmtInWords_IN.class);
//-------------------------- STATIC METHODS --------------------------

View File

@ -395,7 +395,7 @@ public class MWorkflow extends X_AD_Workflow
* @param AD_WF_Node_ID start node id
* @param AD_Client_ID for client
*/
private void addNodesDF (ArrayList<MWFNode> list, int AD_WF_Node_ID, int AD_Client_ID)
/*private void addNodesDF (ArrayList<MWFNode> list, int AD_WF_Node_ID, int AD_Client_ID)
{
MWFNode node = getNode (AD_WF_Node_ID);
if (node != null && !list.contains(node))
@ -409,7 +409,7 @@ public class MWorkflow extends X_AD_Workflow
addNodesDF (list, nexts[i].getAD_WF_Next_ID(), AD_Client_ID);
}
}
} // addNodesDF
} // addNodesDF*/
/**
* Add Nodes recursively (sibling first) to Ordered List

View File

@ -212,6 +212,7 @@ public class MDDOrder extends X_DD_Order implements DocAction
private MDDOrderLine[] m_lines = null;
/** Force Creation of order */
@SuppressWarnings("unused")
private boolean m_forceCreation = false;
/**
@ -943,6 +944,7 @@ public class MDDOrder extends X_DD_Order implements DocAction
*/
public String completeIt()
{
@SuppressWarnings("unused")
MDocType dt = MDocType.get(getCtx(), getC_DocType_ID());
// Just prepare

View File

@ -89,6 +89,7 @@ public class MDDOrderLine extends X_DD_OrderLine
} // getNotReserved
/** Logger */
@SuppressWarnings("unused")
private static CLogger s_log = CLogger.getCLogger (MDDOrderLine.class);
/**************************************************************************

View File

@ -122,14 +122,11 @@ public class ExportFormatGenerator extends SvrProcess
log.info("Table Name:"+table.getTableName());
MColumn[] cols = table.getColumns(true);
String unique = null;
boolean fieldname = false;
for(MColumn col : cols)
{
if(col.isIdentifier() && col.getSeqNo() == 1)
{
unique = col.getColumnName();
if(unique.equals("Name"))
fieldname = true;
log.info("Unique Key"+unique);
break;
}

View File

@ -104,7 +104,6 @@ public class ImportInventoryMove extends SvrProcess
{
// Delete Old Imported
StringBuffer sql = null;
if (m_DeleteOldImported)
{
int no = 0;

View File

@ -6,7 +6,6 @@ import java.sql.ResultSet;
import java.sql.SQLException;
import org.compiere.model.MBPGroup;
import org.compiere.model.MLocation;
import org.compiere.util.DB;
import test.AdempiereTestCase;
@ -14,7 +13,7 @@ import test.AdempiereTestCase;
public class MBPGroupTest extends AdempiereTestCase {
// Variables needed for importing/migrating business partners
private MLocation location = null;
//private MLocation location = null;
private MBPGroup m_group = null; //business partner
/*

View File

@ -2,15 +2,15 @@
package test.functional;
import org.compiere.model.MBPartner;
import org.compiere.model.MLocation;
import test.AdempiereTestCase;
public class MBPartnerTest extends AdempiereTestCase {
// Variables needed for importing/migrating business partners
private MLocation location = null;
//private MLocation location = null;
private MBPartner m_partner = null; //business partner
//private MBPartner m_partner = null; //business partner
/*
private MBPartnerLocation bpl = null; //business partner location
private MUser user = null; //business contact

View File

@ -32,6 +32,7 @@ public class MCurrencyAcctTest extends AdempiereTestCase
public void testQuery() throws Exception
{ //red1 create C_Currency_Acct wih SchemaDef = 101 and C_Currency = 100
@SuppressWarnings("unused")
MAcctSchemaDefault as = MAcctSchemaDefault.get(getCtx(), 101);
// IDEMPIERE-362 Hide things that don't work on iDempiere

View File

@ -7,7 +7,6 @@ import java.sql.SQLException;
import org.compiere.model.MBPGroup;
import org.compiere.model.MBPartner;
import org.compiere.model.MLocation;
import org.compiere.model.MUser;
import org.compiere.util.DB;
import org.compiere.util.Env;
@ -17,7 +16,7 @@ import test.AdempiereTestCase;
public class MUserTest extends AdempiereTestCase {
// Variables needed for importing/migrating business partners
private MLocation location = null;
//private MLocation location = null;
private MBPartner m_partner = null; //business partner
private MUser m_contact = null; //business contact

View File

@ -2,7 +2,6 @@ package test.functional;
import org.compiere.model.MColumn;
import org.compiere.model.MInvoice;
import org.compiere.model.MProduct;
import org.compiere.model.MTable;
import org.compiere.model.X_AD_Reference;
import org.compiere.util.Env;
@ -12,10 +11,9 @@ import test.AdempiereTestCase;
public class TrifonTest extends AdempiereTestCase {
// Test: Specific variables
private MProduct product = null;
//private MProduct product = null;
public void testMProductCreation() {
boolean singleCommit = true;
MTable mTable = MTable.get(Env.getCtx(), MInvoice.Table_Name );
System.out.println("XML presentation... is: " + mTable.get_xmlDocument(false));

View File

@ -50,6 +50,7 @@ public class ReplicationProcessor extends AdempiereServer {
private StringBuffer m_summary = new StringBuffer();
/** Client info */
@SuppressWarnings("unused")
private MClient m_client = null;
private MIMPProcessor mImportProcessor = null;

View File

@ -34,8 +34,10 @@ public class JasperReportViewer extends JRViewer {
private static final long serialVersionUID = -7988455595896562947L;
/** Logger */
@SuppressWarnings("unused")
private static CLogger log = CLogger.getCLogger(JasperReportViewer.class);
@SuppressWarnings("unused")
private JasperViewer jasperViewer;
private JasperPrint jasperPrint;
private JComboBox comboBox;
@ -145,6 +147,7 @@ class SendByEmailListener implements ActionListener {
log.log(Level.SEVERE, "", e);
}
@SuppressWarnings("unused")
EMailDialog emd = new EMailDialog ((JFrame)jasperViewer,
Msg.getMsg(Env.getCtx(), "SendMail"),
from, to, subject, message, attachment);

View File

@ -84,7 +84,6 @@ public class AdempiereMonitorFilter implements Filter
public void doFilter (ServletRequest request, ServletResponse response, FilterChain chain)
throws IOException, ServletException
{
boolean error = false;
String errorPage = "/error.html";
boolean pass = false;
try

View File

@ -110,6 +110,7 @@ public class Graph extends CPanel implements ChartMouseListener
/** Y Axis Target Line */
@SuppressWarnings("unused")
private double m_Y_Target = 0;
/** Y Axis Target Line Label */
private String m_Y_TargetLabel = null;

View File

@ -30,6 +30,7 @@ import org.compiere.util.CLogger;
public class GraphUtil
{
/** Logger */
@SuppressWarnings("unused")
private static CLogger log = CLogger.getCLogger (GraphUtil.class);
/**

View File

@ -93,14 +93,15 @@ public class PerformanceIndicator extends JPanel
/** The Performance Name */
private String m_text = null;
/** Performance Line */
@SuppressWarnings("unused")
private double m_line = 0;
/** Height */
private static double s_height = 45;
//private static double s_height = 45;
/** 100% width */
private static double s_width100 = 150;
/** Max width */
private static double s_widthMax = 250;
//private static double s_widthMax = 250;
/** Integer Number Format */
private static DecimalFormat s_format = DisplayType.getNumberFormat(DisplayType.Integer);
@ -108,8 +109,8 @@ public class PerformanceIndicator extends JPanel
private CMenuItem mRefresh = new CMenuItem(Msg.getMsg(Env.getCtx(), "Refresh"), Env.getImageIcon("Refresh16.gif"));
//Insert Pie Graph Kinamo (pelgrim)
private static Color colorOK = Color.magenta;
private static Color colorNotOK = Color.lightGray;
//private static Color colorOK = Color.magenta;
//private static Color colorNotOK = Color.lightGray;
private static Dimension indicatordimension = new Dimension(170,120);
private static Dimension paneldimension = new Dimension(180, 150);
ChartPanel chartPanel;
@ -155,9 +156,7 @@ public class PerformanceIndicator extends JPanel
m_line = s_width100;
else // draw Performance Line
m_line = s_width100 * m_goal.getGoalPerformanceDouble();
String title = m_text;
DefaultValueDataset data = new DefaultValueDataset((float)m_goal.getPercent());
MeterPlot plot = new MeterPlot(data);

View File

@ -100,6 +100,7 @@ implements FormPanel, ActionListener
} // dispose
/** Window No */
@SuppressWarnings("unused")
private int m_WindowNo = 0;
/** FormFrame */
private FormFrame m_frame;
@ -114,6 +115,7 @@ implements FormPanel, ActionListener
*/
private void initPanel()
{
@SuppressWarnings("unused")
BoxLayout layout = new BoxLayout(this, BoxLayout.PAGE_AXIS);
MGoal[] goals = MGoal.getGoals(Env.getCtx());
for (int i = 0; i < goals.length; i++)

View File

@ -1294,7 +1294,7 @@ public final class AdempiereTabbedPaneUI extends MetalTabbedPaneUI {
}
private boolean requestFocusForVisibleComponent() {
Component visibleComponent = getVisibleComponent();
if (visibleComponent.isFocusable()) {
@ -2110,13 +2110,15 @@ public final class AdempiereTabbedPaneUI extends MetalTabbedPaneUI {
protected static final Insets EAST_INSETS = new Insets(0, 0, 0, 1);
protected final JTabbedPane tabPane;
protected final int tabPlacement;
@SuppressWarnings("unused")
protected final int tabPlacement;
protected Color shadowColor;
protected Color darkShadow;
protected Color selectColor;
protected Color selectLight;
protected Color selectHighlight;
protected Color lightHighlight;
@SuppressWarnings("unused")
protected Color lightHighlight;
protected Color focus;
private AbstractRenderer(JTabbedPane tabPane) {

View File

@ -67,8 +67,10 @@ public class AApplet extends Applet
super.start ();
showStatus(Adempiere.getSummary());
//
@SuppressWarnings("unused")
Splash splash = Splash.getSplash();
Adempiere.startup(true); // needs to be here for UI
@SuppressWarnings("unused")
AMenu menu = new AMenu();
} // start

View File

@ -96,11 +96,12 @@ public class AChat extends CDialog
} // Attachment
/** Window No */
@SuppressWarnings("unused")
private int m_WindowNo;
/** Attachment */
private MChat m_chat;
/** Change */
private boolean m_change = false;
//private boolean m_change = false;
/** Logger */
private static CLogger log = CLogger.getCLogger(AChat.class);

View File

@ -409,6 +409,7 @@ public final class ADialog
CLogMgt.getInfoDetail(myMessage, Env.getCtx());
ModelValidationEngine.get().getInfoDetail(myMessage, Env.getCtx()); // teo_sarca - FR [ 1724662 ]
@SuppressWarnings("unused")
EMailDialog emd = new EMailDialog(owner,
Msg.getMsg(Env.getCtx(), "EMailSupport"),
from, to, "Support: " + subject, myMessage.toString(), null);
@ -432,6 +433,7 @@ public final class ADialog
CLogMgt.getInfoDetail(myMessage, Env.getCtx());
ModelValidationEngine.get().getInfoDetail(myMessage, Env.getCtx()); // teo_sarca - FR [ 1724662 ]
@SuppressWarnings("unused")
EMailDialog emd = new EMailDialog(owner,
Msg.getMsg(Env.getCtx(), "EMailSupport"),
from, to, "Support: " + subject, myMessage.toString(), null);

View File

@ -142,7 +142,7 @@ public class AFocusTraversalPolicy extends LayoutFocusTraversalPolicy
* @param title
* @param c
*/
private void info (String title, Component c)
/*private void info (String title, Component c)
{
System.out.print (title);
if (c == null)
@ -152,6 +152,6 @@ public class AFocusTraversalPolicy extends LayoutFocusTraversalPolicy
System.out.print (c.getClass().getName());
System.out.println (" - " + c.getName());
}
} // info
} // info*/
} // AFocusTraversalPolicy

View File

@ -220,6 +220,7 @@ public final class AMenu extends CFrame
private int m_AD_Role_ID;
/** Center Tabbed Pane index: Menu */
@SuppressWarnings("unused")
private int m_tabMenu = 0;
/** Center Tabbed Pane index: Activities */
private int m_tabActivities = 1;

View File

@ -317,6 +317,7 @@ public final class APanel extends CPanel
/** Private Lock Button */
public AppsAction aLock;
// Local (added to toolbar)
@SuppressWarnings("unused")
private AppsAction aReport, aEnd, aHome, aHelp, aProduct, aLogout,
aAccount, aCalculator, aCalendar, aEditor, aPreference, aScript,
aOnline, aMailSupport, aAbout, aPrintScr, aScrShot, aExit, aBPartner,
@ -1203,8 +1204,8 @@ public final class APanel extends CPanel
// update Change
boolean changed = e.isChanged() || e.isInserting();
int changedColumn = e.getChangedColumn();
boolean inserting = e.isInserting();
//int changedColumn = e.getChangedColumn();
//boolean inserting = e.isInserting();
if(e.getAD_Message() != null && e.getAD_Message().equals("Saved"))
changed = false;

View File

@ -51,6 +51,7 @@ public class AWindowListener extends WindowAdapter
} // AWindowListener
/** The Window */
@SuppressWarnings("unused")
private Window m_window;
/** The Listener */
private WindowStateListener m_listener;

View File

@ -545,14 +545,16 @@ public final class Attachment extends CDialog
if (Env.isWindows())
{
// Runtime.getRuntime().exec ("rundll32 url.dll,FileProtocolHandler " + url);
Process p = Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL \"" + tempFile + "\"");
@SuppressWarnings("unused")
Process p = Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL \"" + tempFile + "\"");
// p.waitFor();
return true;
}
else if (Env.isMac())
{
String [] cmdArray = new String [] {"open", tempFile.getAbsolutePath()};
Process p = Runtime.getRuntime ().exec (cmdArray);
@SuppressWarnings("unused")
Process p = Runtime.getRuntime ().exec (cmdArray);
// p.waitFor();
return true;
}

View File

@ -64,6 +64,7 @@ public class BeanShellEditor extends CDialog implements ActionListener
*
*/
private static final long serialVersionUID = -5134274235147001140L;
@SuppressWarnings("unused")
private Frame m_owner;
/**

View File

@ -54,6 +54,7 @@ public class GroovyEditor extends CDialog implements ActionListener
*
*/
private static final long serialVersionUID = 2941209813417292930L;
@SuppressWarnings("unused")
private Frame m_owner;
/**

View File

@ -343,7 +343,7 @@ class Worker extends Thread
* @param doc html document
* @param tag html tag
*/
private void dumpTags (HTMLDocument doc, HTML.Tag tag)
/*private void dumpTags (HTMLDocument doc, HTML.Tag tag)
{
System.out.println("Doc=" + doc.getBase() + ", Tag=" + tag);
HTMLDocument.Iterator it = doc.getIterator(tag);
@ -353,6 +353,6 @@ class Worker extends Thread
System.out.println("~ " + as);
it.next();
}
} // printTags
} // printTags*/
} // Worker

View File

@ -695,6 +695,7 @@ public final class Preference extends CDialog
*/
private void cmd_errorEMail()
{
@SuppressWarnings("unused")
EMailDialog emd = new EMailDialog(this,
"EMail Trace",
MUser.get(Env.getCtx()),

View File

@ -62,6 +62,7 @@ public class ScriptEditor
}
else
{
@SuppressWarnings("unused")
BeanShellEditor se = new BeanShellEditor (owner, header, scr, WindowNo);
return scr.getScript();
}

View File

@ -40,6 +40,7 @@ import org.compiere.grid.GridController;
*/
public class TabSwitcher extends FocusAdapter implements ActionListener, ListSelectionListener{
@SuppressWarnings("unused")
private APanel panel;
private GridController gc;

View File

@ -118,10 +118,11 @@ public class Waiting extends CDialog
/** Logger */
private static CLogger log = CLogger.getCLogger(Waiting.class);
@SuppressWarnings("unused")
private CPanel southPanel = new CPanel();
private CButton bDoNotWait = new CButton();
private CLabel infoLabel = new CLabel();
private FlowLayout southLayout = new FlowLayout();
//private FlowLayout southLayout = new FlowLayout();
private CPanel mainPanel = new CPanel();
private JProgressBar progressBar = new JProgressBar();

View File

@ -65,12 +65,6 @@ import org.compiere.util.Msg;
public class ArchiveViewer extends Archive
implements FormPanel, ActionListener, VetoableChangeListener
{
/**
*
*/
private static final long serialVersionUID = 876677286190292132L;
private CTabbedPane panel = new CTabbedPane();

View File

@ -332,6 +332,7 @@ public class VAllocation extends Allocation
String msg = writeOff(row, col, isInvoice, paymentTable, invoiceTable, isAutoWriteOff);
//render row
@SuppressWarnings("unused")
DefaultTableModel model = (DefaultTableModel) (isInvoice ? invoiceTable.getModel() : paymentTable.getModel());
//model.fireTableRowsUpdated(row, row);

View File

@ -125,6 +125,7 @@ public class VAttributeGrid extends CPanel
} // init
/** Window No */
@SuppressWarnings("unused")
private int m_WindowNo = 0;
/** FormFrame */
private FormFrame m_frame;

View File

@ -142,6 +142,7 @@ public class VBOMDrop extends CPanel
} // dispose
/** Window No */
@SuppressWarnings("unused")
private int m_WindowNo = 0;
/** FormFrame */
private FormFrame m_frame;

View File

@ -82,6 +82,7 @@ public class VSQLProcess extends CPanel
} // dispose
/** Window No */
@SuppressWarnings("unused")
private int m_WindowNo = 0;
/** FormFrame */
private FormFrame m_frame;
@ -216,6 +217,7 @@ public class VSQLProcess extends CPanel
try
{
stmt = conn.createStatement();
@SuppressWarnings("unused")
boolean OK = stmt.execute(sql);
int count = stmt.getUpdateCount();
if (count == -1)

View File

@ -70,10 +70,12 @@ public final class FindCellEditor extends AbstractCellEditor
/** The Table Editor */
private CEditor m_editor = null;
/** Table */
@SuppressWarnings("unused")
private JTable m_table = null;
/** ClickCount */
private static int CLICK_TO_START = 1;
//private static int CLICK_TO_START = 1;
/** Logger */
@SuppressWarnings("unused")
private static CLogger log = CLogger.getCLogger(FindCellEditor.class);

View File

@ -21,7 +21,6 @@ import java.math.BigDecimal;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.ArrayList;
import org.adempiere.plaf.AdempierePLAF;
import org.compiere.apps.ALayout;
@ -115,13 +114,13 @@ public class InfoInvoice extends Info
} // InfoInvoice
/** String Array of Column Info */
private Info_Column[] m_generalLayout;
//private Info_Column[] m_generalLayout;
/** list of query columns */
private ArrayList m_queryColumns = new ArrayList();
//private ArrayList m_queryColumns = new ArrayList();
/** Table Name */
private String m_tableName;
//private String m_tableName;
/** Key Column Name */
private String m_keyColumn;
//private String m_keyColumn;
// Static Info
private CLabel lDocumentNo = new CLabel(Msg.translate(Env.getCtx(), "DocumentNo"));

View File

@ -21,7 +21,6 @@ import java.math.BigDecimal;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.ArrayList;
import org.adempiere.plaf.AdempierePLAF;
import org.compiere.apps.ALayout;
@ -110,13 +109,13 @@ public class InfoOrder extends Info
} // InfoOrder
/** String Array of Column Info */
private Info_Column[] m_generalLayout;
//private Info_Column[] m_generalLayout;
/** list of query columns */
private ArrayList m_queryColumns = new ArrayList();
//private ArrayList m_queryColumns = new ArrayList();
/** Table Name */
private String m_tableName;
//private String m_tableName;
/** Key Column Name */
private String m_keyColumn;
//private String m_keyColumn;
// Static Info
private CLabel lDocumentNo = new CLabel(Msg.translate(Env.getCtx(), "DocumentNo"));

View File

@ -21,7 +21,6 @@ import java.math.BigDecimal;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.ArrayList;
import org.adempiere.plaf.AdempierePLAF;
import org.compiere.apps.ALayout;
@ -110,13 +109,13 @@ public class InfoPayment extends Info
} // InfoPayment
/** String Array of Column Info */
private Info_Column[] m_generalLayout;
//private Info_Column[] m_generalLayout;
/** list of query columns */
private ArrayList m_queryColumns = new ArrayList();
//private ArrayList m_queryColumns = new ArrayList();
/** Table Name */
private String m_tableName;
//private String m_tableName;
/** Key Column Name */
private String m_keyColumn;
//private String m_keyColumn;
// Static Info
private CLabel lDocumentNo = new CLabel(Msg.translate(Env.getCtx(), "DocumentNo"));

View File

@ -216,7 +216,6 @@ public class VSchedulePanel extends JComponent implements MouseListener
int xWidth = m_dayWidth / mas.getXMax();
int xStart = dayIndex * m_dayWidth; // start day slot
xStart += mas.getXPos() * xWidth; // offset
int xEnd = xStart + xWidth;
int yStart = m_timePanel.getSlotYStart(mas.getYStart());
int yEnd = m_timePanel.getSlotYEnd(mas.getYEnd());

View File

@ -127,6 +127,7 @@ public class WFPanel extends CPanel
/** Menu Link */
private AMenu m_menu = null;
/** Window No */
@SuppressWarnings("unused")
private int m_WindowNo = 0;
/** FormFrame */
private FormFrame m_frame;
@ -325,8 +326,8 @@ public class WFPanel extends CPanel
List<Integer> added = new ArrayList<Integer>();
for (int i = 0; i < nodes.length; i++)
{
boolean rw = readWrite // in editor mode & owned
&& (AD_Client_ID == nodes[i].getAD_Client_ID());
//boolean rw = readWrite // in editor mode & owned
// && (AD_Client_ID == nodes[i].getAD_Client_ID());
if (!added.contains(nodes[i].getAD_WF_Node_ID()))
centerPanel.addNode(nodes[i]);
}

View File

@ -28,6 +28,7 @@ import org.compiere.model.StateChangeListener;
*/
public class GridSynchronizer implements PropertyChangeListener, StateChangeListener {
@SuppressWarnings("unused")
private GridController parent;
private GridController child;
private GridWindow window;

View File

@ -120,6 +120,7 @@ public final class VPanel extends CTabbedPane
} // VPanel
/** Orientation */
@SuppressWarnings("unused")
private final boolean m_leftToRight = Language.getLoginLanguage().isLeftToRight();
/** Previous Field Group Header */
private String m_oldFieldGroup = null;

View File

@ -1302,6 +1302,7 @@ public class VPayment extends CDialog
if (m_onlyRule)
return true;
@SuppressWarnings("unused")
String CCType = m_CCType;
//
int C_BankAccount_ID = 0;

View File

@ -91,7 +91,8 @@ public class ADempiereAutoCompleteDecorator extends AutoCompleteDecorator{
// otherwise the last mark would have been retained which is quiet confusing
textComponent.addFocusListener(new FocusAdapter() {
public void focusGained(FocusEvent e) {
JTextComponent textComponent = (JTextComponent) e.getSource();
@SuppressWarnings("unused")
JTextComponent textComponent = (JTextComponent) e.getSource();
adaptor.markEntireText();
}
});

View File

@ -37,8 +37,6 @@ import org.compiere.util.CLogger;
*/
public abstract class AutoCompleter implements MouseListener
{
private static final long serialVersionUID = -5135462631871597277L;
private static final String AUTOCOMPLETER = "AUTOCOMPLETER"; //NOI18N
private static final int PopupDelayMillis = 500;

View File

@ -52,9 +52,7 @@ public class ComboSelectionManager implements JComboBox.KeySelectionManager
{
log.fine("Key=" + key);
//
int currentSelection = -1;
Object selectedItem = model.getSelectedItem();
//Object selectedItem = model.getSelectedItem();
return 0;
} // selectionForKey

View File

@ -415,6 +415,7 @@ public class HTMLEditor extends CDialog
try
{
@SuppressWarnings("unused")
EditorKit kit = editorPane.getEditorKit();
OutputStreamWriter writer = new OutputStreamWriter
(new FileOutputStream (jc.getSelectedFile()));

View File

@ -270,6 +270,7 @@ public final class MDocDate extends PlainDocument implements CaretListener
/**
* Call Calendar Dialog
*/
@SuppressWarnings("unused")
private void startDateDialog()
{
log.config("");

View File

@ -315,8 +315,6 @@ public final class VAccountDialog extends CDialog
m_gbc.weightx = 0;
m_gbc.weighty = 0;
int TabNo = 0;
// Alias
if (s_AcctSchema.isHasAlias())
{

View File

@ -73,6 +73,7 @@ public class VBinary extends JButton
/** Column Name */
private String m_columnName;
/** WindowNo */
@SuppressWarnings("unused")
private int m_WindowNo;
/** Data */
private Object m_data = null;

View File

@ -149,6 +149,7 @@ public final class VButton extends CButton
private String m_text;
private boolean m_mandatory;
private Object m_value;
@SuppressWarnings("unused")
private ActionListener m_actionListener;
/** List of Key/Name */
private HashMap<String,String> m_values = null;

View File

@ -76,7 +76,7 @@ public final class VCellEditor extends AbstractCellEditor
/** Table */
private JTable m_table = null;
private ActionListener buttonListener;
//private ActionListener buttonListener;
private ActionListener actionListener;
/** ClickCount */

View File

@ -74,6 +74,7 @@ public class VFile extends JComponent
m_adaptee = adaptee;
} // VLookup_mouseAdapter
@SuppressWarnings("unused")
private VFile m_adaptee;
/**

View File

@ -116,7 +116,6 @@ public class VLine extends AbstractBorder
// Header Text
g.setColor(m_color);
g.setFont(m_font);
int x = GAP;
if (!Language.getLoginLanguage().isLeftToRight())
{
}

View File

@ -187,6 +187,7 @@ public class VLocation extends JComponent
private CMenuItem mDelete;
/** The Grid Tab * */
@SuppressWarnings("unused")
private GridTab m_GridTab; // added for processCallout
/** The Grid Field * */
private GridField m_GridField; // added for processCallout

View File

@ -106,10 +106,13 @@ public class VLocatorDialog extends CDialog
private int m_only_Warehouse_ID = 0;
//
private int m_M_Warehouse_ID;
@SuppressWarnings("unused")
private String m_M_WarehouseName;
private String m_M_WarehouseValue;
private String m_Separator;
@SuppressWarnings("unused")
private int m_AD_Client_ID;
@SuppressWarnings("unused")
private int m_AD_Org_ID;
/** Logger */
private static CLogger log = CLogger.getCLogger(VLocatorDialog.class);

View File

@ -944,7 +944,7 @@ public class VLookup extends JComponent
*
*
*/
private String getExtraWhereClause (String text)
/*private String getExtraWhereClause (String text)
{
StringBuilder sql = new StringBuilder();
m_tableName = m_columnName.substring(0, m_columnName.length()-3);
@ -963,7 +963,7 @@ public class VLookup extends JComponent
//.append(" OR p.UPC LIKE ").append(DB.TO_STRING(text)).append(")");
}
// Predefined
/*
if (sql.length() > 0)
{
String wc = getWhereClause();
@ -974,10 +974,10 @@ public class VLookup extends JComponent
log.finest(m_columnName + " (predefined) " + sql.toString());
return MRole.getDefault().addAccessSQL(sql.toString(),
m_tableName, MRole.SQL_NOTQUALIFIED, MRole.SQL_RO);
}*/
}
return sql.toString();
}
}*/
/**
* Check, if data returns unique entry, otherwise involve Info via Button
*/

View File

@ -54,7 +54,6 @@ public class VOvrCaret extends DefaultCaret
*/
public void paint(Graphics g)
{
boolean dotLTR = true; // left-to-right
Position.Bias dotBias = Position.Bias.Forward;
//

View File

@ -71,6 +71,7 @@ public class VPaymentEditor extends JComponent implements VEditor, ActionListene
/** Indicator that Lookup has focus */
private volatile boolean m_haveFocus = false;
/** Indicator - inserting new value */
@SuppressWarnings("unused")
private volatile boolean m_inserting = false;
/** Last Display */
private String m_lastDisplay = "";

View File

@ -188,6 +188,7 @@ public class VURL extends JComponent
/** Setting new value */
private volatile boolean m_setting = false;
/** Field in focus */
@SuppressWarnings("unused")
private volatile boolean m_infocus = false;
/** Field Length */
private int m_fieldLength;
@ -416,6 +417,7 @@ public class VURL extends JComponent
{
try
{
@SuppressWarnings("unused")
URL url = new URL(urlString);
Env.startBrowser(urlString);
return;

View File

@ -63,6 +63,7 @@ public class AdempiereTreeModel extends DefaultTreeModel {
Trx trx = Trx.get (Trx.createTrxName("AdempiereTreeModel"), true);
try
{
@SuppressWarnings("unused")
int no = 0;
for (int i = 0; i < from.getChildCount(); i++)
{

View File

@ -335,7 +335,7 @@ public final class VTreePanel extends CPanel
private JXTaskPaneContainer bar = new JXTaskPaneContainer();
private java.util.List<JToolBar> toolbar;
private HashMap<Integer, JToolBar> toolbarMap;
private int toolBarCols=3;
//private int toolBarCols=3;
private CMenuItem mBarAdd = new CMenuItem();
private CMenuItem mBarRemove = new CMenuItem();
private BorderLayout southLayout = new BorderLayout();
@ -345,10 +345,12 @@ public final class VTreePanel extends CPanel
private KeyListener keyListener = new VTreePanel_keyAdapter(this);
//
@SuppressWarnings("unused")
private int m_WindowNo;
/** Tree ID */
private int m_AD_Tree_ID = 0;
/** Table Name for TreeNode */
@SuppressWarnings("unused")
private String m_nodeTableName = null;
/** Tree is editable (can move nodes) - also not active shown */
private boolean m_editable;

View File

@ -53,11 +53,6 @@ import org.compiere.util.ValueNamePair;
public class VTranslationDialog extends TranslationController
implements FormPanel, ActionListener
{
/**
*
*/
private static final long serialVersionUID = -5072470836657762574L;
private CPanel panel = new CPanel();

View File

@ -710,7 +710,9 @@ public class CompiereTabbedPaneUI extends MetalTabbedPaneUI
{
int tabCount = tabPane.getTabCount();
int currentRun = getRunForTab( tabCount, tabIndex );
@SuppressWarnings("unused")
int lastIndex = lastTabInRun( tabCount, currentRun );
@SuppressWarnings("unused")
int firstIndex = tabRuns[ currentRun ];
g.translate( x, y );
@ -767,7 +769,9 @@ public class CompiereTabbedPaneUI extends MetalTabbedPaneUI
{
int tabCount = tabPane.getTabCount();
int currentRun = getRunForTab( tabCount, tabIndex );
@SuppressWarnings("unused")
int lastIndex = lastTabInRun( tabCount, currentRun );
@SuppressWarnings("unused")
int firstIndex = tabRuns[ currentRun ];
g.translate( x, y );

View File

@ -60,8 +60,7 @@ public class ContrastTheme extends DefaultMetalTheme
private final ColorUIResource secondary3
= new ColorUIResource (255, 255, 255);
private final ColorUIResource controlHighlight
= new ColorUIResource (102, 102, 102);
//private final ColorUIResource controlHighlight = new ColorUIResource (102, 102, 102);
protected ColorUIResource getPrimary1 ()
{
@ -137,6 +136,7 @@ public class ContrastTheme extends DefaultMetalTheme
{
Border blackLineBorder = new BorderUIResource
(new LineBorder(getBlack ()));
@SuppressWarnings("unused")
Border whiteLineBorder = new BorderUIResource(
new LineBorder(getWhite()));
//

View File

@ -99,7 +99,9 @@ public class CashSubFunctions extends PosQuery implements ActionListener, InputM
private CButton f_calculateDifference = null;
private CPanel panel;
@SuppressWarnings("unused")
private CScrollPane centerScroll;
@SuppressWarnings("unused")
private ConfirmPanel confirm;
private Properties p_ctx;
@ -455,6 +457,7 @@ public class CashSubFunctions extends PosQuery implements ActionListener, InputM
*/
private void cmd_saveChange()
{
@SuppressWarnings("unused")
MCashBook cashBook = new MCashBook(p_ctx, p_pos.getC_CashBook_ID(), null);
Timestamp today = TimeUtil.getDay(System.currentTimeMillis());

View File

@ -52,6 +52,7 @@ public class PosApplication {
System.exit(1);
MSession.get (Env.getCtx(), true); // Start Session
@SuppressWarnings("unused")
int m_WindowNo = AEnv.createWindowNo(frame);
// Default Image

View File

@ -417,7 +417,7 @@ public class PosPayment extends CDialog implements PosKeyListener, VetoableChang
boolean cash = MPayment.TENDERTYPE_Cash.equals(tenderType);
boolean check = MPayment.TENDERTYPE_Check.equals(tenderType);
boolean creditcard = MPayment.TENDERTYPE_CreditCard.equals(tenderType);
boolean account = MPayment.TENDERTYPE_Account.equals(tenderType);
//boolean account = MPayment.TENDERTYPE_Account.equals(tenderType);
fTenderAmt.setVisible(cash);
fReturnAmt.setVisible(cash);

View File

@ -31,6 +31,7 @@ public class PosTextField extends JFormattedTextField implements MouseListener {
*
*/
private static final long serialVersionUID = -2453719110038264481L;
@SuppressWarnings("unused")
private DefaultFormatterFactory formatFactory = new DefaultFormatterFactory();
PosBasePanel pos = null;
int keyLayoutId = 0;

View File

@ -165,6 +165,7 @@ public class QueryBPartner extends PosQuery
// Center
m_table = new PosTable();
@SuppressWarnings("unused")
String sql = m_table.prepareTable (s_layout, s_sqlFrom,
s_sqlWhere, false, "RV_BPartner")
+ " ORDER BY Value";

View File

@ -154,6 +154,7 @@ public class QueryProduct extends PosQuery
// Center
m_table = new PosTable();
@SuppressWarnings("unused")
String sql = m_table.prepareTable (s_layout, s_sqlFrom,
s_sqlWhere, false, "RV_WarehousePrice")
+ " ORDER BY Margin, QtyAvailable";

View File

@ -141,6 +141,7 @@ public class QueryTicket extends PosQuery
// Center
m_table = new PosTable();
@SuppressWarnings("unused")
String sql = m_table.prepareTable (s_layout, "C_Order",
"C_POS_ID = " + p_pos.getC_POS_ID()
, false, "C_Order")

View File

@ -46,8 +46,9 @@ public class SubFunctionKeys extends PosSubPanel implements PosKeyListener
} // PosSubFunctionKeys
/** Keys */
private MPOSKey[] m_keys;
//private MPOSKey[] m_keys;
/** Logger */
@SuppressWarnings("unused")
private static CLogger log = CLogger.getCLogger(SubFunctionKeys.class);
/**

View File

@ -82,7 +82,7 @@ public class SubOrder extends PosSubPanel
private CButton f_history;
private PosTextField f_name;
private CButton f_bNew;
private CButton f_bSearch;
//private CButton f_bSearch;
private CComboBox f_location;
private CComboBox f_user;
private CButton f_process;
@ -438,6 +438,7 @@ public class SubOrder extends PosSubPanel
/**
* Fill Combos (Location, User)
*/
@SuppressWarnings("unused")
private void fillCombos()
{
Vector<KeyNamePair> locationVector = new Vector<KeyNamePair>();

View File

@ -231,6 +231,7 @@ public class AReport implements ActionListener
ProcessInfo pi = new ProcessInfo ("", pf.getJasperProcess_ID(), pf.getAD_Table_ID(), Record_ID);
// Execute Process
@SuppressWarnings("unused")
ProcessCtl worker = ClientProcessCtrl.process(parent, WindowNo, pi, null);
}
else

View File

@ -60,6 +60,7 @@ public class CPrinter extends CComboBox implements ActionListener
/** Logger */
@SuppressWarnings("unused")
private static CLogger log = CLogger.getCLogger (CPrinter.class);

View File

@ -29,6 +29,7 @@ import javax.swing.table.TableCellRenderer;
public class TableCellNone implements TableCellEditor, TableCellRenderer {
private Object m_value;
@SuppressWarnings("unused")
private String m_columnName;
public TableCellNone(String columnName) {

View File

@ -71,7 +71,9 @@ public class TreeSearchPanel extends Panel implements EventListener<Event>, Tree
private Tree tree;
private String eventToFire;
@SuppressWarnings("unused")
private int m_windowno = 0;
@SuppressWarnings("unused")
private int m_tabno = 0;
private Treeitem selectedItem;

View File

@ -38,11 +38,6 @@ import org.compiere.util.Msg;
*/
public class Charge
{
/**
*
*/
private static final long serialVersionUID = 2478440763968206819L;
/** Window No */
public int m_WindowNo = 0;
// /** FormFrame */

View File

@ -150,7 +150,6 @@ public class AdvertisementServlet extends HttpServlet
ad.setDescription(Description);
info.append("Description - ");
}
String ImageURL = null;
String AdText = WebUtil.getParameter (request, "AdText");
if (AdText != null && AdText.length() > 0 && !AdText.equals(ad.getAdText()))
{

View File

@ -105,6 +105,7 @@ public class BasketServlet extends HttpServlet
{
log.info("From " + request.getRemoteHost() + " - " + request.getRemoteAddr()
+ " - " + request.getRequestURL());
@SuppressWarnings("unused")
Properties ctx = JSPEnv.getCtx(request);
HttpSession session = request.getSession(true);
session.removeAttribute(WebSessionCtx.HDR_MESSAGE);

View File

@ -142,6 +142,7 @@ public class CheckOutServlet extends HttpServlet
throws ServletException, IOException
{
log.info("Post from " + request.getRemoteHost() + " - " + request.getRemoteAddr());
@SuppressWarnings("unused")
HttpSession session = request.getSession(false);
} // doPost

View File

@ -123,7 +123,6 @@ public class Counter extends HttpServlet implements Runnable
*/
public void run()
{
long time = System.currentTimeMillis();
// get Request
HttpServletRequest request = null;
if (m_requests.size() > 0)
@ -134,6 +133,7 @@ public class Counter extends HttpServlet implements Runnable
return;
}
@SuppressWarnings("unused")
Properties ctx = JSPEnv.getCtx(request);
String ref = request.getHeader("referer");
if (ref == null || ref.length() == 0)

View File

@ -123,6 +123,7 @@ public class ExpenseServlet extends HttpServlet
HttpSession session = request.getSession(true);
session.removeAttribute(WebSessionCtx.HDR_MESSAGE);
//
@SuppressWarnings("unused")
Properties ctx = JSPEnv.getCtx(request);
WebUser wu = (WebUser)session.getAttribute(WebUser.NAME);
if (wu == null)

View File

@ -102,6 +102,7 @@ public class InfoServlet extends HttpServlet
// WEnv.dump(session);
// WEnv.dump(request);
@SuppressWarnings("unused")
boolean success = processParameter(request);
String url = "/info.jsp";
@ -182,6 +183,7 @@ public class InfoServlet extends HttpServlet
private void sendEMail (HttpServletRequest request, WebUser wu,
String listName, boolean subscribe)
{
@SuppressWarnings("unused")
String msg = JSPEnv.sendEMail(request, wu,
subscribe ? MMailMsg.MAILMSGTYPE_Subscribe : MMailMsg.MAILMSGTYPE_UnSubscribe,
new Object[]{listName, wu.getName(), listName});

View File

@ -94,6 +94,7 @@ public class IssueReportServlet extends HttpServlet
{
log.info("From " + request.getRemoteHost() + " - " + request.getRemoteAddr());
Properties ctx = JSPEnv.getCtx(request);
@SuppressWarnings("unused")
HttpSession session = request.getSession(true);
// WEnv.dump(session);
// WEnv.dump(request);

View File

@ -107,7 +107,8 @@ public class LocationServlet extends HttpServlet
throws ServletException, IOException
{
log.info("From " + request.getRemoteHost() + " - " + request.getRemoteAddr());
HttpSession session = request.getSession(true);
@SuppressWarnings("unused")
HttpSession session = request.getSession(true);
Properties ctx = JSPEnv.getCtx(request);
MLocation loc = new MLocation (ctx, 0, null);
response.setHeader("Cache-Control", "no-cache");

View File

@ -68,7 +68,7 @@ public class LocationTag extends TagSupport
// CSS Classes
private static final String C_MANDATORY = "mandatory";
private static final String C_ERROR = "error";
//private static final String C_ERROR = "error";
/**
* Set Country

View File

@ -65,6 +65,7 @@ public class PriceListProduct
/** Attribute Name */
public static final String NAME = "PriceListProduct";
/** Logging */
@SuppressWarnings("unused")
private CLogger log = CLogger.getCLogger(getClass());
private int m_Product_ID;

View File

@ -140,6 +140,7 @@ public class RegistrationServlet extends HttpServlet
if (startDate == null)
startDate = new Timestamp(System.currentTimeMillis());
boolean allowPublish = WebUtil.getParameterAsBoolean (request, "IsAllowPublish", "Y");
@SuppressWarnings("unused")
boolean registered = WebUtil.getParameterAsBoolean (request, "IsRegistered", "Y");
int Record_ID = WebUtil.getParameterAsInt(request, "Record_ID");

View File

@ -110,6 +110,7 @@ public class RequestOrderRefTag extends TagSupport
*/
private option[] getOrders(int C_BPartner_ID)
{
@SuppressWarnings("unused")
Properties ctx = JSPEnv.getCtx((HttpServletRequest)pageContext.getRequest());
ArrayList<option> list = new ArrayList<option>();
// Optional Element

Some files were not shown because too many files have changed in this diff Show More