b1412 / jfinal-ext

Our extensions for jfinal
277 stars 236 forks source link

AutoBindRoutes checkArgument方法调用是不是有点问题啊 #4

Closed tidezyc closed 10 years ago

tidezyc commented 11 years ago

Preconditions.checkArgument(!clazz.getSimpleName().endsWith(suffix), clazz.getSimpleName()+ " does not has a ControllerBind annotation and it,s name is not end with " + suffix);

多了个!吧…… public static void checkArgument(boolean expression, Object errorMessage) { if(!expression) throw new IllegalArgumentException(String.valueOf(errorMessage)); else return; }

b1412 commented 11 years ago

确实是。。多谢