JVM MEMORY LEAK
1) DataCell.java
public class DataCell
{
public String value = null;
public String href = null;
public String image = null;
public String align = "left";
/**
* Describe constructor here.
*
*/
public DataCell()
{
}
/**
* Describe constructor here.
*
* @param _value a value of type 'String'
* @param _href a value of type 'String'
* @param _image a value of type 'String'
* @param _align a value of type 'String'
*/
public DataCell(String _value, String _href, String _image, String _align)
{
value = _value;
href = _href;
image = _image;
align = _align;
}
/**
* Get the value of value.
* @return Value of value.
*/
public String getValue()
{
return value;
}
/**
* Set the value of value.
* @param v Value to assign to value.
*/
public void setValue(String v)
{
this.value = v;
}
}
2) DataRow.java
public class DataRow
{
public DataCell[] cells;
public booleanisHeader = false;
public booleanisFooter = false;
/**
* Describe constructor here.
*
*/
public DataRow()
{
}
/**
* Describe constructor here.
*
* @param _columns a value of type 'int'
*/
public DataRow(int _columns)
{
cells = new DataCell[_columns];
for (int i = 0; i < _columns; i++)
{
cells = new DataCell();
}
}
}
The above java files are causing JVM Memory leak. I don't know where it is occuring. Please help me in fixing this issue.

