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