Skip to content

Commit

Permalink
Remove default value from property keepMirror
Browse files Browse the repository at this point in the history
  • Loading branch information
spannm committed Feb 9, 2025
1 parent 25698ce commit f208450
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/main/java/net/ucanaccess/converters/Metadata.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public enum Property {
immediatelyReleaseResources(Boolean.class, false, 10),
inactivityTimeout(Integer.class, 2, 10),
jackcessOpener(String.class, null, 500),
keepMirror(String.class, "2", 500),
keepMirror(String.class, null, 500),
lobScale(Integer.class, 2, 2, 1, 2, 4, 8, 16, 32),
lockMdb(Boolean.class, false, 10),
memory(Boolean.class, true, 10),
Expand All @@ -71,12 +71,20 @@ public enum Property {
private final List<Object> validValues;
private final String description;

/**
* Constructs a Property enum member.
* @param <T> property data type parameter
* @param _type data type
* @param _defaultValue default value
* @param _maxLen maximum length
* @param _validValues optional valid values
*/
<T> Property(Class<T> _type, T _defaultValue, int _maxLen, Object... _validValues) {
maxLen = _maxLen;
type = _type;
maxLen = _maxLen;
defaultValue = _defaultValue;
description = "see ucanaccess website";
validValues = Arrays.asList(_validValues);
description = "see documentation";
}

public Class<?> getType() {
Expand Down

0 comments on commit f208450

Please sign in to comment.