Free Support Forum -

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?


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 {
    CompareOptions compareOptions = new CompareOptions();
    compareOptions.setDetectStyleChanges(true);"result.docx", compareOptions);
} finally {

You may find following resources helpful: