Hi ,
I am using a small error when I am using override annotations. I fail to understand why. Can any body pl help me out ?
My code looks something like this :
//@Override
public ArrayList<
String> call() {
/* to guard against multiple invocations, synchronize on uniqueId */
String uniqueId = institutionId.intern();
synchronized (uniqueId) {
ArrayList<String> l = opacBaseList.get(uniqueId);
if (l == null) {
l = findOpacBase(uniqueId);
if (l.size() > 0) {
opacBaseList.put(uniqueId, l);
if (Config.verbose) {
Utils.printLog("OCLC: %s baseopacurl(s): %s", uniqueId, l);
}
}
}
return l;
}
When I comment out the annotation I am able to compile. If I remove the comment for the line ----> @override , it gives me the following error:
The method call() of type new Callable<ArrayList><String>>(){}
must override a superclass method
Am not able to figure out what could be the problem.