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

nizhikov pushed a commit to branch IGNITE-15629
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/IGNITE-15629 by this push:
     new 5912d746088 IGNITE-15629 Javadoc fix + cleanup
5912d746088 is described below

commit 5912d74608837defa12ace4baa3186e4ed8b1c57
Author: nizhikov <[email protected]>
AuthorDate: Tue Jun 6 17:32:29 2023 +0300

    IGNITE-15629 Javadoc fix + cleanup
---
 .../internal/util/lang/PeekableIterator.java       | 70 ----------------------
 .../java/org/apache/ignite/mxbean/QueryMXBean.java |  4 --
 .../org/apache/ignite/mxbean/ServiceMXBean.java    |  3 -
 .../apache/ignite/mxbean/TransactionsMXBean.java   |  2 -
 4 files changed, 79 deletions(-)

diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/util/lang/PeekableIterator.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/util/lang/PeekableIterator.java
deleted file mode 100644
index bf3ed426bd0..00000000000
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/util/lang/PeekableIterator.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.util.lang;
-
-import java.util.Iterator;
-import java.util.NoSuchElementException;
-
-/**
- * Iterator extension that adds {@link #peek()} method to get element without 
moving to the next.
- */
-public class PeekableIterator<T1> implements Iterator<T1> {
-    /** Underlying iterator. */
-    private final Iterator<T1> iter;
-
-    /** Peeked element. */
-    private T1 peeked;
-
-    /**
-     * @param iter Underlying iterator.
-     */
-    public PeekableIterator(Iterator<T1> iter) {
-        this.iter = iter;
-    }
-
-    /**
-     * Peek and return the next element in the iteration.
-     *
-     * @return the next element in the iteration.
-     * @throws NoSuchElementException if the iteration has no more elements.
-     */
-    public T1 peek() {
-        if (peeked == null && iter.hasNext())
-            peeked = iter.next();
-
-        return peeked;
-    }
-
-    /** {@inheritDoc} */
-    @Override public boolean hasNext() {
-        return peeked != null || iter.hasNext();
-    }
-
-    /** {@inheritDoc} */
-    @Override public T1 next() {
-        if (peeked != null) {
-            T1 peeked0 = peeked;
-
-            peeked = null;
-
-            return peeked0;
-        }
-
-        return iter.next();
-    }
-}
diff --git 
a/modules/core/src/main/java/org/apache/ignite/mxbean/QueryMXBean.java 
b/modules/core/src/main/java/org/apache/ignite/mxbean/QueryMXBean.java
index bff12adfd34..6334c4655bb 100644
--- a/modules/core/src/main/java/org/apache/ignite/mxbean/QueryMXBean.java
+++ b/modules/core/src/main/java/org/apache/ignite/mxbean/QueryMXBean.java
@@ -23,11 +23,7 @@ import org.apache.ignite.spi.systemview.view.SqlQueryView;
 
 /**
  * Query MXBean interface.
- *
- * @see 
org.apache.ignite.internal.management.jmx.JmxCommandsRegistryInvokerPlugin
- * @deprecated Use Management API instead.
  */
-@Deprecated
 public interface QueryMXBean {
     /**
      * Kills continuous query by the identifier.
diff --git 
a/modules/core/src/main/java/org/apache/ignite/mxbean/ServiceMXBean.java 
b/modules/core/src/main/java/org/apache/ignite/mxbean/ServiceMXBean.java
index a14f74ee30a..4897d216597 100644
--- a/modules/core/src/main/java/org/apache/ignite/mxbean/ServiceMXBean.java
+++ b/modules/core/src/main/java/org/apache/ignite/mxbean/ServiceMXBean.java
@@ -21,9 +21,6 @@ import org.apache.ignite.spi.systemview.view.ServiceView;
 
 /**
  * Service MXBean interface.
- *
- * @see 
org.apache.ignite.internal.management.jmx.JmxCommandsRegistryInvokerPlugin
- * @deprecated Use Management API instead.
  */
 public interface ServiceMXBean {
     /**
diff --git 
a/modules/core/src/main/java/org/apache/ignite/mxbean/TransactionsMXBean.java 
b/modules/core/src/main/java/org/apache/ignite/mxbean/TransactionsMXBean.java
index 5163be82e58..e9e65f44607 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/mxbean/TransactionsMXBean.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/mxbean/TransactionsMXBean.java
@@ -67,8 +67,6 @@ public interface TransactionsMXBean {
      *
      * @param xid Transaction xid.
      * @see TransactionView#xid()
-     * @see 
org.apache.ignite.internal.management.jmx.JmxCommandsRegistryInvokerPlugin
-     * @deprecated Use Management API instead.
      */
     @MXBeanDescription("Kills transactions by the xid.")
     public void cancel(

Reply via email to