Skip to content

Commit d254622

Browse files
author
Mark
committed
added default value "root" for user
1 parent 9e8fa21 commit d254622

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ v4.1.10 (2017-02-xx)
77
* added support serializing non-generic classes that extend collections
88
* added support serializing/deserializing byte and Byte
99
* fixed serialization of additionalFields for objects and maps
10+
* added default value "root" for user
1011

1112
v4.1.9 (2017-02-10)
1213
---------------------------

src/main/java/com/arangodb/internal/ArangoDBConstants.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public class ArangoDBConstants {
2929
public static final String DEFAULT_HOST = "127.0.0.1";
3030
public static final Integer DEFAULT_PORT = 8529;
3131
public static final Integer DEFAULT_TIMEOUT = 0;
32+
public static final String DEFAULT_USER = "root";
3233
public static final Boolean DEFAULT_USE_SSL = false;
3334

3435
public static final int INTEGER_BYTES = Integer.SIZE / Byte.SIZE;

src/main/java/com/arangodb/internal/InternalArangoDB.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected static Integer loadTimeout(final Properties properties, final Integer
9999
}
100100

101101
protected static String loadUser(final Properties properties, final String currentValue) {
102-
return getProperty(properties, PROPERTY_KEY_USER, currentValue, null);
102+
return getProperty(properties, PROPERTY_KEY_USER, currentValue, ArangoDBConstants.DEFAULT_USER);
103103
}
104104

105105
protected static String loadPassword(final Properties properties, final String currentValue) {
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
arangodb.hosts=127.0.0.1:8529
2-
arangodb.user=root

0 commit comments

Comments
 (0)