1
我在eclipse中使用Checkstyle Plug-in 5.7.0与Java 8。我得到Got an exception - expecting EOF, found 'throw'
在我的界面默认方法。你能帮我解决我的检查方式吗?以下是方法CheckStyle 5.7.0。与Java 8
default void validate(final String fieldName) {
if (StringUtils.isEmpty(fieldValue)) {
throw new RuntimeException(""); //check style error here
}
}
即使我删除了方法体,我得到了相同的错误结束大括号。似乎checkstyle不支持在接口中使用body的方法。
你有:[Checkstyle 5.9](http://checkstyle.sourceforge.net/releasenotes.html#Release_5.9) – 2014-10-18 05:36:21