Remove UnresolvedQName.(qualified,unqualified) 00/103000/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 1 Nov 2022 16:31:59 +0000 (17:31 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 1 Nov 2022 16:31:59 +0000 (17:31 +0100)
These static factory methods have been superseded, remove them.

Change-Id: I2036a619cbc288a38a66390d4983faba060e6732
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/UnresolvedQName.java

index c9cdb97c3971b3b256771e7b1f87aa240ff38750..274480404ffa1f12106535f85e393ada94f075ba 100644 (file)
@@ -226,35 +226,6 @@ public abstract sealed class UnresolvedQName extends AbstractQName {
         super(localName);
     }
 
-    /**
-     * Create a new qualified unresolved QName.
-     *
-     * @param prefix The prefix on this qualified QName
-     * @param localName The local name of this qualified QName
-     * @return An UnqualifiedQName instance
-     * @throws NullPointerException if any argument is {@code null}
-     * @throws IllegalArgumentException if {@code localName} is not a valid YANG identifier
-     * @deprecated Use {@link Qualified#of(String, String)} instead.
-     */
-    @Deprecated(since = "9.0.0", forRemoval = true)
-    public static Qualified qualified(final String prefix, final String localName) {
-        return Qualified.of(prefix, localName);
-    }
-
-    /**
-     * Create a new unqualified unresolved QName.
-     *
-     * @param localName The local name of this unqualified QName
-     * @return An UnqualifiedQName instance
-     * @throws NullPointerException if localName is {@code null}
-     * @throws IllegalArgumentException if {@code localName} is not a valid YANG identifier
-     * @deprecated Use {@link Unqualified#of(String)} instead.
-     */
-    @Deprecated(since = "9.0.0", forRemoval = true)
-    public static Unqualified unqualified(final String localName) {
-        return Unqualified.of(localName);
-    }
-
     /**
      * Try to create a new unqualified QName.
      *