IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (warning deprecated of constructer)
constructer with expression
This commit is contained in:
parent
b7aada7a1b
commit
9957ffa06c
|
@ -127,7 +127,7 @@ public class CalloutPaySelection extends CalloutEngine
|
|||
{
|
||||
OpenAmt = rs.getBigDecimal(1);
|
||||
DiscountAmt = rs.getBigDecimal(2);
|
||||
IsSOTrx = new Boolean ("Y".equals(rs.getString(3)));
|
||||
IsSOTrx = Boolean.valueOf ("Y".equals(rs.getString(3)));
|
||||
}
|
||||
}
|
||||
catch (SQLException e)
|
||||
|
|
|
@ -91,9 +91,9 @@ public class ChangeLogProcess extends SvrProcess
|
|||
if (para[i].getParameter() == null)
|
||||
;
|
||||
else if (name.equals("CheckNewValue"))
|
||||
p_CheckNewValue = new Boolean("Y".equals(para[i].getParameter()));
|
||||
p_CheckNewValue = Boolean.valueOf("Y".equals(para[i].getParameter()));
|
||||
else if (name.equals("CheckOldValue"))
|
||||
p_CheckOldValue = new Boolean("Y".equals(para[i].getParameter()));
|
||||
p_CheckOldValue = Boolean.valueOf("Y".equals(para[i].getParameter()));
|
||||
else if (name.equals("SetCustomization"))
|
||||
p_SetCustomization = "Y".equals(para[i].getParameter());
|
||||
else
|
||||
|
|
|
@ -290,7 +290,7 @@ public class SendMailText extends SvrProcess
|
|||
}
|
||||
StringBuilder msglog = new StringBuilder((OK ? "@OK@" : "@ERROR@")).append(" - ").append(to.getEMail());
|
||||
addLog(0, null, null, msglog.toString());
|
||||
return new Boolean(OK);
|
||||
return Boolean.valueOf(OK);
|
||||
} // sendIndividualMail
|
||||
|
||||
} // SendMailText
|
||||
|
|
|
@ -409,7 +409,7 @@ public class GenerateModelJPA
|
|||
sb.append(setValue).append(" (\"").append(columnName).append("\", new Integer(").append(columnName).append("));");
|
||||
}
|
||||
else if (clazz.equals(Boolean.class))
|
||||
sb.append(setValue).append(" (\"").append(columnName).append("\", new Boolean(").append(columnName).append("));");
|
||||
sb.append(setValue).append(" (\"").append(columnName).append("\", Boolean.valueOf(").append(columnName).append("));");
|
||||
else
|
||||
{
|
||||
if (isMandatory && AD_Reference_ID == 0) // does not apply to int/boolean
|
||||
|
|
|
@ -3261,7 +3261,7 @@ public class GridTable extends AbstractTableModel
|
|||
String str = rs.getString(j+1);
|
||||
if (field.isEncryptedColumn())
|
||||
str = (String)decrypt(str, getAD_Client_ID(rs));
|
||||
rowData[j] = new Boolean ("Y".equals(str)); // Boolean
|
||||
rowData[j] = Boolean.valueOf("Y".equals(str)); // Boolean
|
||||
}
|
||||
// LOB
|
||||
else if (DisplayType.isLOB(displayType))
|
||||
|
|
|
@ -1526,7 +1526,7 @@ public class MPayment extends X_C_Payment
|
|||
pstmt.setInt(1, getC_Invoice_ID());
|
||||
rs = pstmt.executeQuery();
|
||||
if (rs.next())
|
||||
documentSO = new Boolean ("Y".equals(rs.getString(1)));
|
||||
documentSO = Boolean.valueOf("Y".equals(rs.getString(1)));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -1553,7 +1553,7 @@ public class MPayment extends X_C_Payment
|
|||
pstmt.setInt(1, getC_Order_ID());
|
||||
rs = pstmt.executeQuery();
|
||||
if (rs.next())
|
||||
documentSO = new Boolean ("Y".equals(rs.getString(1)));
|
||||
documentSO = Boolean.valueOf("Y".equals(rs.getString(1)));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
@ -1591,7 +1591,7 @@ public class MPayment extends X_C_Payment
|
|||
return false;
|
||||
}
|
||||
} else {
|
||||
documentSO = new Boolean ("Y".equals(rs.getString(1)));
|
||||
documentSO = Boolean.valueOf("Y".equals(rs.getString(1)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1622,7 +1622,7 @@ public class MPayment extends X_C_Payment
|
|||
pstmt.setInt(1, getC_DocType_ID());
|
||||
rs = pstmt.executeQuery();
|
||||
if (rs.next())
|
||||
paymentSO = new Boolean ("Y".equals(rs.getString(1)));
|
||||
paymentSO = Boolean.valueOf("Y".equals(rs.getString(1)));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
|
|
@ -160,7 +160,7 @@ public class MProductPricing extends AbstractProductPricing
|
|||
calculateDiscount();
|
||||
setPrecision(); // from Price List
|
||||
//
|
||||
m_found = new Boolean (m_calculated);
|
||||
m_found = Boolean.valueOf(m_calculated);
|
||||
return m_calculated;
|
||||
} // calculatePrice
|
||||
|
||||
|
|
|
@ -1549,7 +1549,7 @@ public final class MRole extends X_AD_Role
|
|||
m_windowAccess.remove(winId);
|
||||
}
|
||||
} else {
|
||||
directAccess.put(winId, new Boolean("Y".equals(rs.getString(2))));
|
||||
directAccess.put(winId, Boolean.valueOf("Y".equals(rs.getString(2))));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1634,7 +1634,7 @@ public final class MRole extends X_AD_Role
|
|||
m_processAccess.remove(procId);
|
||||
}
|
||||
} else {
|
||||
directAccess.put(procId, new Boolean("Y".equals(rs.getString(2))));
|
||||
directAccess.put(procId, Boolean.valueOf("Y".equals(rs.getString(2))));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1714,7 +1714,7 @@ public final class MRole extends X_AD_Role
|
|||
m_taskAccess.remove(taskId);
|
||||
}
|
||||
} else {
|
||||
directAccess.put(taskId, new Boolean("Y".equals(rs.getString(2))));
|
||||
directAccess.put(taskId, Boolean.valueOf("Y".equals(rs.getString(2))));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1794,7 +1794,7 @@ public final class MRole extends X_AD_Role
|
|||
m_formAccess.remove(formId);
|
||||
}
|
||||
} else {
|
||||
directAccess.put(formId, new Boolean("Y".equals(rs.getString(2))));
|
||||
directAccess.put(formId, Boolean.valueOf("Y".equals(rs.getString(2))));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1874,7 +1874,7 @@ public final class MRole extends X_AD_Role
|
|||
m_workflowAccess.remove(formId);
|
||||
}
|
||||
} else {
|
||||
directAccess.put(formId, new Boolean("Y".equals(rs.getString(2))));
|
||||
directAccess.put(formId, Boolean.valueOf("Y".equals(rs.getString(2))));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3177,7 +3177,7 @@ public final class MRole extends X_AD_Role
|
|||
+ " AND (iwa.AD_Role_ID = ? OR iwa.AD_Role_ID IN"
|
||||
+ " (SELECT ri.Included_Role_ID FROM AD_Role_Included ri WHERE ri.IsActive='Y' AND ri.AD_Role_ID=?))";
|
||||
int cnt = DB.getSQLValueEx(get_TrxName(), sql, I_M_Product.Table_ID, getAD_Role_ID(), getAD_Role_ID());
|
||||
m_canAccess_Info_Product = new Boolean(cnt > 0);
|
||||
m_canAccess_Info_Product = Boolean.valueOf(cnt > 0);
|
||||
|
||||
// Verify if is excluded in the specific role (it can be allowed in included role and inactive in specific role)
|
||||
if (m_canAccess_Info_Product) {
|
||||
|
|
|
@ -818,7 +818,7 @@ public abstract class PO
|
|||
// Set Boolean
|
||||
else if (p_info.getColumnClass(index) == Boolean.class
|
||||
&& ("Y".equals(value) || "N".equals(value)) )
|
||||
m_newValues[index] = new Boolean("Y".equals(value));
|
||||
m_newValues[index] = Boolean.valueOf("Y".equals(value));
|
||||
// added by vpj-cd
|
||||
// To solve BUG [ 1618423 ] Set Project Type button in Project window throws warning
|
||||
// generated because C_Project.C_Project_Type_ID is defined as button in dictionary
|
||||
|
@ -1403,7 +1403,7 @@ public abstract class PO
|
|||
else if (clazz == BigDecimal.class)
|
||||
m_oldValues[index] = decrypt(index, rs.getBigDecimal(columnName));
|
||||
else if (clazz == Boolean.class)
|
||||
m_oldValues[index] = new Boolean ("Y".equals(decrypt(index, rs.getString(columnName))));
|
||||
m_oldValues[index] = Boolean.valueOf("Y".equals(decrypt(index, rs.getString(columnName))));
|
||||
else if (clazz == Timestamp.class)
|
||||
m_oldValues[index] = decrypt(index, rs.getTimestamp(columnName));
|
||||
else if (DisplayType.isLOB(dt))
|
||||
|
@ -1479,7 +1479,7 @@ public abstract class PO
|
|||
else if (clazz == BigDecimal.class)
|
||||
m_oldValues[index] = new BigDecimal(value);
|
||||
else if (clazz == Boolean.class)
|
||||
m_oldValues[index] = new Boolean ("Y".equals(value));
|
||||
m_oldValues[index] = Boolean.valueOf("Y".equals(value));
|
||||
else if (clazz == Timestamp.class)
|
||||
m_oldValues[index] = Timestamp.valueOf(value);
|
||||
else if (DisplayType.isLOB(dt))
|
||||
|
@ -1812,7 +1812,7 @@ public abstract class PO
|
|||
*/
|
||||
public final void setIsActive (boolean active)
|
||||
{
|
||||
set_Value("IsActive", new Boolean(active));
|
||||
set_Value("IsActive", Boolean.valueOf(active));
|
||||
} // setActive
|
||||
|
||||
/**
|
||||
|
|
|
@ -984,7 +984,7 @@ public class DataEngine
|
|||
if (!rs.wasNull())
|
||||
{
|
||||
boolean b = s.equals("Y");
|
||||
pde = new PrintDataElement(pdc.getColumnName(), new Boolean(b), pdc.getDisplayType(), pdc.getFormatPattern());
|
||||
pde = new PrintDataElement(pdc.getColumnName(), Boolean.valueOf(b), pdc.getDisplayType(), pdc.getFormatPattern());
|
||||
}
|
||||
}
|
||||
else if (pdc.getDisplayType() == DisplayType.TextLong)
|
||||
|
|
|
@ -154,7 +154,7 @@ public class RModelData
|
|||
else if (rc.getColClass() == Timestamp.class)
|
||||
row.add(rs.getTimestamp(index++));
|
||||
else if (rc.getColClass() == Boolean.class)
|
||||
row.add(new Boolean("Y".equals(rs.getString(index++))));
|
||||
row.add(Boolean.valueOf("Y".equals(rs.getString(index++))));
|
||||
else // should not happen
|
||||
{
|
||||
row.add(rs.getString(index++));
|
||||
|
@ -367,7 +367,7 @@ public class RModelData
|
|||
{
|
||||
m_groupRowsIndicator = new ArrayList<Boolean>(rows.size());
|
||||
for (int r = 0; r < rows.size(); r++)
|
||||
m_groupRowsIndicator.add(new Boolean(m_groupRows.contains(new Integer(r))));
|
||||
m_groupRowsIndicator.add(Boolean.valueOf(m_groupRows.contains(new Integer(r))));
|
||||
}
|
||||
if (row < 0 || row >= m_groupRowsIndicator.size())
|
||||
return false;
|
||||
|
|
|
@ -443,7 +443,7 @@ public class Language implements Serializable
|
|||
{
|
||||
if (m_leftToRight == null)
|
||||
// returns true if language not iw, ar, fa, ur
|
||||
m_leftToRight = new Boolean(ComponentOrientation.getOrientation(m_locale).isLeftToRight());
|
||||
m_leftToRight = Boolean.valueOf(ComponentOrientation.getOrientation(m_locale).isLeftToRight());
|
||||
return m_leftToRight.booleanValue();
|
||||
} // isLeftToRight
|
||||
|
||||
|
@ -456,7 +456,7 @@ public class Language implements Serializable
|
|||
if (m_decimalPoint == null)
|
||||
{
|
||||
DecimalFormatSymbols dfs = new DecimalFormatSymbols(m_locale);
|
||||
m_decimalPoint = new Boolean(dfs.getDecimalSeparator() == '.');
|
||||
m_decimalPoint = Boolean.valueOf(dfs.getDecimalSeparator() == '.');
|
||||
}
|
||||
return m_decimalPoint.booleanValue();
|
||||
} // isDecimalPoint
|
||||
|
|
|
@ -1291,7 +1291,7 @@ public class MWFActivity extends X_AD_WF_Activity implements Runnable
|
|||
if (value == null)
|
||||
;
|
||||
else if (displayType == DisplayType.YesNo)
|
||||
dbValue = new Boolean("Y".equals(value));
|
||||
dbValue = Boolean.valueOf("Y".equals(value));
|
||||
else if (DisplayType.isNumeric(displayType))
|
||||
dbValue = new BigDecimal (value);
|
||||
else if (DisplayType.isID(displayType)) {
|
||||
|
|
|
@ -221,7 +221,7 @@ public class MWFNodeNext extends X_AD_WF_NodeNext
|
|||
*/
|
||||
public void setFromSplitAnd (boolean fromSplitAnd)
|
||||
{
|
||||
m_fromSplitAnd = new Boolean(fromSplitAnd);
|
||||
m_fromSplitAnd = Boolean.valueOf(fromSplitAnd);
|
||||
} // setFromSplitAnd
|
||||
|
||||
/**
|
||||
|
@ -246,7 +246,7 @@ public class MWFNodeNext extends X_AD_WF_NodeNext
|
|||
*/
|
||||
private void setToJoinAnd (boolean toJoinAnd)
|
||||
{
|
||||
m_toJoinAnd = new Boolean(toJoinAnd);
|
||||
m_toJoinAnd = Boolean.valueOf(toJoinAnd);
|
||||
} // setToJoinAnd
|
||||
|
||||
} // MWFNodeNext
|
||||
|
|
|
@ -538,7 +538,7 @@ public class ConfigurationPanel extends JPanel implements ActionListener, IDBCon
|
|||
m_success = true;
|
||||
bTest.setEnabled(true);
|
||||
m_testing = false;
|
||||
return new Boolean(m_success);
|
||||
return Boolean.valueOf(m_success);
|
||||
}
|
||||
// Finish it
|
||||
public void finished()
|
||||
|
|
|
@ -477,7 +477,7 @@ public class VTreeBOM extends CPanel implements FormPanel, ActionListener, TreeS
|
|||
treeInfo.setText ("Selected Product: "+M_Product.getValue());
|
||||
|
||||
Vector<Object> line = new Vector<Object>(10);
|
||||
line.add( new Boolean(M_Product.isActive())); // 0 IsActive
|
||||
line.add( Boolean.valueOf(M_Product.isActive())); // 0 IsActive
|
||||
line.add( new Integer(0).toString()); // 1 Line
|
||||
KeyNamePair pp = new KeyNamePair(M_Product.getM_Product_ID(),M_Product.getValue().concat("_").concat(M_Product.getName()));
|
||||
line.add(pp); // 2 M_Product_ID
|
||||
|
@ -560,7 +560,7 @@ public class VTreeBOM extends CPanel implements FormPanel, ActionListener, TreeS
|
|||
MProduct M_Product = MProduct.get(getCtx(), bomline.getM_ProductBOM_ID());
|
||||
|
||||
Vector<Object> line = new Vector<Object>(10);
|
||||
line.add( new Boolean(bomline.isActive())); // 0 IsActive
|
||||
line.add( Boolean.valueOf(bomline.isActive())); // 0 IsActive
|
||||
line.add( new Integer(bomline.getLine()).toString()); // 1 Line
|
||||
KeyNamePair pp = new KeyNamePair(M_Product.getM_Product_ID(),M_Product.getValue().concat("_").concat(M_Product.getName()));
|
||||
line.add(pp); // 2 M_Product_ID
|
||||
|
@ -588,7 +588,7 @@ public class VTreeBOM extends CPanel implements FormPanel, ActionListener, TreeS
|
|||
MProduct M_Product = MProduct.get(getCtx(), bom.getM_Product_ID());
|
||||
|
||||
Vector<Object> line = new Vector<Object>(10);
|
||||
line.add( new Boolean(M_Product.isActive())); // 0 IsActive
|
||||
line.add( Boolean.valueOf(M_Product.isActive())); // 0 IsActive
|
||||
line.add( new Integer(bom.getLine()).toString()); // 1 Line
|
||||
KeyNamePair pp = new KeyNamePair(M_Product.getM_Product_ID(),M_Product.getValue().concat("_").concat(M_Product.getName()));
|
||||
line.add(pp); // 2 M_Product_ID
|
||||
|
|
|
@ -1215,7 +1215,7 @@ public abstract class Info extends CDialog
|
|||
((IDColumn)data).setSelected(isDefaultSelected());
|
||||
}
|
||||
else if (c == Boolean.class)
|
||||
data = new Boolean("Y".equals(m_rs.getString(colIndex)));
|
||||
data = Boolean.valueOf("Y".equals(m_rs.getString(colIndex)));
|
||||
else if (c == Timestamp.class)
|
||||
data = m_rs.getTimestamp(colIndex);
|
||||
else if (c == BigDecimal.class)
|
||||
|
|
|
@ -507,7 +507,7 @@ public class InvoiceHistory extends CDialog
|
|||
line.add(rs.getString(1)); // Name
|
||||
line.add(new Double(rs.getDouble(2))); // Qty
|
||||
line.add(rs.getTimestamp(3)); // Date
|
||||
line.add(new Boolean("Y".equals(rs.getString(4)))); // IsSOTrx
|
||||
line.add(Boolean.valueOf("Y".equals(rs.getString(4)))); // IsSOTrx
|
||||
line.add(rs.getString(5)); // DocNo
|
||||
line.add(rs.getString(6)); // Warehouse
|
||||
data.add(line);
|
||||
|
|
|
@ -190,7 +190,7 @@ public class VCheckBox extends CCheckBox
|
|||
*/
|
||||
public Object getValue()
|
||||
{
|
||||
return new Boolean (isSelected());
|
||||
return Boolean.valueOf(isSelected());
|
||||
} // getValue
|
||||
|
||||
/**
|
||||
|
|
|
@ -117,7 +117,7 @@ public class VRowIDEditor extends AbstractCellEditor implements TableCellEditor
|
|||
if (log.isLoggable(Level.FINE)) log.fine("" + m_cb.isSelected());
|
||||
if (m_rid == null)
|
||||
return null;
|
||||
m_rid[1] = new Boolean (m_cb.isSelected());
|
||||
m_rid[1] = Boolean.valueOf(m_cb.isSelected());
|
||||
return m_rid;
|
||||
} // getCellEditorValue
|
||||
|
||||
|
|
|
@ -509,7 +509,7 @@ public class MiniTable extends CTable implements IMiniTable
|
|||
if (c == IDColumn.class)
|
||||
data = new IDColumn(rs.getInt(colIndex));
|
||||
else if (c == Boolean.class)
|
||||
data = new Boolean("Y".equals(rs.getString(colIndex)));
|
||||
data = Boolean.valueOf("Y".equals(rs.getString(colIndex)));
|
||||
else if (c == Timestamp.class)
|
||||
data = rs.getTimestamp(colIndex);
|
||||
else if (c == BigDecimal.class)
|
||||
|
|
|
@ -266,7 +266,7 @@ public class CCheckBox extends JCheckBox implements CEditor {
|
|||
public Object getValue() {
|
||||
if (m_value instanceof String)
|
||||
return super.isSelected() ? "Y" : "N";
|
||||
return new Boolean(isSelected());
|
||||
return Boolean.valueOf(isSelected());
|
||||
} // getValue
|
||||
|
||||
/**
|
||||
|
|
|
@ -320,7 +320,7 @@ public class WTreeBOM extends TreeBOM implements IFormController, EventListener<
|
|||
treeInfo.setText (Msg.getElement(Env.getCtx(), "Sel_Product_ID")+": "+product.getValue());
|
||||
|
||||
Vector<Object> line = new Vector<Object>(10);
|
||||
line.add( new Boolean(product.isActive())); // 0 IsActive
|
||||
line.add( Boolean.valueOf(product.isActive())); // 0 IsActive
|
||||
line.add( new Integer(0).toString()); // 1 Line
|
||||
KeyNamePair pp = new KeyNamePair(product.getM_Product_ID(),product.getValue().concat("_").concat(product.getName()));
|
||||
line.add(pp); // 2 M_Product_ID
|
||||
|
@ -442,7 +442,7 @@ public class WTreeBOM extends TreeBOM implements IFormController, EventListener<
|
|||
MProduct M_Product = MProduct.get(getCtx(), bomline.getM_ProductBOM_ID());
|
||||
|
||||
Vector<Object> line = new Vector<Object>(10);
|
||||
line.add( new Boolean(bomline.isActive())); // 0 IsActive
|
||||
line.add( Boolean.valueOf(bomline.isActive())); // 0 IsActive
|
||||
line.add( new Integer(bomline.getLine()).toString()); // 1 Line
|
||||
KeyNamePair pp = new KeyNamePair(M_Product.getM_Product_ID(),M_Product.getValue().concat("_").concat(M_Product.getName()));
|
||||
line.add(pp); // 2 M_Product_ID
|
||||
|
@ -471,7 +471,7 @@ public class WTreeBOM extends TreeBOM implements IFormController, EventListener<
|
|||
MProduct M_Product = MProduct.get(getCtx(), bom.getM_Product_ID());
|
||||
|
||||
Vector<Object> line = new Vector<Object>(10);
|
||||
line.add( new Boolean(M_Product.isActive())); // 0 IsActive
|
||||
line.add( Boolean.valueOf(M_Product.isActive())); // 0 IsActive
|
||||
line.add( new Integer(bom.getLine()).toString()); // 1 Line
|
||||
KeyNamePair pp = new KeyNamePair(M_Product.getM_Product_ID(),M_Product.getValue().concat("_").concat(M_Product.getName()));
|
||||
line.add(pp); // 2 M_Product_ID
|
||||
|
|
|
@ -611,7 +611,7 @@ public class WListbox extends Listbox implements IMiniTable, TableValueChangeLis
|
|||
}
|
||||
else if (columnClass == Boolean.class)
|
||||
{
|
||||
data = new Boolean(rs.getString(rsColIndex).equals("Y"));
|
||||
data = Boolean.valueOf(rs.getString(rsColIndex).equals("Y"));
|
||||
}
|
||||
else if (columnClass == Timestamp.class)
|
||||
{
|
||||
|
|
|
@ -107,7 +107,7 @@ public class WYesNoEditor extends WEditor implements ContextMenuListener
|
|||
@Override
|
||||
public Object getValue()
|
||||
{
|
||||
return new Boolean(getComponent().isChecked());
|
||||
return Boolean.valueOf(getComponent().isChecked());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -426,7 +426,7 @@ public class RelatedInfoWindow implements EventListener<Event>, Sortable<Object>
|
|||
value = new IDColumn(rs.getInt(colIndex));
|
||||
}
|
||||
else if (c == Boolean.class)
|
||||
value = new Boolean("Y".equals(rs.getString(colIndex)));
|
||||
value = Boolean.valueOf("Y".equals(rs.getString(colIndex)));
|
||||
else if (c == Timestamp.class)
|
||||
value = rs.getTimestamp(colIndex);
|
||||
else if (c == BigDecimal.class)
|
||||
|
|
|
@ -591,7 +591,7 @@ public abstract class InfoPanel extends Window implements EventListener<Event>,
|
|||
|
||||
}
|
||||
else if (c == Boolean.class)
|
||||
value = new Boolean("Y".equals(rs.getString(colIndex)));
|
||||
value = Boolean.valueOf("Y".equals(rs.getString(colIndex)));
|
||||
else if (c == Timestamp.class)
|
||||
value = rs.getTimestamp(colIndex);
|
||||
else if (c == BigDecimal.class)
|
||||
|
|
|
@ -573,7 +573,7 @@ public class InvoiceHistory extends Window implements EventListener<Event>
|
|||
line.add(rs.getString(1)); // Name
|
||||
line.add(new Double(rs.getDouble(2))); // Qty
|
||||
line.add(rs.getTimestamp(3)); // Date
|
||||
line.add(new Boolean("Y".equals(rs.getString(4)))); // IsSOTrx
|
||||
line.add(Boolean.valueOf("Y".equals(rs.getString(4)))); // IsSOTrx
|
||||
line.add(rs.getString(5)); // DocNo
|
||||
line.add(rs.getString(6)); // Warehouse
|
||||
data.add(line);
|
||||
|
|
|
@ -86,7 +86,7 @@ public class Charge
|
|||
line.add(pp); // 1-Value
|
||||
line.add(rs.getString(3)); // 2-Name
|
||||
boolean isExpenseType = rs.getString(4).equals("E");
|
||||
line.add(new Boolean(isExpenseType)); // 3-Expense
|
||||
line.add(Boolean.valueOf(isExpenseType)); // 3-Expense
|
||||
data.add(line);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,9 +42,9 @@ public class ECSDefaults
|
|||
}
|
||||
}
|
||||
|
||||
private static boolean filter_state = new Boolean(resource.getString("filter_state")).booleanValue();
|
||||
private static boolean filter_state = Boolean.valueOf(resource.getString("filter_state")).booleanValue();
|
||||
|
||||
private static boolean filter_attribute_state = new Boolean(resource.getString("filter_attribute_state")).booleanValue();
|
||||
private static boolean filter_attribute_state = Boolean.valueOf(resource.getString("filter_attribute_state")).booleanValue();
|
||||
|
||||
private static char attribute_equality_sign = resource.getString("attribute_equality_sign").charAt(1);
|
||||
|
||||
|
@ -58,9 +58,9 @@ public class ECSDefaults
|
|||
|
||||
private static char attribute_quote_char = resource.getString("attribute_quote_char").charAt(0);
|
||||
|
||||
private static boolean attribute_quote = new Boolean(resource.getString("attribute_quote")).booleanValue();
|
||||
private static boolean attribute_quote = Boolean.valueOf(resource.getString("attribute_quote")).booleanValue();
|
||||
|
||||
private static boolean end_element = new Boolean(resource.getString("end_element")).booleanValue();
|
||||
private static boolean end_element = Boolean.valueOf(resource.getString("end_element")).booleanValue();
|
||||
|
||||
private static String codeset = resource.getString("codeset");
|
||||
|
||||
|
@ -72,7 +72,7 @@ public class ECSDefaults
|
|||
|
||||
private static char end_tag = resource.getString("end_tag").charAt(0);
|
||||
|
||||
private static boolean pretty_print = new Boolean(resource.getString("pretty_print")).booleanValue();
|
||||
private static boolean pretty_print = Boolean.valueOf(resource.getString("pretty_print")).booleanValue();
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue