Pessoal, qual será o erro nessa classe?
package com.luxfacta.farmaco.utils;
import com.luxfacta.farmaco.vo.ListaMedra;
import com.luxfacta.farmaco.view.ViewNamesTerm;
import com.luxfacta.farmaco.viewarray.ViewNamesTermArray;
public class Generate {
int agrupCount = 0;
int[] agrup = new int[99];
private StringBuffer sb = null;
ListaMedra lm = new ListaMedra();
private void fAgrup(lmAr) {
int agrupCountInicial = agrupCount;
for (int i = 0; i < lmAr.size(); i++) {
if (agrup[agrupCount] == 0)
break;
ListaMedra lm = (ListaMedra) lmAr.get(i);
if (lm.getID_MEDRA() == agrup[agrupCount]) {
agrupCount++;
}
else if (lmAr != null && lmAr.size() > 0) {
fAgrup(lmAr);
}
if (agrupCountInicial < agrupCount) {
i = -1;
agrupCountInicial = agrupCount;
}
}
}
ViewNamesTermArray vntAr = new ViewNamesTermArray();
for (int i = 0; i < vntAr.size(); i++){
ViewNamesTerm vnt = ((ViewNamesTerm) vntAr.get(i));
lm.setID_MEDRA(vnt.getLLT_CODE());
lm.setLISTA_MEDRA(vntAr.sort("LLT_CODE"));
ArrayList lmAr = new ArrayList();
lmAr = lm.getLISTA_MEDRA();
agrup[agrupCount] = lm.getID_MEDRA();
fAgrup(lmAr);
sb = new StringBuffer();
createRow(lmAr,sb,ListaMedra);
return sb.toString();
}
}