Remove Indexed.cast() 91/104691/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 2 Mar 2023 08:19:16 +0000 (09:19 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 2 Mar 2023 08:21:26 +0000 (09:21 +0100)
This method is not used anywhere and elicits a warnings, remove it.

JIRA: CONTROLLER-2071
Change-Id: I2b7040d3699a3e9a57b82ecdf02508c3df43c491
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
third-party/atomix/storage/src/main/java/io/atomix/storage/journal/Indexed.java

index bfbd8cbc4c9121903f9e5ed1a0984ad5d5f3285b..cfb6a6750bf7cc1af4cdff39fef69246c5cfa54b 100644 (file)
@@ -67,16 +67,6 @@ public class Indexed<E> {
     return entry.getClass();
   }
 
-  /**
-   * Casts the entry to the given type.
-   *
-   * @return The cast entry.
-   */
-  @SuppressWarnings("unchecked")
-  public <E> Indexed<E> cast() {
-    return (Indexed<E>) this;
-  }
-
   @Override
   public String toString() {
     return toStringHelper(this)