IDEMPIERE-455 Discover and fix FindBugs problems / Eclipse warning -> raw type
This commit is contained in:
parent
526a1653a4
commit
9362bcaed2
|
@ -114,7 +114,7 @@ public class ReplicationProcessor extends AdempiereServer {
|
||||||
IImportProcessor importProcessor = null;
|
IImportProcessor importProcessor = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Class clazz = Class.forName(javaClass);
|
Class<?> clazz = Class.forName(javaClass);
|
||||||
importProcessor = (IImportProcessor)clazz.newInstance();
|
importProcessor = (IImportProcessor)clazz.newInstance();
|
||||||
importProcessor.process(mImportProcessor.getCtx(), this, trxName );
|
importProcessor.process(mImportProcessor.getCtx(), this, trxName );
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,7 +104,7 @@ public class JasperViewer extends javax.swing.JFrame {
|
||||||
public static void main(String args[]) {
|
public static void main(String args[]) {
|
||||||
try {
|
try {
|
||||||
JasperReport myjasperReport = (JasperReport) JasperCompileManager.compileReport(args[0] );
|
JasperReport myjasperReport = (JasperReport) JasperCompileManager.compileReport(args[0] );
|
||||||
JasperPrint myjasperPrint = JasperFillManager.fillReport( myjasperReport, new HashMap(), getConnection());
|
JasperPrint myjasperPrint = JasperFillManager.fillReport( myjasperReport, new HashMap<String,Object>(), getConnection());
|
||||||
JasperViewer.viewReport(myjasperPrint);
|
JasperViewer.viewReport(myjasperPrint);
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
|
|
|
@ -602,7 +602,7 @@ public class AcctViewer extends CFrame
|
||||||
m_data.AD_Org_ID = kp.getKey();
|
m_data.AD_Org_ID = kp.getKey();
|
||||||
para.append(", AD_Org_ID=").append(m_data.AD_Org_ID);
|
para.append(", AD_Org_ID=").append(m_data.AD_Org_ID);
|
||||||
//
|
//
|
||||||
Iterator it = m_data.whereInfo.values().iterator();
|
Iterator<String> it = m_data.whereInfo.values().iterator();
|
||||||
while (it.hasNext())
|
while (it.hasNext())
|
||||||
para.append(", ").append(it.next());
|
para.append(", ").append(it.next());
|
||||||
}
|
}
|
||||||
|
|
|
@ -284,7 +284,7 @@ class Worker extends Thread
|
||||||
// key keys
|
// key keys
|
||||||
if (target == null || href == null)
|
if (target == null || href == null)
|
||||||
{
|
{
|
||||||
Enumeration en = as.getAttributeNames();
|
Enumeration<?> en = as.getAttributeNames();
|
||||||
while (en.hasMoreElements())
|
while (en.hasMoreElements())
|
||||||
{
|
{
|
||||||
Object o = en.nextElement();
|
Object o = en.nextElement();
|
||||||
|
|
|
@ -669,8 +669,8 @@ public final class Preference extends CDialog
|
||||||
*/
|
*/
|
||||||
private void cmd_displayErrors()
|
private void cmd_displayErrors()
|
||||||
{
|
{
|
||||||
Vector data = CLogErrorBuffer.get(true).getLogData(bErrorsOnly.isSelected());
|
Vector<Vector<Object>> data = CLogErrorBuffer.get(true).getLogData(bErrorsOnly.isSelected());
|
||||||
Vector columnNames = CLogErrorBuffer.get(true).getColumnNames(Env.getCtx());
|
Vector<String> columnNames = CLogErrorBuffer.get(true).getColumnNames(Env.getCtx());
|
||||||
DefaultTableModel model = new DefaultTableModel(data, columnNames);
|
DefaultTableModel model = new DefaultTableModel(data, columnNames);
|
||||||
errorTable.setModel(model);
|
errorTable.setModel(model);
|
||||||
//
|
//
|
||||||
|
|
|
@ -67,8 +67,8 @@ public class ScreenShot
|
||||||
file.delete();
|
file.delete();
|
||||||
|
|
||||||
// Get Writer
|
// Get Writer
|
||||||
Iterator writers = ImageIO.getImageWritersByFormatName("jpg");
|
Iterator<ImageWriter> writers = ImageIO.getImageWritersByFormatName("jpg");
|
||||||
ImageWriter writer = (ImageWriter)writers.next();
|
ImageWriter writer = writers.next();
|
||||||
if (writer == null)
|
if (writer == null)
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, "no ImageWriter");
|
log.log(Level.SEVERE, "no ImageWriter");
|
||||||
|
|
|
@ -194,7 +194,7 @@ public class WindowMenu extends JMenu {
|
||||||
Image image = bi.getScaledInstance(width, height, Image.SCALE_SMOOTH);
|
Image image = bi.getScaledInstance(width, height, Image.SCALE_SMOOTH);
|
||||||
|
|
||||||
final JXTitledPanel box = new JXTitledPanel();
|
final JXTitledPanel box = new JXTitledPanel();
|
||||||
final Painter painter = box.getTitlePainter();
|
final Painter<?> painter = box.getTitlePainter();
|
||||||
box.setTitlePainter(null);
|
box.setTitlePainter(null);
|
||||||
box.setFocusable(true);
|
box.setFocusable(true);
|
||||||
box.setTitle(window.getTitle());
|
box.setTitle(window.getTitle());
|
||||||
|
|
|
@ -27,6 +27,7 @@ import java.util.HashMap;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
|
import javax.swing.AbstractButton;
|
||||||
import javax.swing.ButtonGroup;
|
import javax.swing.ButtonGroup;
|
||||||
import javax.swing.JCheckBox;
|
import javax.swing.JCheckBox;
|
||||||
import javax.swing.JRadioButton;
|
import javax.swing.JRadioButton;
|
||||||
|
@ -464,17 +465,17 @@ public class VBOMDrop extends CPanel
|
||||||
if (source instanceof JRadioButton)
|
if (source instanceof JRadioButton)
|
||||||
{
|
{
|
||||||
// find Button Group
|
// find Button Group
|
||||||
Iterator it = m_buttonGroups.values().iterator();
|
Iterator<ButtonGroup> it = m_buttonGroups.values().iterator();
|
||||||
while (it.hasNext())
|
while (it.hasNext())
|
||||||
{
|
{
|
||||||
ButtonGroup group = (ButtonGroup)it.next();
|
ButtonGroup group = it.next();
|
||||||
Enumeration en = group.getElements();
|
Enumeration<AbstractButton> en = group.getElements();
|
||||||
while (en.hasMoreElements())
|
while (en.hasMoreElements())
|
||||||
{
|
{
|
||||||
// We found the group
|
// We found the group
|
||||||
if (source == en.nextElement())
|
if (source == en.nextElement())
|
||||||
{
|
{
|
||||||
Enumeration info = group.getElements();
|
Enumeration<AbstractButton> info = group.getElements();
|
||||||
while (info.hasMoreElements())
|
while (info.hasMoreElements())
|
||||||
{
|
{
|
||||||
Object infoObj = info.nextElement();
|
Object infoObj = info.nextElement();
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class ADempiereAutoCompleteDecorator extends AutoCompleteDecorator{
|
||||||
* @param items contains the items that are used for autocompletion
|
* @param items contains the items that are used for autocompletion
|
||||||
* @param strictMatching <tt>true</tt>, if only given items should be allowed to be entered
|
* @param strictMatching <tt>true</tt>, if only given items should be allowed to be entered
|
||||||
*/
|
*/
|
||||||
public static void decorate(JTextComponent textComponent, List items, boolean strictMatching) {
|
public static void decorate(JTextComponent textComponent, List<?> items, boolean strictMatching) {
|
||||||
decorate(textComponent, items, strictMatching, ObjectToStringConverter.DEFAULT_IMPLEMENTATION);
|
decorate(textComponent, items, strictMatching, ObjectToStringConverter.DEFAULT_IMPLEMENTATION);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ public class ADempiereAutoCompleteDecorator extends AutoCompleteDecorator{
|
||||||
* @param strictMatching <tt>true</tt>, if only given items should be allowed to be entered
|
* @param strictMatching <tt>true</tt>, if only given items should be allowed to be entered
|
||||||
* @param stringConverter the converter used to transform items to strings
|
* @param stringConverter the converter used to transform items to strings
|
||||||
*/
|
*/
|
||||||
public static void decorate(JTextComponent textComponent, List items, boolean strictMatching, ObjectToStringConverter stringConverter) {
|
public static void decorate(JTextComponent textComponent, List<?> items, boolean strictMatching, ObjectToStringConverter stringConverter) {
|
||||||
AbstractAutoCompleteAdaptor adaptor = new TextComponentAdaptor(textComponent, items);
|
AbstractAutoCompleteAdaptor adaptor = new TextComponentAdaptor(textComponent, items);
|
||||||
AutoCompleteDocument document = new AutoCompleteDocument(adaptor, strictMatching, stringConverter);
|
AutoCompleteDocument document = new AutoCompleteDocument(adaptor, strictMatching, stringConverter);
|
||||||
decorate(textComponent, document, adaptor);
|
decorate(textComponent, document, adaptor);
|
||||||
|
|
|
@ -310,7 +310,7 @@ public class HTMLEditor extends CDialog
|
||||||
* @param actions lookup
|
* @param actions lookup
|
||||||
* @return menu
|
* @return menu
|
||||||
*/
|
*/
|
||||||
private JMenu buildMenu(String name, HTMLEditor_MenuAction[] menuActions, Hashtable actions)
|
private JMenu buildMenu(String name, HTMLEditor_MenuAction[] menuActions, Hashtable<Object,Action> actions)
|
||||||
{
|
{
|
||||||
JMenu menu = new JMenu(name);
|
JMenu menu = new JMenu(name);
|
||||||
for (int i = 0; i < menuActions.length; i++)
|
for (int i = 0; i < menuActions.length; i++)
|
||||||
|
|
|
@ -337,7 +337,7 @@ public final class VButton extends CButton
|
||||||
* Return value/name
|
* Return value/name
|
||||||
* @return HashMap with Value/Names
|
* @return HashMap with Value/Names
|
||||||
*/
|
*/
|
||||||
public HashMap getValues()
|
public HashMap<String,String> getValues()
|
||||||
{
|
{
|
||||||
return m_values;
|
return m_values;
|
||||||
} // getValues
|
} // getValues
|
||||||
|
|
|
@ -31,7 +31,7 @@ import java.beans.SimpleBeanInfo;
|
||||||
|
|
||||||
public class VStringBeanInfo extends SimpleBeanInfo
|
public class VStringBeanInfo extends SimpleBeanInfo
|
||||||
{
|
{
|
||||||
private Class beanClass = VString.class;
|
private Class<?> beanClass = VString.class;
|
||||||
private String iconColor16x16Filename;
|
private String iconColor16x16Filename;
|
||||||
private String iconColor32x32Filename;
|
private String iconColor32x32Filename;
|
||||||
private String iconMono16x16Filename;
|
private String iconMono16x16Filename;
|
||||||
|
@ -81,7 +81,7 @@ public class VStringBeanInfo extends SimpleBeanInfo
|
||||||
}
|
}
|
||||||
public BeanInfo[] getAdditionalBeanInfo()
|
public BeanInfo[] getAdditionalBeanInfo()
|
||||||
{
|
{
|
||||||
Class superclass = beanClass.getSuperclass();
|
Class<?> superclass = beanClass.getSuperclass();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BeanInfo superBeanInfo = Introspector.getBeanInfo(superclass);
|
BeanInfo superBeanInfo = Introspector.getBeanInfo(superclass);
|
||||||
|
|
|
@ -31,7 +31,7 @@ import java.beans.SimpleBeanInfo;
|
||||||
|
|
||||||
public class VTextBeanInfo extends SimpleBeanInfo
|
public class VTextBeanInfo extends SimpleBeanInfo
|
||||||
{
|
{
|
||||||
private Class beanClass = VText.class;
|
private Class<?> beanClass = VText.class;
|
||||||
private String iconColor16x16Filename;
|
private String iconColor16x16Filename;
|
||||||
private String iconColor32x32Filename;
|
private String iconColor32x32Filename;
|
||||||
private String iconMono16x16Filename;
|
private String iconMono16x16Filename;
|
||||||
|
@ -93,7 +93,7 @@ public class VTextBeanInfo extends SimpleBeanInfo
|
||||||
}
|
}
|
||||||
public BeanInfo[] getAdditionalBeanInfo()
|
public BeanInfo[] getAdditionalBeanInfo()
|
||||||
{
|
{
|
||||||
Class superclass = beanClass.getSuperclass();
|
Class<?> superclass = beanClass.getSuperclass();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
BeanInfo superBeanInfo = Introspector.getBeanInfo(superclass);
|
BeanInfo superBeanInfo = Introspector.getBeanInfo(superclass);
|
||||||
|
|
|
@ -47,7 +47,7 @@ public class MiniCellEditor extends AbstractCellEditor implements TableCellEdito
|
||||||
* Default Constructor
|
* Default Constructor
|
||||||
* @param c Class
|
* @param c Class
|
||||||
*/
|
*/
|
||||||
public MiniCellEditor(Class c)
|
public MiniCellEditor(Class<?> c)
|
||||||
{
|
{
|
||||||
super();
|
super();
|
||||||
// Date
|
// Date
|
||||||
|
|
|
@ -326,7 +326,7 @@ public class MiniTable extends CTable implements IMiniTable
|
||||||
* @param c class of column - determines renderere
|
* @param c class of column - determines renderere
|
||||||
* @param readOnly read only flag
|
* @param readOnly read only flag
|
||||||
*/
|
*/
|
||||||
public void setColumnClass (int index, Class c, boolean readOnly)
|
public void setColumnClass (int index, Class<?> c, boolean readOnly)
|
||||||
{
|
{
|
||||||
setColumnClass(index, c, readOnly, null);
|
setColumnClass(index, c, readOnly, null);
|
||||||
} // setColumnClass
|
} // setColumnClass
|
||||||
|
@ -341,7 +341,7 @@ public class MiniTable extends CTable implements IMiniTable
|
||||||
* @param readOnly read only flag
|
* @param readOnly read only flag
|
||||||
* @param header optional header value
|
* @param header optional header value
|
||||||
*/
|
*/
|
||||||
public void setColumnClass (int index, Class c, boolean readOnly, String header)
|
public void setColumnClass (int index, Class<?> c, boolean readOnly, String header)
|
||||||
{
|
{
|
||||||
// log.config( "MiniTable.setColumnClass - " + index, c.getName() + ", r/o=" + readOnly);
|
// log.config( "MiniTable.setColumnClass - " + index, c.getName() + ", r/o=" + readOnly);
|
||||||
TableColumn tc = getColumnModel().getColumn(index);
|
TableColumn tc = getColumnModel().getColumn(index);
|
||||||
|
|
|
@ -703,7 +703,7 @@ public class CColumnControlButton extends JButton {
|
||||||
* @return a list containing all additional actions to include into the popup.
|
* @return a list containing all additional actions to include into the popup.
|
||||||
*/
|
*/
|
||||||
protected List<Action> getAdditionalActions() {
|
protected List<Action> getAdditionalActions() {
|
||||||
List actionKeys = getColumnControlActionKeys();
|
List<Object> actionKeys = getColumnControlActionKeys();
|
||||||
List<Action> actions = new ArrayList<Action>();
|
List<Action> actions = new ArrayList<Action>();
|
||||||
for (Object key : actionKeys) {
|
for (Object key : actionKeys) {
|
||||||
actions.add(table.getActionMap().get(key));
|
actions.add(table.getActionMap().get(key));
|
||||||
|
@ -722,9 +722,9 @@ public class CColumnControlButton extends JButton {
|
||||||
* action should be included into the popup.
|
* action should be included into the popup.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
protected List getColumnControlActionKeys() {
|
protected List<Object> getColumnControlActionKeys() {
|
||||||
Object[] allKeys = table.getActionMap().allKeys();
|
Object[] allKeys = table.getActionMap().allKeys();
|
||||||
List columnKeys = new ArrayList();
|
List columnKeys = new ArrayList<Object>();
|
||||||
for (int i = 0; i < allKeys.length; i++) {
|
for (int i = 0; i < allKeys.length; i++) {
|
||||||
if (isColumnControlActionKey(allKeys[i])) {
|
if (isColumnControlActionKey(allKeys[i])) {
|
||||||
columnKeys.add(allKeys[i]);
|
columnKeys.add(allKeys[i]);
|
||||||
|
|
|
@ -118,7 +118,7 @@ public class CComboBoxEditable extends JComboBox
|
||||||
* @param items an array of vectors to insert into the combo box
|
* @param items an array of vectors to insert into the combo box
|
||||||
* @see DefaultComboBoxModel
|
* @see DefaultComboBoxModel
|
||||||
*/
|
*/
|
||||||
public CComboBoxEditable(Vector items)
|
public CComboBoxEditable(Vector<Object> items)
|
||||||
{
|
{
|
||||||
super(items);
|
super(items);
|
||||||
init();
|
init();
|
||||||
|
|
|
@ -378,8 +378,8 @@ public class CTable extends JTable
|
||||||
// teo_sarca: [ 1585369 ] CTable sorting is TOO LAZY
|
// teo_sarca: [ 1585369 ] CTable sorting is TOO LAZY
|
||||||
Collections.sort(model.getDataVector(), new Comparator<Object>() {
|
Collections.sort(model.getDataVector(), new Comparator<Object>() {
|
||||||
public int compare(Object o1, Object o2) {
|
public int compare(Object o1, Object o2) {
|
||||||
Object item1 = ((Vector)o1).get(modelColumnIndex);
|
Object item1 = ((Vector<Object>)o1).get(modelColumnIndex);
|
||||||
Object item2 = ((Vector)o2).get(modelColumnIndex);
|
Object item2 = ((Vector<Object>)o2).get(modelColumnIndex);
|
||||||
return sort.compare(item1, item2);
|
return sort.compare(item1, item2);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class ListModelTable extends ListModelList implements ListModelExt
|
||||||
/** The number of columns in the table. */
|
/** The number of columns in the table. */
|
||||||
private int m_noColumns;
|
private int m_noColumns;
|
||||||
|
|
||||||
private ListModelExt sorter = null;
|
private ListModelExt<Object> sorter = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default constructor.
|
* Default constructor.
|
||||||
|
@ -388,7 +388,7 @@ public class ListModelTable extends ListModelList implements ListModelExt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSorter(ListModelExt lme)
|
public void setSorter(ListModelExt<Object> lme)
|
||||||
{
|
{
|
||||||
sorter = lme;
|
sorter = lme;
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,8 +45,8 @@ public class SimpleListModel extends AbstractListModel<Object> implements Listit
|
||||||
this(new ArrayList<Object>());
|
this(new ArrayList<Object>());
|
||||||
}
|
}
|
||||||
|
|
||||||
public SimpleListModel(List list) {
|
public SimpleListModel(List<?> list) {
|
||||||
this.list = list;
|
this.list = (List<Object>)list;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Object getElementAt(int index) {
|
public Object getElementAt(int index) {
|
||||||
|
|
|
@ -168,7 +168,7 @@ public class BasketServlet extends HttpServlet
|
||||||
String sPrice = WebUtil.getParameter (request, "Price");
|
String sPrice = WebUtil.getParameter (request, "Price");
|
||||||
|
|
||||||
// Search for Product ID Add_134 = Add
|
// Search for Product ID Add_134 = Add
|
||||||
Enumeration en = request.getParameterNames ();
|
Enumeration<String> en = request.getParameterNames ();
|
||||||
while (M_Product_ID == 0 && en.hasMoreElements ())
|
while (M_Product_ID == 0 && en.hasMoreElements ())
|
||||||
{
|
{
|
||||||
String parameter = (String)en.nextElement ();
|
String parameter = (String)en.nextElement ();
|
||||||
|
@ -282,7 +282,7 @@ public class BasketServlet extends HttpServlet
|
||||||
{
|
{
|
||||||
log.log(Level.SEVERE, "Set CharacterEncoding=" + WebEnv.ENCODING, e);
|
log.log(Level.SEVERE, "Set CharacterEncoding=" + WebEnv.ENCODING, e);
|
||||||
}
|
}
|
||||||
Enumeration en = request.getParameterNames();
|
Enumeration<String> en = request.getParameterNames();
|
||||||
while (en.hasMoreElements())
|
while (en.hasMoreElements())
|
||||||
{
|
{
|
||||||
String parameter = (String)en.nextElement();
|
String parameter = (String)en.nextElement();
|
||||||
|
|
|
@ -150,7 +150,7 @@ public class Click extends HttpServlet
|
||||||
// Check parameters - /click?www...
|
// Check parameters - /click?www...
|
||||||
if (url == null || url.length() == 0)
|
if (url == null || url.length() == 0)
|
||||||
{
|
{
|
||||||
Enumeration e = request.getParameterNames ();
|
Enumeration<String> e = request.getParameterNames ();
|
||||||
if (e.hasMoreElements ())
|
if (e.hasMoreElements ())
|
||||||
url = (String)e.nextElement ();
|
url = (String)e.nextElement ();
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ package org.apache.ecs.storage;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
public class Array implements java.util.Enumeration, Serializable
|
public class Array implements java.util.Enumeration<Object>, Serializable
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -166,7 +166,7 @@ public class Array implements java.util.Enumeration, Serializable
|
||||||
return elements[location];
|
return elements[location];
|
||||||
}
|
}
|
||||||
|
|
||||||
public java.util.Enumeration elements()
|
public java.util.Enumeration<Object> elements()
|
||||||
{
|
{
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
|
@ -95,7 +95,7 @@ public class Hash implements java.io.Serializable
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Enumeration keys()
|
public Enumeration<Object> keys()
|
||||||
{
|
{
|
||||||
return keys;
|
return keys;
|
||||||
}
|
}
|
||||||
|
@ -113,7 +113,7 @@ public class Hash implements java.io.Serializable
|
||||||
return(true);
|
return(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Enumeration elements()
|
public Enumeration<Object> elements()
|
||||||
{
|
{
|
||||||
return elements;
|
return elements;
|
||||||
}
|
}
|
||||||
|
|
|
@ -504,7 +504,7 @@ public class a extends MultiPartElement
|
||||||
*/
|
*/
|
||||||
public boolean getNeedLineBreak ()
|
public boolean getNeedLineBreak ()
|
||||||
{
|
{
|
||||||
java.util.Enumeration en = elements ();
|
java.util.Enumeration<Element> en = elements ();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int j = 0;
|
int j = 0;
|
||||||
while (en.hasMoreElements ())
|
while (en.hasMoreElements ())
|
||||||
|
|
|
@ -561,7 +561,7 @@ public class td extends MultiPartElement
|
||||||
*/
|
*/
|
||||||
public boolean getNeedLineBreak ()
|
public boolean getNeedLineBreak ()
|
||||||
{
|
{
|
||||||
java.util.Enumeration en = elements ();
|
java.util.Enumeration<Element> en = elements ();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
int j = 0;
|
int j = 0;
|
||||||
while (en.hasMoreElements ())
|
while (en.hasMoreElements ())
|
||||||
|
|
|
@ -196,7 +196,7 @@ public class XML extends MultiPartElement
|
||||||
{
|
{
|
||||||
boolean linebreak = true;
|
boolean linebreak = true;
|
||||||
|
|
||||||
java.util.Enumeration en = elements ();
|
java.util.Enumeration<Element> en = elements ();
|
||||||
|
|
||||||
// if this tag has one child, and it's a String, then don't
|
// if this tag has one child, and it's a String, then don't
|
||||||
// do any linebreaks to preserve whitespace
|
// do any linebreaks to preserve whitespace
|
||||||
|
|
Loading…
Reference in New Issue