Remove {String,UUID}Identifier 86/39886/2
authorRobert Varga <rovarga@cisco.com>
Mon, 6 Jun 2016 13:24:40 +0000 (15:24 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Wed, 15 Jun 2016 18:29:27 +0000 (18:29 +0000)
These do not provide proper identity, as differing users
will end up creating same identifiers. Use their abstract
counterparts to properly split the namespace.

Change-Id: I6b4c063519cee969e11b5c29ab798eeeb1982435
Signed-off-by: Robert Varga <rovarga@cisco.com>
common/util/src/main/java/org/opendaylight/yangtools/util/StringIdentifier.java [deleted file]
common/util/src/main/java/org/opendaylight/yangtools/util/UUIDIdentifier.java [deleted file]

diff --git a/common/util/src/main/java/org/opendaylight/yangtools/util/StringIdentifier.java b/common/util/src/main/java/org/opendaylight/yangtools/util/StringIdentifier.java
deleted file mode 100644 (file)
index 232f652..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.util;
-
-import com.google.common.annotations.Beta;
-import org.opendaylight.yangtools.concepts.Identifier;
-
-/**
- * Utility {@link Identifier} backed by a {@link String}.
- *
- * @deprecated Treats instantiations as equal, not providing safety against mixing instances from different modules.
- *             Use a subclass of {@link AbstractStringIdentifier} instead.
- */
-@Deprecated
-@Beta
-public final class StringIdentifier extends AbstractStringIdentifier<StringIdentifier> {
-    private static final long serialVersionUID = 1L;
-
-    public StringIdentifier(final String string) {
-        super(string);
-    }
-
-    /**
-     * @deprecated use {@link #getValue()} instead.
-     * @return
-     */
-    @Deprecated
-    public String getString() {
-        return getValue();
-    }
-}
diff --git a/common/util/src/main/java/org/opendaylight/yangtools/util/UUIDIdentifier.java b/common/util/src/main/java/org/opendaylight/yangtools/util/UUIDIdentifier.java
deleted file mode 100644 (file)
index 2f448ff..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.yangtools.util;
-
-import com.google.common.annotations.Beta;
-import java.util.UUID;
-import org.opendaylight.yangtools.concepts.Identifier;
-
-/**
- * Utility {@link Identifier} backed by a {@link UUID}.
- *
- * @deprecated Treats instantiations as equal, not providing safety against mixing instances from different modules.
- *             Use a subclass of {@link AbstractUUIDIdentifier} instead.
- */
-@Deprecated
-@Beta
-public final class UUIDIdentifier extends AbstractUUIDIdentifier<UUIDIdentifier> {
-    private static final long serialVersionUID = 1L;
-
-    public UUIDIdentifier(final UUID uuid) {
-        super(uuid);
-    }
-
-    /**
-     * @deprecated Use {@link #getValue()} instead.
-     */
-    @Deprecated
-    public UUID getUuid() {
-        return getValue();
-    }
-}