a minor delegation fix
@@ -53,14 +53,6 @@ public class JsonGeneratorDelegate extends JsonGenerator
delegate.setCurrentValue(v);
}
- /*
- /**********************************************************
- /* Extended API
- /**********************************************************
- */
-
- public JsonGenerator getDelegate() { return delegate; }
-
/*
/**********************************************************
/* Public API, metadata
@@ -101,6 +93,9 @@ public class JsonGeneratorDelegate extends JsonGenerator
@Override
public boolean canOmitFields() { return delegate.canOmitFields(); }
+ @Override
+ public boolean canWriteFormattedNumbers() { return delegate.canWriteFormattedNumbers(); }
+
/*
/**********************************************************
/* Public API, configuration
@@ -483,4 +478,18 @@ public class JsonGeneratorDelegate extends JsonGenerator
*/
@Override public boolean isClosed() { return delegate.isClosed(); }
+
+ /*
+ /**********************************************************
+ /* Extended API
+ /**********************************************************
+ */
+
+ @Deprecated // since 2.11
+ public JsonGenerator getDelegate() { return delegate; }
+
+ /**
+ * @since 2.11
+ */
+ public JsonGenerator delegate() { return delegate; }
}
