Hash table in version 1.5.0_06
Hi! I'm trying to compile this code and get the message "<identifier> expected" in the first line of the method, I was given the code and it is already tested and in production working fine, could be the problem that my java version is 1.5 and does accept this kind of hashtable declaration?
public Hashtable<Integer, String> dividirBDD(String nomVar,boolean guardarADisc)throws CreacioMatriuException, CreacioPropietatsException, IOException{
GestorMatriu[] matrius = matriusCarregades[matriuActual].dividirBDD(nomVar);
int l = matrius.length;
Hashtable<Integer, String> res =new Hashtable<Integer, String>();
if ((guardarADisc && numMatriusOcupades < maxMatrius) || numMatriusOcupades < maxMatrius - l){
int p = matriuActual +1;
for (int i = 0; i < l; i++){
if(null != matrius[i]){
while (matriusCarregades[p] !=null){
p = ++p % maxMatrius;
}
matriusCarregades[p] = matrius[i];
LlistaObjectes llObj = matriusCarregades[p].obtenirLlistaObjs();
if (llObj.obtenirLong() > 0){
String domVarValue = matriusCarregades[p].obtenirValorVariable(nomVar);
if (guardarADisc){
String fileName = matriusCarregades[p].obtenirNomMatriu() +"_" + domVarValue;
File tmpFile =new File(fileName);
fileName = tmpFile.getParent() + matriusCarregades[p].obtenirDirResultats() + tmpFile.getName();
matriusCarregades[p].desarMatriu(fileName);
matriusCarregades[p] =null;
}else{
String matrixName = matriusCarregades[p].obtenirNomMatriuRelatiu() +"_" + domVarValue;
res.put(p, matrixName);
p++;
numMatriusOcupades += 1;
}
}
}
}
}else{
logger.warning("No es pot dividir la BDD perque s'ha escedit el nombre mxim de matrius.");
thrownew CreacioMatriuException(
"No es pot dividir la BDD perque s'ha escedit el nombre mxim de matrius.");
}
return res;
}

