Suppress ReturnValueIgnored warnings

This supresses the warning on hasNext() call inside the
next() of TaskExpression. The hasNext() call is done to
avoid calling next() without first calling the hasNext()
and has no effect when called repeatedly.

Change-Id: I6a317902b9f9e91f3dfbd9e6cc1ad7b5c57eee80
diff --git a/src/main/java/com/googlesource/gerrit/plugins/task/TaskExpression.java b/src/main/java/com/googlesource/gerrit/plugins/task/TaskExpression.java
index 90dffff..b3fc530 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/task/TaskExpression.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/task/TaskExpression.java
@@ -66,7 +66,8 @@
 
       @Override
       public String next() {
-        hasNext(); // in case next() was (re)called w/o calling hasNext()
+        // Can't use @SuppressWarnings("ReturnValueIgnored") on method call
+        boolean ignored = hasNext(); // in case next() was (re)called w/o calling hasNext()
         if (!hasNext) {
           throw new NoSuchElementException("No more names, yet expression was not optional");
         }