* removed by the garbage collector.
*
* @return the loaded result
*/
private JavaProject loadResult() {
JavaProject result;
try {
JavaProject newProject = new JavaProject();
FileAnnotation[] annotations = (FileAnnotation[])getDataFile().read();
newProject.addAnnotations(annotations);
LOGGER.log(Level.FINE, "Loaded data file " + getDataFile() + " for build " + getOwner().getNumber());
result = newProject;
}
catch (IOException exception) {
LOGGER.log(Level.WARNING, "Failed to load " + getDataFile(), exception);
result = new JavaProject();
}
project = new WeakReference<JavaProject>(result);
return result;
}