Details
-
Suggestion
-
Resolution: Won't Fix
-
None
Description
Problem:
Database entities are already in c.a.c.api.registry package.
However, in order to load the database you have to call an inner class, for example:
import com.atlassian.clover.CloverDatabase; // XXX internal class import com.atlassian.clover.CoverageDataSpec; // XXX internal class import com.atlassian.clover.api.registry.ProjectInfo; // ... CloverDatabase db = CloverDatabase.loadWithCoverage(args[0], new CoverageDataSpec()); ProjectInfo projectInfo = db.getRegistry().getProject();
Fix:
Create proper interfaces and a factory hiding the CoverageDataSpec and CloverDatabase.