Skip to content

Commit 362fe34

Browse files
committed
Fix comment typo
1 parent e67a4ad commit 362fe34

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
Distrib
2+
logs

ServerCore/java/org/elkoserver/foundation/boot/BootProperties.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ public BootProperties(Properties defaults) {
3232
}
3333

3434
/**
35-
* Get the value of a property as a boolean.
35+
* Get the value of a property as a boolean. This will be true if the
36+
* property value is the string "true", false if the property value is
37+
* the string "false", and will be the default if the property value is
38+
* anything else or if the property is absent.
3639
*
3740
* @param property The name of the property to test.
3841
* @param defaultValue The default value in the event of absence or error.
3942
*
4043
* @return the value of the property interpreted as a boolean.
41-
*
42-
* @throws IllegalArgumentException if the property has a value that is
43-
* neither of the strings "true" nor "false".
4444
*/
4545
public boolean boolProperty(String property, boolean defaultValue) {
4646
String val = getProperty(property);

0 commit comments

Comments
 (0)