You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/05/25 15:00:23 UTC

[commons-jexl] branch master updated: Add @SuppressWarnings and @Deprecated.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jexl.git


The following commit(s) were added to refs/heads/master by this push:
     new ad4eee7  Add @SuppressWarnings and @Deprecated.
ad4eee7 is described below

commit ad4eee79cdccbb00284608adf925f82db55d59c7
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon May 25 11:00:18 2020 -0400

    Add @SuppressWarnings and @Deprecated.
---
 src/main/java/org/apache/commons/jexl3/JexlEngine.java                 | 1 +
 .../org/apache/commons/jexl3/internal/introspection/ArrayIterator.java | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/src/main/java/org/apache/commons/jexl3/JexlEngine.java b/src/main/java/org/apache/commons/jexl3/JexlEngine.java
index 28e8808..56d079f 100644
--- a/src/main/java/org/apache/commons/jexl3/JexlEngine.java
+++ b/src/main/java/org/apache/commons/jexl3/JexlEngine.java
@@ -109,6 +109,7 @@ public abstract class JexlEngine {
      * <p>The JexlContext used for evaluation can implement this interface to alter behavior.</p>
      * @deprecated 3.2
      */
+    @Deprecated
     public interface Options {
 
         /**
diff --git a/src/main/java/org/apache/commons/jexl3/internal/introspection/ArrayIterator.java b/src/main/java/org/apache/commons/jexl3/internal/introspection/ArrayIterator.java
index e5a461d..e65e12d 100644
--- a/src/main/java/org/apache/commons/jexl3/internal/introspection/ArrayIterator.java
+++ b/src/main/java/org/apache/commons/jexl3/internal/introspection/ArrayIterator.java
@@ -68,6 +68,7 @@ public class ArrayIterator implements Iterator<Object> {
      *
      * @return The next object in the array.
      */
+    @Override
     public Object next() {
         if (pos < size) {
             return Array.get(array, pos++);
@@ -82,6 +83,7 @@ public class ArrayIterator implements Iterator<Object> {
      *
      * @return Whether there is another element.
      */
+    @Override
     public boolean hasNext() {
         return (pos < size);
     }
@@ -89,6 +91,7 @@ public class ArrayIterator implements Iterator<Object> {
     /**
      * No op--merely added to satify the <code>Iterator</code> interface.
      */
+    @Override
     public void remove() {
         throw new UnsupportedOperationException();
     }