1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-26 06:12:06 +01:00

Add hints about usage of deprecated methods

This commit is contained in:
Paul Schaub 2022-12-15 12:20:28 +01:00
parent 93208ee7bb
commit 43a29729ad
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311
2 changed files with 2 additions and 0 deletions

View file

@ -287,6 +287,7 @@ public class ConsumerOptions {
* @return options * @return options
*/ */
@Deprecated @Deprecated
// Is used to be compatible with legacy systems
public ConsumerOptions setIgnoreMDCErrors(boolean ignoreMDCErrors) { public ConsumerOptions setIgnoreMDCErrors(boolean ignoreMDCErrors) {
this.ignoreMDCErrors = ignoreMDCErrors; this.ignoreMDCErrors = ignoreMDCErrors;
return this; return this;

View file

@ -245,6 +245,7 @@ public final class ProducerOptions {
* @deprecated options other than the default value of {@link StreamEncoding#BINARY} are discouraged. * @deprecated options other than the default value of {@link StreamEncoding#BINARY} are discouraged.
*/ */
@Deprecated @Deprecated
// is used to be compatible with legacy systems
public ProducerOptions setEncoding(@Nonnull StreamEncoding encoding) { public ProducerOptions setEncoding(@Nonnull StreamEncoding encoding) {
this.encodingField = encoding; this.encodingField = encoding;
return this; return this;