diff --git a/org.adempiere.base.process/src/org/compiere/process/InfoWindowValidate.java b/org.adempiere.base.process/src/org/compiere/process/InfoWindowValidate.java
index 5783363e96..890c398ff8 100644
--- a/org.adempiere.base.process/src/org/compiere/process/InfoWindowValidate.java
+++ b/org.adempiere.base.process/src/org/compiere/process/InfoWindowValidate.java
@@ -25,6 +25,7 @@ package org.compiere.process;
public class InfoWindowValidate extends SvrProcess
{
/** Info Window */
+ @SuppressWarnings("unused")
private int p_AD_InfoWindow_ID = 0;
/**
diff --git a/org.adempiere.base/src/org/compiere/db/TestConnection.java b/org.adempiere.base/src/org/compiere/db/TestConnection.java
index 30f6537d22..83c7f94ec2 100644
--- a/org.adempiere.base/src/org/compiere/db/TestConnection.java
+++ b/org.adempiere.base/src/org/compiere/db/TestConnection.java
@@ -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
diff --git a/org.adempiere.base/src/org/compiere/db/TestEJB.java b/org.adempiere.base/src/org/compiere/db/TestEJB.java
index 899241a2ac..c631a2a4f0 100644
--- a/org.adempiere.base/src/org/compiere/db/TestEJB.java
+++ b/org.adempiere.base/src/org/compiere/db/TestEJB.java
@@ -61,6 +61,7 @@ public class TestEJB
//
try
{
+ @SuppressWarnings("unused")
Status status = (Status)ic.lookup ("Status");
//
}
diff --git a/org.adempiere.base/src/org/compiere/model/AccessSqlParserTest.java b/org.adempiere.base/src/org/compiere/model/AccessSqlParserTest.java
index dae566bbbc..d40896d020 100644
--- a/org.adempiere.base/src/org/compiere/model/AccessSqlParserTest.java
+++ b/org.adempiere.base/src/org/compiere/model/AccessSqlParserTest.java
@@ -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);
- }
+ }*/
/**
*
teo_sarca - [ 1652623 ] AccessSqlParser.getTableInfo(String) - tablename parsing bug
diff --git a/org.adempiere.base/src/org/compiere/util/AmtInWords_IN.java b/org.adempiere.base/src/org/compiere/util/AmtInWords_IN.java
index a34bd0c9e6..d758524bcf 100644
--- a/org.adempiere.base/src/org/compiere/util/AmtInWords_IN.java
+++ b/org.adempiere.base/src/org/compiere/util/AmtInWords_IN.java
@@ -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 --------------------------
diff --git a/org.adempiere.base/src/org/compiere/wf/MWorkflow.java b/org.adempiere.base/src/org/compiere/wf/MWorkflow.java
index 1afd575325..c84cb5917b 100644
--- a/org.adempiere.base/src/org/compiere/wf/MWorkflow.java
+++ b/org.adempiere.base/src/org/compiere/wf/MWorkflow.java
@@ -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 list, int AD_WF_Node_ID, int AD_Client_ID)
+ /*private void addNodesDF (ArrayList 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
diff --git a/org.adempiere.base/src/org/eevolution/model/MDDOrder.java b/org.adempiere.base/src/org/eevolution/model/MDDOrder.java
index 8f1d508765..64051b3fdb 100644
--- a/org.adempiere.base/src/org/eevolution/model/MDDOrder.java
+++ b/org.adempiere.base/src/org/eevolution/model/MDDOrder.java
@@ -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
diff --git a/org.adempiere.base/src/org/eevolution/model/MDDOrderLine.java b/org.adempiere.base/src/org/eevolution/model/MDDOrderLine.java
index 8b465fbba9..b6ea792e48 100644
--- a/org.adempiere.base/src/org/eevolution/model/MDDOrderLine.java
+++ b/org.adempiere.base/src/org/eevolution/model/MDDOrderLine.java
@@ -89,6 +89,7 @@ public class MDDOrderLine extends X_DD_OrderLine
} // getNotReserved
/** Logger */
+ @SuppressWarnings("unused")
private static CLogger s_log = CLogger.getCLogger (MDDOrderLine.class);
/**************************************************************************
diff --git a/org.adempiere.base/src/org/eevolution/process/ExportFormatGenerator.java b/org.adempiere.base/src/org/eevolution/process/ExportFormatGenerator.java
index 174e8ee7f9..343cfeaa7b 100644
--- a/org.adempiere.base/src/org/eevolution/process/ExportFormatGenerator.java
+++ b/org.adempiere.base/src/org/eevolution/process/ExportFormatGenerator.java
@@ -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;
}
diff --git a/org.adempiere.base/src/org/eevolution/process/ImportInventoryMove.java b/org.adempiere.base/src/org/eevolution/process/ImportInventoryMove.java
index 3d9faf9686..771b0b8057 100644
--- a/org.adempiere.base/src/org/eevolution/process/ImportInventoryMove.java
+++ b/org.adempiere.base/src/org/eevolution/process/ImportInventoryMove.java
@@ -104,7 +104,6 @@ public class ImportInventoryMove extends SvrProcess
{
// Delete Old Imported
- StringBuffer sql = null;
if (m_DeleteOldImported)
{
int no = 0;
diff --git a/org.adempiere.extend/src/test/functional/MBPGroupTest.java b/org.adempiere.extend/src/test/functional/MBPGroupTest.java
index 2a67d1b7e0..0d9a677399 100644
--- a/org.adempiere.extend/src/test/functional/MBPGroupTest.java
+++ b/org.adempiere.extend/src/test/functional/MBPGroupTest.java
@@ -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
/*
diff --git a/org.adempiere.extend/src/test/functional/MBPartnerTest.java b/org.adempiere.extend/src/test/functional/MBPartnerTest.java
index 66de373ebf..5d34b8487c 100644
--- a/org.adempiere.extend/src/test/functional/MBPartnerTest.java
+++ b/org.adempiere.extend/src/test/functional/MBPartnerTest.java
@@ -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
diff --git a/org.adempiere.extend/src/test/functional/MCurrencyAcctTest.java b/org.adempiere.extend/src/test/functional/MCurrencyAcctTest.java
index f3b7295925..d240bac759 100644
--- a/org.adempiere.extend/src/test/functional/MCurrencyAcctTest.java
+++ b/org.adempiere.extend/src/test/functional/MCurrencyAcctTest.java
@@ -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
diff --git a/org.adempiere.extend/src/test/functional/MUserTest.java b/org.adempiere.extend/src/test/functional/MUserTest.java
index 97349a600c..b94e5ccc67 100644
--- a/org.adempiere.extend/src/test/functional/MUserTest.java
+++ b/org.adempiere.extend/src/test/functional/MUserTest.java
@@ -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
diff --git a/org.adempiere.extend/src/test/functional/TrifonTest.java b/org.adempiere.extend/src/test/functional/TrifonTest.java
index 505c00444c..52ff02f939 100644
--- a/org.adempiere.extend/src/test/functional/TrifonTest.java
+++ b/org.adempiere.extend/src/test/functional/TrifonTest.java
@@ -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));
diff --git a/org.adempiere.replication.server/src/org/compiere/server/ReplicationProcessor.java b/org.adempiere.replication.server/src/org/compiere/server/ReplicationProcessor.java
index a82b582023..0ffc4c2a5f 100644
--- a/org.adempiere.replication.server/src/org/compiere/server/ReplicationProcessor.java
+++ b/org.adempiere.replication.server/src/org/compiere/server/ReplicationProcessor.java
@@ -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;
diff --git a/org.adempiere.report.jasper.swing/src/org/compiere/report/JasperReportViewer.java b/org.adempiere.report.jasper.swing/src/org/compiere/report/JasperReportViewer.java
index b1163107c3..d283f39bda 100644
--- a/org.adempiere.report.jasper.swing/src/org/compiere/report/JasperReportViewer.java
+++ b/org.adempiere.report.jasper.swing/src/org/compiere/report/JasperReportViewer.java
@@ -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);
diff --git a/org.adempiere.server/src/main/servlet/org/compiere/web/AdempiereMonitorFilter.java b/org.adempiere.server/src/main/servlet/org/compiere/web/AdempiereMonitorFilter.java
index edade6ef8e..ca89fa5e92 100644
--- a/org.adempiere.server/src/main/servlet/org/compiere/web/AdempiereMonitorFilter.java
+++ b/org.adempiere.server/src/main/servlet/org/compiere/web/AdempiereMonitorFilter.java
@@ -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
diff --git a/org.adempiere.ui.swing/src/org/adempiere/apps/graph/Graph.java b/org.adempiere.ui.swing/src/org/adempiere/apps/graph/Graph.java
index ed1ba7adbc..db561fbcdd 100644
--- a/org.adempiere.ui.swing/src/org/adempiere/apps/graph/Graph.java
+++ b/org.adempiere.ui.swing/src/org/adempiere/apps/graph/Graph.java
@@ -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;
diff --git a/org.adempiere.ui.swing/src/org/adempiere/apps/graph/GraphUtil.java b/org.adempiere.ui.swing/src/org/adempiere/apps/graph/GraphUtil.java
index a03826ba7b..c9830b23b6 100644
--- a/org.adempiere.ui.swing/src/org/adempiere/apps/graph/GraphUtil.java
+++ b/org.adempiere.ui.swing/src/org/adempiere/apps/graph/GraphUtil.java
@@ -30,6 +30,7 @@ import org.compiere.util.CLogger;
public class GraphUtil
{
/** Logger */
+ @SuppressWarnings("unused")
private static CLogger log = CLogger.getCLogger (GraphUtil.class);
/**
diff --git a/org.adempiere.ui.swing/src/org/adempiere/apps/graph/PerformanceIndicator.java b/org.adempiere.ui.swing/src/org/adempiere/apps/graph/PerformanceIndicator.java
index 0f94b501a7..8760be95f7 100644
--- a/org.adempiere.ui.swing/src/org/adempiere/apps/graph/PerformanceIndicator.java
+++ b/org.adempiere.ui.swing/src/org/adempiere/apps/graph/PerformanceIndicator.java
@@ -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);
diff --git a/org.adempiere.ui.swing/src/org/adempiere/apps/graph/ViewPI.java b/org.adempiere.ui.swing/src/org/adempiere/apps/graph/ViewPI.java
index 8a01653933..67d10a603f 100644
--- a/org.adempiere.ui.swing/src/org/adempiere/apps/graph/ViewPI.java
+++ b/org.adempiere.ui.swing/src/org/adempiere/apps/graph/ViewPI.java
@@ -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++)
diff --git a/org.adempiere.ui.swing/src/org/adempiere/plaf/AdempiereTabbedPaneUI.java b/org.adempiere.ui.swing/src/org/adempiere/plaf/AdempiereTabbedPaneUI.java
index 4351165ddf..9a73824294 100644
--- a/org.adempiere.ui.swing/src/org/adempiere/plaf/AdempiereTabbedPaneUI.java
+++ b/org.adempiere.ui.swing/src/org/adempiere/plaf/AdempiereTabbedPaneUI.java
@@ -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) {
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/AApplet.java b/org.adempiere.ui.swing/src/org/compiere/apps/AApplet.java
index 06515339d2..bd872c4386 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/AApplet.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/AApplet.java
@@ -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
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/AChat.java b/org.adempiere.ui.swing/src/org/compiere/apps/AChat.java
index f2e2bc4b35..08be3c0407 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/AChat.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/AChat.java
@@ -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);
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/ADialog.java b/org.adempiere.ui.swing/src/org/compiere/apps/ADialog.java
index d1effbe047..c2aeb7fb26 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/ADialog.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/ADialog.java
@@ -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);
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/AFocusTraversalPolicy.java b/org.adempiere.ui.swing/src/org/compiere/apps/AFocusTraversalPolicy.java
index ae8afb1064..656c16ff77 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/AFocusTraversalPolicy.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/AFocusTraversalPolicy.java
@@ -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
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/AMenu.java b/org.adempiere.ui.swing/src/org/compiere/apps/AMenu.java
index 5c14a1df1c..ea0de00648 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/AMenu.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/AMenu.java
@@ -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;
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/APanel.java b/org.adempiere.ui.swing/src/org/compiere/apps/APanel.java
index c0ba72a268..d536657b1f 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/APanel.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/APanel.java
@@ -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;
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/AWindowListener.java b/org.adempiere.ui.swing/src/org/compiere/apps/AWindowListener.java
index 1e794f9aa7..a993779225 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/AWindowListener.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/AWindowListener.java
@@ -51,6 +51,7 @@ public class AWindowListener extends WindowAdapter
} // AWindowListener
/** The Window */
+ @SuppressWarnings("unused")
private Window m_window;
/** The Listener */
private WindowStateListener m_listener;
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/Attachment.java b/org.adempiere.ui.swing/src/org/compiere/apps/Attachment.java
index 8610928d59..588a575c62 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/Attachment.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/Attachment.java
@@ -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;
}
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/BeanShellEditor.java b/org.adempiere.ui.swing/src/org/compiere/apps/BeanShellEditor.java
index 3f5cff80ef..609402c6fe 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/BeanShellEditor.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/BeanShellEditor.java
@@ -64,6 +64,7 @@ public class BeanShellEditor extends CDialog implements ActionListener
*
*/
private static final long serialVersionUID = -5134274235147001140L;
+ @SuppressWarnings("unused")
private Frame m_owner;
/**
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/GroovyEditor.java b/org.adempiere.ui.swing/src/org/compiere/apps/GroovyEditor.java
index 53a781855e..0a82dfc54d 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/GroovyEditor.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/GroovyEditor.java
@@ -54,6 +54,7 @@ public class GroovyEditor extends CDialog implements ActionListener
*
*/
private static final long serialVersionUID = 2941209813417292930L;
+ @SuppressWarnings("unused")
private Frame m_owner;
/**
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/OnlineHelp.java b/org.adempiere.ui.swing/src/org/compiere/apps/OnlineHelp.java
index 31528c3228..60c6942505 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/OnlineHelp.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/OnlineHelp.java
@@ -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
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/Preference.java b/org.adempiere.ui.swing/src/org/compiere/apps/Preference.java
index 90851c482e..fc5d4ca215 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/Preference.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/Preference.java
@@ -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()),
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/ScriptEditor.java b/org.adempiere.ui.swing/src/org/compiere/apps/ScriptEditor.java
index ff8f39f790..6bc964757f 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/ScriptEditor.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/ScriptEditor.java
@@ -62,6 +62,7 @@ public class ScriptEditor
}
else
{
+ @SuppressWarnings("unused")
BeanShellEditor se = new BeanShellEditor (owner, header, scr, WindowNo);
return scr.getScript();
}
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/TabSwitcher.java b/org.adempiere.ui.swing/src/org/compiere/apps/TabSwitcher.java
index 5462befb9a..bcb7f6bb7a 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/TabSwitcher.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/TabSwitcher.java
@@ -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;
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/Waiting.java b/org.adempiere.ui.swing/src/org/compiere/apps/Waiting.java
index d3d5750900..481fbaa625 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/Waiting.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/Waiting.java
@@ -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();
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/form/ArchiveViewer.java b/org.adempiere.ui.swing/src/org/compiere/apps/form/ArchiveViewer.java
index 1dcaf9b80c..5ee5138929 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/form/ArchiveViewer.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/form/ArchiveViewer.java
@@ -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();
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/form/VAllocation.java b/org.adempiere.ui.swing/src/org/compiere/apps/form/VAllocation.java
index 4e24551abf..d712224ed4 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/form/VAllocation.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/form/VAllocation.java
@@ -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);
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/form/VAttributeGrid.java b/org.adempiere.ui.swing/src/org/compiere/apps/form/VAttributeGrid.java
index 8750d44a18..f5cb28274c 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/form/VAttributeGrid.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/form/VAttributeGrid.java
@@ -125,6 +125,7 @@ public class VAttributeGrid extends CPanel
} // init
/** Window No */
+ @SuppressWarnings("unused")
private int m_WindowNo = 0;
/** FormFrame */
private FormFrame m_frame;
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/form/VBOMDrop.java b/org.adempiere.ui.swing/src/org/compiere/apps/form/VBOMDrop.java
index a9cba41828..fb9a962523 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/form/VBOMDrop.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/form/VBOMDrop.java
@@ -142,6 +142,7 @@ public class VBOMDrop extends CPanel
} // dispose
/** Window No */
+ @SuppressWarnings("unused")
private int m_WindowNo = 0;
/** FormFrame */
private FormFrame m_frame;
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/form/VSQLProcess.java b/org.adempiere.ui.swing/src/org/compiere/apps/form/VSQLProcess.java
index dfb076bceb..5119a63ba7 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/form/VSQLProcess.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/form/VSQLProcess.java
@@ -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)
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/search/FindCellEditor.java b/org.adempiere.ui.swing/src/org/compiere/apps/search/FindCellEditor.java
index cd2118b163..351a80bbc3 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/search/FindCellEditor.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/search/FindCellEditor.java
@@ -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);
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/search/InfoInvoice.java b/org.adempiere.ui.swing/src/org/compiere/apps/search/InfoInvoice.java
index aab7318666..64c153459b 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/search/InfoInvoice.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/search/InfoInvoice.java
@@ -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"));
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/search/InfoOrder.java b/org.adempiere.ui.swing/src/org/compiere/apps/search/InfoOrder.java
index 7480d1e22f..a09e403327 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/search/InfoOrder.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/search/InfoOrder.java
@@ -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"));
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/search/InfoPayment.java b/org.adempiere.ui.swing/src/org/compiere/apps/search/InfoPayment.java
index 110b872a4f..d31fef26cd 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/search/InfoPayment.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/search/InfoPayment.java
@@ -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"));
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/search/VSchedulePanel.java b/org.adempiere.ui.swing/src/org/compiere/apps/search/VSchedulePanel.java
index 83dfcb49ab..931af10cfb 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/search/VSchedulePanel.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/search/VSchedulePanel.java
@@ -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());
diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/wf/WFPanel.java b/org.adempiere.ui.swing/src/org/compiere/apps/wf/WFPanel.java
index 4ca66714e0..087f0c25e3 100644
--- a/org.adempiere.ui.swing/src/org/compiere/apps/wf/WFPanel.java
+++ b/org.adempiere.ui.swing/src/org/compiere/apps/wf/WFPanel.java
@@ -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 added = new ArrayList();
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]);
}
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/GridSynchronizer.java b/org.adempiere.ui.swing/src/org/compiere/grid/GridSynchronizer.java
index 45d9a422f1..7ec5fef1f6 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/GridSynchronizer.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/GridSynchronizer.java
@@ -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;
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/VPanel.java b/org.adempiere.ui.swing/src/org/compiere/grid/VPanel.java
index bbf6838c86..25300dbbc9 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/VPanel.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/VPanel.java
@@ -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;
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/VPayment.java b/org.adempiere.ui.swing/src/org/compiere/grid/VPayment.java
index 56575f831d..84969baa95 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/VPayment.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/VPayment.java
@@ -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;
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/ADempiereAutoCompleteDecorator.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/ADempiereAutoCompleteDecorator.java
index 1da652f5cd..13e30a97eb 100755
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/ADempiereAutoCompleteDecorator.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/ADempiereAutoCompleteDecorator.java
@@ -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();
}
});
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/AutoCompleter.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/AutoCompleter.java
index 87dbb5473d..3a0bc14c01 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/AutoCompleter.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/AutoCompleter.java
@@ -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;
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/ComboSelectionManager.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/ComboSelectionManager.java
index 618148d4d0..0abe8cebf8 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/ComboSelectionManager.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/ComboSelectionManager.java
@@ -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
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/HTMLEditor.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/HTMLEditor.java
index 47392e9458..be2261f4bf 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/HTMLEditor.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/HTMLEditor.java
@@ -415,6 +415,7 @@ public class HTMLEditor extends CDialog
try
{
+ @SuppressWarnings("unused")
EditorKit kit = editorPane.getEditorKit();
OutputStreamWriter writer = new OutputStreamWriter
(new FileOutputStream (jc.getSelectedFile()));
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/MDocDate.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/MDocDate.java
index 6a293026aa..0b1d3f3d5a 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/MDocDate.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/MDocDate.java
@@ -270,6 +270,7 @@ public final class MDocDate extends PlainDocument implements CaretListener
/**
* Call Calendar Dialog
*/
+ @SuppressWarnings("unused")
private void startDateDialog()
{
log.config("");
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VAccountDialog.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VAccountDialog.java
index d33f13f3d8..6e5d986a3e 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VAccountDialog.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VAccountDialog.java
@@ -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())
{
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VBinary.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VBinary.java
index ad8d062893..e78c6fc3f9 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VBinary.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VBinary.java
@@ -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;
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VButton.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VButton.java
index 0677ff5f54..8a9578a629 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VButton.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VButton.java
@@ -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 m_values = null;
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VCellEditor.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VCellEditor.java
index db7f2fd2a9..3b76556732 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VCellEditor.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VCellEditor.java
@@ -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 */
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VFile.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VFile.java
index e348291b48..9da3777993 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VFile.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VFile.java
@@ -74,6 +74,7 @@ public class VFile extends JComponent
m_adaptee = adaptee;
} // VLookup_mouseAdapter
+ @SuppressWarnings("unused")
private VFile m_adaptee;
/**
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VLine.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VLine.java
index bba08f7ebe..e7baf28b0c 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VLine.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VLine.java
@@ -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())
{
}
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VLocation.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VLocation.java
index 26d2bb5f3a..55a21b8d5f 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VLocation.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VLocation.java
@@ -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
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VLocatorDialog.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VLocatorDialog.java
index 10790657f7..7811783123 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VLocatorDialog.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VLocatorDialog.java
@@ -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);
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VLookup.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VLookup.java
index 9c970ab95e..5d619f550e 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VLookup.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VLookup.java
@@ -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
*/
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VOvrCaret.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VOvrCaret.java
index a42a57127a..d243603617 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VOvrCaret.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VOvrCaret.java
@@ -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;
//
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VPaymentEditor.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VPaymentEditor.java
index 957fd8fec2..c9cbfc06e3 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VPaymentEditor.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VPaymentEditor.java
@@ -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 = "";
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VURL.java b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VURL.java
index fcd29700f8..4e382ed40b 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/ed/VURL.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/ed/VURL.java
@@ -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;
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/tree/AdempiereTreeModel.java b/org.adempiere.ui.swing/src/org/compiere/grid/tree/AdempiereTreeModel.java
index c716d3c92d..9defc48ce1 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/tree/AdempiereTreeModel.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/tree/AdempiereTreeModel.java
@@ -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++)
{
diff --git a/org.adempiere.ui.swing/src/org/compiere/grid/tree/VTreePanel.java b/org.adempiere.ui.swing/src/org/compiere/grid/tree/VTreePanel.java
index c416461bfc..576006c4cb 100644
--- a/org.adempiere.ui.swing/src/org/compiere/grid/tree/VTreePanel.java
+++ b/org.adempiere.ui.swing/src/org/compiere/grid/tree/VTreePanel.java
@@ -335,7 +335,7 @@ public final class VTreePanel extends CPanel
private JXTaskPaneContainer bar = new JXTaskPaneContainer();
private java.util.List toolbar;
private HashMap 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;
diff --git a/org.adempiere.ui.swing/src/org/compiere/install/VTranslationDialog.java b/org.adempiere.ui.swing/src/org/compiere/install/VTranslationDialog.java
index e7024709d2..25e50600a0 100644
--- a/org.adempiere.ui.swing/src/org/compiere/install/VTranslationDialog.java
+++ b/org.adempiere.ui.swing/src/org/compiere/install/VTranslationDialog.java
@@ -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();
diff --git a/org.adempiere.ui.swing/src/org/compiere/plaf/CompiereTabbedPaneUI.java b/org.adempiere.ui.swing/src/org/compiere/plaf/CompiereTabbedPaneUI.java
index 24f98062a1..09a9f75378 100644
--- a/org.adempiere.ui.swing/src/org/compiere/plaf/CompiereTabbedPaneUI.java
+++ b/org.adempiere.ui.swing/src/org/compiere/plaf/CompiereTabbedPaneUI.java
@@ -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 );
diff --git a/org.adempiere.ui.swing/src/org/compiere/plaf/ContrastTheme.java b/org.adempiere.ui.swing/src/org/compiere/plaf/ContrastTheme.java
index b207e0b249..8a95b91166 100644
--- a/org.adempiere.ui.swing/src/org/compiere/plaf/ContrastTheme.java
+++ b/org.adempiere.ui.swing/src/org/compiere/plaf/ContrastTheme.java
@@ -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()));
//
diff --git a/org.adempiere.ui.swing/src/org/compiere/pos/CashSubFunctions.java b/org.adempiere.ui.swing/src/org/compiere/pos/CashSubFunctions.java
index 61908c3426..5de8930b67 100644
--- a/org.adempiere.ui.swing/src/org/compiere/pos/CashSubFunctions.java
+++ b/org.adempiere.ui.swing/src/org/compiere/pos/CashSubFunctions.java
@@ -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());
diff --git a/org.adempiere.ui.swing/src/org/compiere/pos/PosApplication.java b/org.adempiere.ui.swing/src/org/compiere/pos/PosApplication.java
index fe51cff6d7..8c97cb7a3f 100644
--- a/org.adempiere.ui.swing/src/org/compiere/pos/PosApplication.java
+++ b/org.adempiere.ui.swing/src/org/compiere/pos/PosApplication.java
@@ -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
diff --git a/org.adempiere.ui.swing/src/org/compiere/pos/PosPayment.java b/org.adempiere.ui.swing/src/org/compiere/pos/PosPayment.java
index f4f06f4cfe..7c0279aa41 100644
--- a/org.adempiere.ui.swing/src/org/compiere/pos/PosPayment.java
+++ b/org.adempiere.ui.swing/src/org/compiere/pos/PosPayment.java
@@ -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);
diff --git a/org.adempiere.ui.swing/src/org/compiere/pos/PosTextField.java b/org.adempiere.ui.swing/src/org/compiere/pos/PosTextField.java
index a312f3ce25..ffc3871cf0 100644
--- a/org.adempiere.ui.swing/src/org/compiere/pos/PosTextField.java
+++ b/org.adempiere.ui.swing/src/org/compiere/pos/PosTextField.java
@@ -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;
diff --git a/org.adempiere.ui.swing/src/org/compiere/pos/QueryBPartner.java b/org.adempiere.ui.swing/src/org/compiere/pos/QueryBPartner.java
index 06135e5e7c..31e4b38da0 100644
--- a/org.adempiere.ui.swing/src/org/compiere/pos/QueryBPartner.java
+++ b/org.adempiere.ui.swing/src/org/compiere/pos/QueryBPartner.java
@@ -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";
diff --git a/org.adempiere.ui.swing/src/org/compiere/pos/QueryProduct.java b/org.adempiere.ui.swing/src/org/compiere/pos/QueryProduct.java
index 86a1160b85..50aaf2deb2 100644
--- a/org.adempiere.ui.swing/src/org/compiere/pos/QueryProduct.java
+++ b/org.adempiere.ui.swing/src/org/compiere/pos/QueryProduct.java
@@ -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";
diff --git a/org.adempiere.ui.swing/src/org/compiere/pos/QueryTicket.java b/org.adempiere.ui.swing/src/org/compiere/pos/QueryTicket.java
index 1c0c8969ba..b7657ff2f2 100644
--- a/org.adempiere.ui.swing/src/org/compiere/pos/QueryTicket.java
+++ b/org.adempiere.ui.swing/src/org/compiere/pos/QueryTicket.java
@@ -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")
diff --git a/org.adempiere.ui.swing/src/org/compiere/pos/SubFunctionKeys.java b/org.adempiere.ui.swing/src/org/compiere/pos/SubFunctionKeys.java
index c533e16347..b2f701b7b3 100644
--- a/org.adempiere.ui.swing/src/org/compiere/pos/SubFunctionKeys.java
+++ b/org.adempiere.ui.swing/src/org/compiere/pos/SubFunctionKeys.java
@@ -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);
/**
diff --git a/org.adempiere.ui.swing/src/org/compiere/pos/SubOrder.java b/org.adempiere.ui.swing/src/org/compiere/pos/SubOrder.java
index dd6318ae76..093e423a92 100644
--- a/org.adempiere.ui.swing/src/org/compiere/pos/SubOrder.java
+++ b/org.adempiere.ui.swing/src/org/compiere/pos/SubOrder.java
@@ -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 locationVector = new Vector();
diff --git a/org.adempiere.ui.swing/src/org/compiere/print/AReport.java b/org.adempiere.ui.swing/src/org/compiere/print/AReport.java
index 11bf64f7b0..846d6b2eae 100644
--- a/org.adempiere.ui.swing/src/org/compiere/print/AReport.java
+++ b/org.adempiere.ui.swing/src/org/compiere/print/AReport.java
@@ -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
diff --git a/org.adempiere.ui.swing/src/org/compiere/print/CPrinter.java b/org.adempiere.ui.swing/src/org/compiere/print/CPrinter.java
index d3fc14cd53..a0ed498158 100644
--- a/org.adempiere.ui.swing/src/org/compiere/print/CPrinter.java
+++ b/org.adempiere.ui.swing/src/org/compiere/print/CPrinter.java
@@ -60,6 +60,7 @@ public class CPrinter extends CComboBox implements ActionListener
/** Logger */
+ @SuppressWarnings("unused")
private static CLogger log = CLogger.getCLogger (CPrinter.class);
diff --git a/org.adempiere.ui.swing/src/org/compiere/swing/TableCellNone.java b/org.adempiere.ui.swing/src/org/compiere/swing/TableCellNone.java
index feb723ddaa..76dbf00034 100644
--- a/org.adempiere.ui.swing/src/org/compiere/swing/TableCellNone.java
+++ b/org.adempiere.ui.swing/src/org/compiere/swing/TableCellNone.java
@@ -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) {
diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/TreeSearchPanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/TreeSearchPanel.java
index 5778c05384..76125286c3 100644
--- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/TreeSearchPanel.java
+++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/TreeSearchPanel.java
@@ -71,7 +71,9 @@ public class TreeSearchPanel extends Panel implements EventListener, Tree
private Tree tree;
private String eventToFire;
+ @SuppressWarnings("unused")
private int m_windowno = 0;
+ @SuppressWarnings("unused")
private int m_tabno = 0;
private Treeitem selectedItem;
diff --git a/org.adempiere.ui/src/org/compiere/apps/form/Charge.java b/org.adempiere.ui/src/org/compiere/apps/form/Charge.java
index 96129af250..a4af4aac91 100644
--- a/org.adempiere.ui/src/org/compiere/apps/form/Charge.java
+++ b/org.adempiere.ui/src/org/compiere/apps/form/Charge.java
@@ -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 */
diff --git a/org.adempiere.webstore.servlet/src/org/compiere/wstore/AdvertisementServlet.java b/org.adempiere.webstore.servlet/src/org/compiere/wstore/AdvertisementServlet.java
index 3eff71b580..3a948668ea 100644
--- a/org.adempiere.webstore.servlet/src/org/compiere/wstore/AdvertisementServlet.java
+++ b/org.adempiere.webstore.servlet/src/org/compiere/wstore/AdvertisementServlet.java
@@ -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()))
{
diff --git a/org.adempiere.webstore.servlet/src/org/compiere/wstore/BasketServlet.java b/org.adempiere.webstore.servlet/src/org/compiere/wstore/BasketServlet.java
index b023a4f119..01bdfd5a70 100644
--- a/org.adempiere.webstore.servlet/src/org/compiere/wstore/BasketServlet.java
+++ b/org.adempiere.webstore.servlet/src/org/compiere/wstore/BasketServlet.java
@@ -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);
diff --git a/org.adempiere.webstore.servlet/src/org/compiere/wstore/CheckOutServlet.java b/org.adempiere.webstore.servlet/src/org/compiere/wstore/CheckOutServlet.java
index bb0c0302c5..4e206e46f7 100644
--- a/org.adempiere.webstore.servlet/src/org/compiere/wstore/CheckOutServlet.java
+++ b/org.adempiere.webstore.servlet/src/org/compiere/wstore/CheckOutServlet.java
@@ -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
diff --git a/org.adempiere.webstore.servlet/src/org/compiere/wstore/Counter.java b/org.adempiere.webstore.servlet/src/org/compiere/wstore/Counter.java
index a3a992475f..ee493a96e7 100644
--- a/org.adempiere.webstore.servlet/src/org/compiere/wstore/Counter.java
+++ b/org.adempiere.webstore.servlet/src/org/compiere/wstore/Counter.java
@@ -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)
diff --git a/org.adempiere.webstore.servlet/src/org/compiere/wstore/ExpenseServlet.java b/org.adempiere.webstore.servlet/src/org/compiere/wstore/ExpenseServlet.java
index 8ca8595663..aaa20b3191 100644
--- a/org.adempiere.webstore.servlet/src/org/compiere/wstore/ExpenseServlet.java
+++ b/org.adempiere.webstore.servlet/src/org/compiere/wstore/ExpenseServlet.java
@@ -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)
diff --git a/org.adempiere.webstore.servlet/src/org/compiere/wstore/InfoServlet.java b/org.adempiere.webstore.servlet/src/org/compiere/wstore/InfoServlet.java
index cdbafb0ea5..9338a9cb7f 100644
--- a/org.adempiere.webstore.servlet/src/org/compiere/wstore/InfoServlet.java
+++ b/org.adempiere.webstore.servlet/src/org/compiere/wstore/InfoServlet.java
@@ -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});
diff --git a/org.adempiere.webstore.servlet/src/org/compiere/wstore/IssueReportServlet.java b/org.adempiere.webstore.servlet/src/org/compiere/wstore/IssueReportServlet.java
index 2d6763ae78..438b64ff29 100644
--- a/org.adempiere.webstore.servlet/src/org/compiere/wstore/IssueReportServlet.java
+++ b/org.adempiere.webstore.servlet/src/org/compiere/wstore/IssueReportServlet.java
@@ -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);
diff --git a/org.adempiere.webstore.servlet/src/org/compiere/wstore/LocationServlet.java b/org.adempiere.webstore.servlet/src/org/compiere/wstore/LocationServlet.java
index 5c55c17f21..ef0d009614 100644
--- a/org.adempiere.webstore.servlet/src/org/compiere/wstore/LocationServlet.java
+++ b/org.adempiere.webstore.servlet/src/org/compiere/wstore/LocationServlet.java
@@ -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");
diff --git a/org.adempiere.webstore.servlet/src/org/compiere/wstore/LocationTag.java b/org.adempiere.webstore.servlet/src/org/compiere/wstore/LocationTag.java
index 70bf7eb98b..d991cf4285 100644
--- a/org.adempiere.webstore.servlet/src/org/compiere/wstore/LocationTag.java
+++ b/org.adempiere.webstore.servlet/src/org/compiere/wstore/LocationTag.java
@@ -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
diff --git a/org.adempiere.webstore.servlet/src/org/compiere/wstore/PriceListProduct.java b/org.adempiere.webstore.servlet/src/org/compiere/wstore/PriceListProduct.java
index 285e576b18..1fb5f671e5 100644
--- a/org.adempiere.webstore.servlet/src/org/compiere/wstore/PriceListProduct.java
+++ b/org.adempiere.webstore.servlet/src/org/compiere/wstore/PriceListProduct.java
@@ -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;
diff --git a/org.adempiere.webstore.servlet/src/org/compiere/wstore/RegistrationServlet.java b/org.adempiere.webstore.servlet/src/org/compiere/wstore/RegistrationServlet.java
index 4be20b973c..36b0e9eba3 100644
--- a/org.adempiere.webstore.servlet/src/org/compiere/wstore/RegistrationServlet.java
+++ b/org.adempiere.webstore.servlet/src/org/compiere/wstore/RegistrationServlet.java
@@ -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");
diff --git a/org.adempiere.webstore.servlet/src/org/compiere/wstore/RequestOrderRefTag.java b/org.adempiere.webstore.servlet/src/org/compiere/wstore/RequestOrderRefTag.java
index b96516a7c4..f04d39cbe6 100644
--- a/org.adempiere.webstore.servlet/src/org/compiere/wstore/RequestOrderRefTag.java
+++ b/org.adempiere.webstore.servlet/src/org/compiere/wstore/RequestOrderRefTag.java
@@ -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