Commit b06cc04c authored by Daniel Gerhardt's avatar Daniel Gerhardt

Add checkerframework Maven dependency

Additionally, made first use of it in CouchDBDao.
parent 7f929e08
......@@ -295,6 +295,11 @@
<artifactId>metrics-annotation</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>org.checkerframework</groupId>
<artifactId>checker-qual</artifactId>
<version>2.1.9</version>
</dependency>
</dependencies>
<build>
......
......@@ -39,6 +39,7 @@ import net.sf.ezmorph.bean.BeanMorpher;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import net.sf.json.util.JSONUtils;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.framework.AopContext;
......@@ -122,7 +123,7 @@ public class CouchDBDao implements IDatabaseDao, ApplicationEventPublisherAware
* implemented (e.g. use of AspectJ's weaving).
* @return the proxy for CouchDBDao
*/
private IDatabaseDao getDatabaseDao() {
private @NonNull IDatabaseDao getDatabaseDao() {
return (IDatabaseDao) AopContext.currentProxy();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment