Skip to content

Commit

Permalink
Deprecate the defaultReadOnly property in favor of readOnlyByDefault
Browse files Browse the repository at this point in the history
  • Loading branch information
celkins committed Mar 5, 2014
1 parent aff2543 commit 233875d
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -334,8 +334,6 @@ public int get() {

private boolean checkConnectionOnReturn = false;

private boolean defaultReadOnly = false;

private boolean autoCommentsEnabled = true;

@NotNull
Expand Down Expand Up @@ -456,14 +454,16 @@ public void setCheckConnectionWhileIdle(boolean checkConnectionWhileIdle) {
this.checkConnectionWhileIdle = checkConnectionWhileIdle;
}

@Deprecated
@JsonProperty
public boolean isDefaultReadOnly() {
return defaultReadOnly;
return Boolean.TRUE.equals(readOnlyByDefault);
}

@Deprecated
@JsonProperty
public void setDefaultReadOnly(boolean defaultReadOnly) {
this.defaultReadOnly = defaultReadOnly;
readOnlyByDefault = Boolean.valueOf(defaultReadOnly);
}

@JsonIgnore
Expand Down

0 comments on commit 233875d

Please sign in to comment.