Document comparison API has deprecated classes in Java

I’m in the process of evaluating GroupDocs.Comparison for Java. While looking building and running the showcase as well as looking at the API documentation it strikes me that a lot of classes are marked as deprecated. Even the core Comparison class is deprecated. What’s the deal here? What alternative class(es) should I use?

@inceptionEhv,

We have changed the API structure since version 20.x. Please have a look at the release notes. Document comparison has become a lot easier with this change.
Have a look at the basic comparison code:

Comparer comparer = new Comparer("source.docx");
try {
    comparer.add("target.docx");
    CompareOptions compareOptions = new CompareOptions();
    compareOptions.setDetectStyleChanges(true);
    comparer.compare("result.docx", compareOptions);
} finally {
    comparer.dispose();
}

You may find following resources helpful: