IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (warning deprecated of constructer)

constructer with static value
This commit is contained in:
hieplq 2018-10-24 09:02:12 +07:00
parent 0a010a526d
commit b7aada7a1b
21 changed files with 34 additions and 34 deletions

View File

@ -3192,7 +3192,7 @@ public final class MRole extends X_AD_Role
+ " AND iwa.AD_Role_ID = ?";
int cntInactive = DB.getSQLValueEx(get_TrxName(), sqlInactive, I_M_Product.Table_ID, getAD_Role_ID());
if (cntInactive > 0)
m_canAccess_Info_Product = new Boolean(false);
m_canAccess_Info_Product = Boolean.FALSE;
}
}
return m_canAccess_Info_Product.booleanValue();

View File

@ -1632,17 +1632,17 @@ public abstract class PO
else if (colName.equals(p_info.getTableName() + "_ID")) // KeyColumn
m_newValues[i] = I_ZERO;
else if (colName.equals("IsActive"))
m_newValues[i] = new Boolean(true);
m_newValues[i] = Boolean.TRUE;
else if (colName.equals("AD_Client_ID"))
m_newValues[i] = new Integer(Env.getAD_Client_ID(p_ctx));
else if (colName.equals("AD_Org_ID"))
m_newValues[i] = new Integer(Env.getAD_Org_ID(p_ctx));
else if (colName.equals("Processed"))
m_newValues[i] = new Boolean(false);
m_newValues[i] = Boolean.FALSE;
else if (colName.equals("Processing"))
m_newValues[i] = new Boolean(false);
m_newValues[i] = Boolean.FALSE;
else if (colName.equals("Posted"))
m_newValues[i] = new Boolean(false);
m_newValues[i] = Boolean.FALSE;
}
} // setDefaults

View File

@ -305,12 +305,12 @@ public class Scriptlet
// Boolean
if (stringValue.equals("Y"))
{
m_ctx.put(convertKey(key), new Boolean(true));
m_ctx.put(convertKey(key), Boolean.TRUE);
return;
}
if (stringValue.equals("N"))
{
m_ctx.put(convertKey(key), new Boolean(false));
m_ctx.put(convertKey(key), Boolean.FALSE);
return;
}

View File

@ -266,7 +266,7 @@ class Worker extends Thread
InputStream is = conn.getInputStream();
HTMLEditorKit kit = new HTMLEditorKit();
HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
doc.putProperty("IgnoreCharsetDirective", new Boolean(true));
doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
kit.read (new InputStreamReader(is), doc, 0);
// Get The Links to the Help Pages

View File

@ -268,7 +268,7 @@ class Worker extends Thread
InputStream is = conn.getInputStream();
HTMLEditorKit kit = new HTMLEditorKit();
HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
doc.putProperty("IgnoreCharsetDirective", new Boolean(true));
doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
kit.read (new InputStreamReader(is), doc, 0);
// Get The Links to the Help Pages

View File

@ -178,14 +178,14 @@ public class CField extends JComboBox<Object>
Constructor<?> constructor = m_popupClass.getConstructor
(new Class<?>[] {Dialog.class, String.class, Boolean.class});
popup = (CFieldPopup)constructor.newInstance(new Object[]
{(Dialog)win, m_title, new Boolean(true)});
{(Dialog)win, m_title, Boolean.TRUE});
}
else if (win instanceof Frame)
{
Constructor<?> constructor = m_popupClass.getConstructor
(new Class[] {Frame.class, String.class, Boolean.class});
popup = (CFieldPopup)constructor.newInstance(new Object[]
{(Frame)win, m_title, new Boolean(true)});
{(Frame)win, m_title, Boolean.TRUE});
}
if (popup == null)
return false;

View File

@ -178,7 +178,7 @@ public class WCreateFromForm extends ADForm implements EventListener<Event>, WTa
int rows = model.getSize();
for (int i = 0; i < rows; i++)
{
model.setValueAt(new Boolean(true), i, 0);
model.setValueAt(Boolean.TRUE, i, 0);
}
//refresh
dataTable.setModel(model);

View File

