Skip to content

Commit

Permalink
fix checkstyle and spotbugs
Browse files Browse the repository at this point in the history
  • Loading branch information
CarstenHollmann committed Feb 17, 2022
1 parent 09989e7 commit 68d9259
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class JsonConfiguration implements Destroyable,
private static final String WEB_INF_PATH = "WEB-INF";
private String fileName = DEFAULT_FILE_NAME;
private int writeTimeout = DEFAULT_WRITE_TIMEOUT;
private boolean readonly = false;
private boolean readonly;
private final ReadWriteLock lock = new ReentrantReadWriteLock();
private final JsonNodeFactory nodeFactory = Json.nodeFactory();
private ObjectNode configuration;
Expand Down Expand Up @@ -171,13 +171,13 @@ public void set(ObjectNode configuration) {
public void setWriteTimeout(int writeTimeout) {
this.writeTimeout = writeTimeout;
}

/**
* Sets the flag to persist or not persist the settings, e.g. settings defined externally
*
* @param readonly the flag to persist settings or not
*/
public void setReadonly(boolean readonly) {
public synchronized void setReadonly(boolean readonly) {
this.readonly = readonly;
}

Expand Down

0 comments on commit 68d9259

Please sign in to comment.