feilong
feilong copied to clipboard
让Java开发更简便的工具库
![image](https://cloud.githubusercontent.com/assets/3479472/24238053/de801816-0fe3-11e7-81fe-6f2b9534ce04.png)
![image](https://user-images.githubusercontent.com/3479472/62260892-2a2fd900-b446-11e9-87a0-6b11e4ebb455.png)
![image](https://user-images.githubusercontent.com/28173035/43199485-b9da995e-9044-11e8-8afa-ca70aaf6119d.png)
AbstractResponseStringBuilder 支持 cache 的可行性
日志条件可以封装
```JAVA BookIdModel bookIdModel = categoryDao.querylibId, catalogId); if (null == bookIdModel){ if (LOGGER.isErrorEnabled()){ LOGGER.error("libId:[{}],catalogId:[{}]", libId, catalogId); } return null; } ```
使用jdk8 新的javadoc api 比如 @implSpec https://blog.csdn.net/dnc8371/article/details/107265585 原文 https://www.javacodegeeks.com/2015/01/new-javadoc-tags-apinote-implspec-and-implnote.html JDK广泛使用新标签。 一些例子: [ConcurrentMap](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentMap.html) : 几个@implSpec定义默认实现的行为,例如在[replaceAll](https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentMap.html#replaceAll-java.util.function.BiFunction-) 。 [Objects](https://docs.oracle.com/javase/8/docs/api/java/util/Objects.html)使用@apiNote解释为什么添加了看似无用的方法[isNull](https://docs.oracle.com/javase/8/docs/api/java/util/Objects.html#isNull-java.lang.Object-)和[nonNull](https://docs.oracle.com/javase/8/docs/api/java/util/Objects.html#nonNull-java.lang.Object-) 。 抽象类[Clock](https://docs.oracle.com/javase/8/docs/api/java/time/Clock.html)在其类注释中使用@implSpec和@implNote来区分必须注意哪些实现以及如何实现现有方法。 The new Javadoc tags are explained pretty well in the feature request’s description...