@ -160,7 +160,7 @@ public class Allocation
while (rs.next())
{
Vector<Object> line = new Vector<Object>();
line.add(new Boolean(false)); // 0-Selection
line.add(Boolean.FALSE); // 0-Selection
line.add(rs.getTimestamp(1)); // 1-TrxDate
KeyNamePair pp = new KeyNamePair(rs.getInt(3), rs.getString(2));
line.add(pp); // 2-DocumentNo
@ -294,7 +294,7 @@ public class Allocation
while (rs.next())
{
Vector<Object> line = new Vector<Object>();
line.add(new Boolean(false)); // 0-Selection
line.add(Boolean.FALSE); // 0-Selection
line.add(rs.getTimestamp(1)); // 1-TrxDate
KeyNamePair pp = new KeyNamePair(rs.getInt(3), rs.getString(2));
line.add(pp); // 2-Value

View File

@ -81,7 +81,7 @@ public class Charge
while (rs.next())
{
Vector<Object> line = new Vector<Object>(4);
line.add(new Boolean(false)); // 0-Selection
line.add(Boolean.FALSE); // 0-Selection
KeyNamePair pp = new KeyNamePair(rs.getInt(1), rs.getString(2));
line.add(pp); // 1-Value
line.add(rs.getString(3)); // 2-Name
@ -400,7 +400,7 @@ public class Charge
listCreated.append(name);
}
// reset selection
dataTable.setValueAt(new Boolean(false), i, 0);
dataTable.setValueAt(Boolean.FALSE, i, 0);
}
}
} // createAccount

View File

