1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-12-23 19:38:00 +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
*/
@Deprecated
// Is used to be compatible with legacy systems
public ConsumerOptions setIgnoreMDCErrors(boolean ignoreMDCErrors) {
this.ignoreMDCErrors = ignoreMDCErrors;
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
// is used to be compatible with legacy systems
public ProducerOptions setEncoding(@Nonnull StreamEncoding encoding) {
this.encodingField = encoding;
return this;