Remove JSONCodecFactory.create(SchemaContext) 36/65036/5
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 2 Nov 2017 09:35:33 +0000 (10:35 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 3 Nov 2017 15:46:02 +0000 (16:46 +0100)
This method has been deprecated in favor of various static factory
methods, like getShared(), getPrecomputed(), createLazy() and similar.
Those offer various computation strategies and allow users to better
fine-tune memory/cpu overhead trade-offs based on their use. Remove
the old create() method.

Change-Id: I01bb4063be2273bc7f5cc3e2361b23c01ffa11bf
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-codec-gson/src/main/java/org/opendaylight/yangtools/yang/data/codec/gson/JSONCodecFactory.java

index cdc14de61d31cbbab5da5c02c17203d7537482ed..21a640af16a0625ade22bb0178dee675321bdcc5 100644 (file)
@@ -111,19 +111,6 @@ public final class JSONCodecFactory extends AbstractCodecFactory<JSONCodec<?>> {
         iidCodec = new JSONStringInstanceIdentifierCodec(context, this);
     }
 
-    /**
-     * Instantiate a new codec factory attached to a particular context.
-     *
-     * @param context SchemaContext to which the factory should be bound
-     * @return A codec factory instance.
-     *
-     * @deprecated Use {@link #getShared(SchemaContext)} instead.
-     */
-    @Deprecated
-    public static JSONCodecFactory create(final SchemaContext context) {
-        return getShared(context);
-    }
-
     /**
      * Get a thread-safe, eagerly-caching {@link JSONCodecFactory} for a SchemaContext. This method can, and will,
      * return the same instance as long as the associated SchemaContext is present. Returned object can be safely