Disconnect QueryParameters from WriterParameters
[netconf.git] / restconf / restconf-common / src / main / java / org / opendaylight / restconf / common / context / WriterParameters.java
index 0453430d7ea05ba774cd05b203efba82ed98bdd3..e7631320ae099c5a7197bf549618008ef43958d1 100644 (file)
@@ -7,13 +7,14 @@
  */
 package org.opendaylight.restconf.common.context;
 
-public class WriterParameters {
+@Deprecated(forRemoval = true, since = "2.0.6")
+public final class WriterParameters {
     static final WriterParameters EMPTY = new WriterParametersBuilder().build();
 
     private final Integer depth;
     private final boolean prettyPrint;
 
-    protected WriterParameters(final WriterParametersBuilder builder) {
+    private WriterParameters(final WriterParametersBuilder builder) {
         depth = builder.depth;
         prettyPrint = builder.prettyPrint;
     }
@@ -26,14 +27,11 @@ public class WriterParameters {
         return prettyPrint;
     }
 
-    public static class WriterParametersBuilder {
+    @Deprecated(forRemoval = true, since = "2.0.6")
+    public static final class WriterParametersBuilder {
         private Integer depth;
         private boolean prettyPrint;
 
-        public WriterParametersBuilder() {
-
-        }
-
         public WriterParametersBuilder setDepth(final int depth) {
             this.depth = depth;
             return this;