Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NoSuchMethodError when running Checkstyle 5.5 in Play 2.2 project?

I previously had Checkstyle implemented as an sbt task in Play 2.1. As of Play 2.2, I get the following error:

[error] (*:checkstyle) java.lang.NoSuchMethodError:  com.google.common.collect.ImmutableSortedSet.of([Ljava/lang/Comparable;)Lcom/google/common/collect/ImmutableSortedSet;

A simple Play project illustrating this problem in detail is available here.

Can anyone provide insight into how to fix this problem?

like image 834
Philip Johnson Avatar asked Oct 01 '22 22:10

Philip Johnson


1 Answers

The problem, as Robin Green notes, is due an unfixed bug in the implementation of the JavadocStyleCheck. Removing that check from the configuration XML file fixes the problem.

like image 117
Philip Johnson Avatar answered Oct 05 '22 13:10

Philip Johnson