@ -162,7 +162,7 @@ public class FactReconcile {
//line.add(rs.getBigDecimal(1)); // 1-Amt
line.add(rs.getBigDecimal(2)); // 2-AmtAcct
line.add(rs.getString(3)); // 3-DR/CR
line.add(new Boolean(false)); // 4-Fact_Acct_ID
line.add(Boolean.FALSE); // 4-Fact_Acct_ID
line.add(rs.getString(5)); // 5-BP
line.add(rs.getTimestamp(6)); // 6-DateAcct
line.add(rs.getString(7)); // 7-GL Category

View File

@ -200,7 +200,7 @@ public abstract class StatementCreateFromBatch extends CreateFromForm
while(rs.next())
{
Vector<Object> line = new Vector<Object>(5);
line.add(new Boolean(false)); // 0-Selection
line.add(Boolean.FALSE); // 0-Selection
line.add(rs.getTimestamp(3)); // 1-DateDeposit
KeyNamePair pp = new KeyNamePair(rs.getInt(1), rs.getString(2));
line.add(pp); // 2-C_DepositBatch

View File

@ -206,7 +206,7 @@ public abstract class CreateFrom implements ICreateFrom
while (rs.next())
{
Vector<Object> line = new Vector<Object>();
line.add(new Boolean(false)); // 0-Selection
line.add(Boolean.FALSE); // 0-Selection
BigDecimal qtyOrdered = rs.getBigDecimal(1);
BigDecimal multiplier = rs.getBigDecimal(2);
BigDecimal qtyEntered = qtyOrdered.multiply(multiplier);

View File

@ -83,7 +83,7 @@ public abstract class CreateFromDepositBatch extends CreateFromBatch
while(rs.next())
{
Vector<Object> line = new Vector<Object>(6);
line.add(new Boolean(false)); // 0-Selection
line.add(Boolean.FALSE); // 0-Selection
line.add(rs.getTimestamp(1)); // 1-DateTrx
KeyNamePair pp = new KeyNamePair(rs.getInt(2), rs.getString(3));
line.add(pp); // 2-C_Payment_ID

View File

@ -235,7 +235,7 @@ public abstract class CreateFromInvoice extends CreateFrom
while (rs.next())
{
Vector<Object> line = new Vector<Object>(7);
line.add(new Boolean(false)); // 0-Selection
line.add(Boolean.FALSE); // 0-Selection
BigDecimal qtyMovement = rs.getBigDecimal(1);
BigDecimal multiplier = rs.getBigDecimal(2);
BigDecimal qtyEntered = qtyMovement.multiply(multiplier);
@ -326,7 +326,7 @@ public abstract class CreateFromInvoice extends CreateFrom
while (rs.next())
{
Vector<Object> line = new Vector<Object>(7);
line.add(new Boolean(false)); // 0-Selection
line.add(Boolean.FALSE); // 0-Selection
line.add(rs.getBigDecimal(3)); // 1-Qty
KeyNamePair pp = new KeyNamePair(rs.getInt(6), rs.getString(7));
line.add(pp); // 2-UOM

View File

@ -75,7 +75,7 @@ public abstract class CreateFromPackageShipment extends CreateFrom
while (rs.next())
{
Vector<Object> line = new Vector<Object>(6);
line.add(new Boolean(false)); // 0-Selection
line.add(Boolean.FALSE); // 0-Selection
KeyNamePair lineKNPair = new KeyNamePair(rs.getInt(1), rs.getString(2)); // M_InOutLine_ID, Line
line.add(lineKNPair);
line.add(rs.getBigDecimal(3)); //Qty

View File

@ -94,7 +94,7 @@ public abstract class CreateFromRMA extends CreateFrom {
while (rs.next())
{
Vector<Object> line = new Vector<Object>(8);
line.add(new Boolean(false)); // 0-Selection
line.add(Boolean.FALSE); // 0-Selection
KeyNamePair lineKNPair = new KeyNamePair(rs.getInt(1), rs.getString(2)); // 1-Line
line.add(lineKNPair);

View File

@ -232,7 +232,7 @@ public abstract class CreateFromShipment extends CreateFrom
while (rs.next())
{
Vector<Object> line = new Vector<Object>();
line.add(new Boolean(false)); // 0-Selection
line.add(Boolean.FALSE); // 0-Selection
BigDecimal qtyOrdered = rs.getBigDecimal(1);
BigDecimal multiplier = rs.getBigDecimal(2);
BigDecimal qtyEntered = qtyOrdered.multiply(multiplier);
@ -340,7 +340,7 @@ public abstract class CreateFromShipment extends CreateFrom
while (rs.next())
{
Vector<Object> line = new Vector<Object>(7);
line.add(new Boolean(false)); // 0-Selection
line.add(Boolean.FALSE); // 0-Selection
line.add(rs.getBigDecimal(3)); // 1-Qty
KeyNamePair pp = new KeyNamePair(rs.getInt(6), rs.getString(7));
line.add(pp); // 2-UOM
@ -414,7 +414,7 @@ public abstract class CreateFromShipment extends CreateFrom
while (rs.next())
{
Vector<Object> line = new Vector<Object>(7);
line.add(new Boolean(false)); // 0-Selection
line.add(Boolean.FALSE); // 0-Selection
BigDecimal qtyInvoiced = rs.getBigDecimal(1);
BigDecimal multiplier = rs.getBigDecimal(2);
BigDecimal qtyEntered = qtyInvoiced.multiply(multiplier);

View File

@ -77,7 +77,7 @@ public abstract class CreateFromStatement extends CreateFromBatch
while(rs.next())
{
Vector<Object> line = new Vector<Object>(6);
line.add(new Boolean(false)); // 0-Selection
line.add(Boolean.FALSE); // 0-Selection
line.add(rs.getTimestamp(1)); // 1-DateTrx
KeyNamePair pp = new KeyNamePair(rs.getInt(2), rs.getString(3));
line.add(pp); // 2-C_Payment_ID

View File

@ -169,9 +169,9 @@ public class CreateRecord extends TableFixture {
continue;
} else if (columnClass == Boolean.class) {
if ("Y".equalsIgnoreCase(value_evaluated) || "true".equalsIgnoreCase(value_evaluated))
value = new Boolean(true);
value = Boolean.TRUE;
else if ("N".equalsIgnoreCase(value_evaluated) || "false".equalsIgnoreCase(value_evaluated))
value = new Boolean(false);
value = Boolean.FALSE;
else {
exception(getCell(i, 1), new Exception("Wrong value for boolean, allowed Y/N/true/false"));
continue;

View File

@ -200,9 +200,9 @@ public class UpdateRecord extends TableFixture {
continue;
} else if (columnClass == Boolean.class) {
if ("Y".equalsIgnoreCase(value_evaluated) || "true".equalsIgnoreCase(value_evaluated))
value = new Boolean(true);
value = Boolean.TRUE;
else if ("N".equalsIgnoreCase(value_evaluated) || "false".equalsIgnoreCase(value_evaluated))
value = new Boolean(false);
value = Boolean.FALSE;
else {
exception(getCell(i, 1), new Exception("Wrong value for boolean, allowed Y/N/true/false"));
continue;

View File

@ -522,10 +522,10 @@ public class AbstractService {
if (columnClass == Boolean.class) {
if ("Y".equalsIgnoreCase(strValue)
|| "true".equalsIgnoreCase(strValue))
value = new Boolean(true);
value = Boolean.TRUE;
else if ("N".equalsIgnoreCase(strValue)
|| "false".equalsIgnoreCase(strValue))
value = new Boolean(false);
value = Boolean.FALSE;
else
throw new IdempiereServiceFault(" input column " + colName
+ " wrong value " + strValue, new QName(