Skip to content

Commit

Permalink
Remove deprecated writeVersionAsString
Browse files Browse the repository at this point in the history
Use writeVersionAsInteger with opposite value instead
  • Loading branch information
philsttr committed Jun 26, 2021
1 parent c653de7 commit 746c5aa
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 114 deletions.
18 changes: 0 additions & 18 deletions src/main/java/net/logstash/logback/LogstashAccessFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -272,24 +272,6 @@ public void setVersion(String version) {
this.versionProvider.setVersion(version);
}


/**
* @deprecated Use {@link #isWriteVersionAsInteger()}
* @return true if the version should be written as a string
*/
@Deprecated
public boolean isWriteVersionAsString() {
return this.versionProvider.isWriteAsString();
}
/**
* @deprecated Use {@link #setWriteVersionAsInteger(boolean)}
* @param writeVersionAsString true if the version should be written as a string
*/
@Deprecated
public void setWriteVersionAsString(boolean writeVersionAsString) {
this.versionProvider.setWriteAsString(writeVersionAsString);
}

public boolean isWriteVersionAsInteger() {
return this.versionProvider.isWriteAsInteger();
}
Expand Down
18 changes: 0 additions & 18 deletions src/main/java/net/logstash/logback/LogstashFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -330,24 +330,6 @@ public void setVersion(String version) {
this.versionProvider.setVersion(version);
}


/**
* @deprecated Use {@link #isWriteVersionAsInteger()}
* @return true if the version should be written as a string
*/
@Deprecated
public boolean isWriteVersionAsString() {
return this.versionProvider.isWriteAsString();
}
/**
* @deprecated Use {@link #setWriteVersionAsInteger(boolean)}
* @param writeVersionAsString true if the version should be written as a string
*/
@Deprecated
public void setWriteVersionAsString(boolean writeVersionAsString) {
this.versionProvider.setWriteAsString(writeVersionAsString);
}

public boolean isWriteVersionAsInteger() {
return this.versionProvider.isWriteAsInteger();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,6 @@ public void setVersion(String version) {
}
}

/**
* @deprecated Use {@link #isWriteAsInteger()}
*/
@Deprecated
public boolean isWriteAsString() {
return !isWriteAsInteger();
}
/**
* @deprecated Use {@link #setWriteAsInteger(boolean)}
*/
@Deprecated
public void setWriteAsString(boolean writeAsString) {
setWriteAsInteger(!writeAsString);
}

public boolean isWriteAsInteger() {
return writeAsInteger;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,21 +121,6 @@ public void setVersion(String version) {
getFormatter().setVersion(version);
}

/**
* @deprecated Use {@link #isWriteVersionAsInteger()}
*/
@Deprecated
public boolean isWriteVersionAsString() {
return getFormatter().isWriteVersionAsString();
}
/**
* @deprecated Use {@link #setWriteVersionAsInteger(boolean)}
*/
@Deprecated
public void setWriteVersionAsString(boolean writeVersionAsString) {
getFormatter().setWriteVersionAsString(writeVersionAsString);
}

public boolean isWriteVersionAsInteger() {
return getFormatter().isWriteVersionAsInteger();
}
Expand Down
16 changes: 0 additions & 16 deletions src/main/java/net/logstash/logback/encoder/LogstashEncoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,22 +178,6 @@ public void setVersion(String version) {
getFormatter().setVersion(version);
}


/**
* @deprecated Use {@link #isWriteVersionAsInteger()}
*/
@Deprecated
public boolean isWriteVersionAsString() {
return getFormatter().isWriteVersionAsString();
}
/**
* @deprecated Use {@link #setWriteVersionAsInteger(boolean)}
*/
@Deprecated
public void setWriteVersionAsString(boolean writeVersionAsString) {
getFormatter().setWriteVersionAsString(writeVersionAsString);
}

public boolean isWriteVersionAsInteger() {
return getFormatter().isWriteVersionAsInteger();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,22 +121,6 @@ public void setVersion(String version) {
getFormatter().setVersion(version);
}


/**
* @deprecated Use {@link #isWriteVersionAsInteger()}
*/
@Deprecated
public boolean isWriteVersionAsString() {
return getFormatter().isWriteVersionAsString();
}
/**
* @deprecated Use {@link #setWriteVersionAsInteger(boolean)}
*/
@Deprecated
public void setWriteVersionAsString(boolean writeVersionAsString) {
getFormatter().setWriteVersionAsString(writeVersionAsString);
}

public boolean isWriteVersionAsInteger() {
return getFormatter().isWriteVersionAsInteger();
}
Expand Down
16 changes: 0 additions & 16 deletions src/main/java/net/logstash/logback/layout/LogstashLayout.java
Original file line number Diff line number Diff line change
Expand Up @@ -175,22 +175,6 @@ public void setVersion(String version) {
getFormatter().setVersion(version);
}


/**
* @deprecated Use {@link #isWriteVersionAsInteger()}
*/
@Deprecated
public boolean isWriteVersionAsString() {
return getFormatter().isWriteVersionAsString();
}
/**
* @deprecated Use {@link #setWriteVersionAsInteger(boolean)}
*/
@Deprecated
public void setWriteVersionAsString(boolean writeVersionAsString) {
getFormatter().setWriteVersionAsString(writeVersionAsString);
}

public boolean isWriteVersionAsInteger() {
return getFormatter().isWriteVersionAsInteger();
}
Expand Down

0 comments on commit 746c5aa

Please sign in to comment.