IdmLightConfig use File.separatorChar instead of '/' 47/48547/1
authorMichael Vorburger <vorburger@redhat.com>
Mon, 21 Nov 2016 16:30:29 +0000 (17:30 +0100)
committerMichael Vorburger <vorburger@redhat.com>
Mon, 21 Nov 2016 16:30:29 +0000 (17:30 +0100)
This was always already a '/' in the original code before my recent
refactorings (and, presumably, never caused issues on Windows), but as
requested by Ryan in
https://git.opendaylight.org/gerrit/#/c/48372/8/aaa-h2-store/src/main/java/org/opendaylight/aaa/h2/config/IdmLightConfig.java@121

Change-Id: Ibe08409a71d58fd099c4c653c6053627e35229ec
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
aaa-h2-store/src/main/java/org/opendaylight/aaa/h2/config/IdmLightConfig.java

index e0815942f0fca430b3741e9e83fa184e5e8dd88c..fb692f884483eb6a2d6e6fa92fff643811079787 100644 (file)
@@ -8,6 +8,7 @@
 
 package org.opendaylight.aaa.h2.config;
 
+import java.io.File;
 import org.immutables.value.Value;
 import org.immutables.value.Value.Default;
 import org.immutables.value.Value.Immutable;
@@ -83,7 +84,7 @@ public abstract class IdmLightConfig {
      * The JDBC database connection string.
      */
     @Default public String getDbConnectionString() {
-        return getDbConnectionStringPrefix() + getDbDirectory() + "/" + getDbName();
+        return getDbConnectionStringPrefix() + getDbDirectory() + File.separatorChar + getDbName();
     }
 
     public void log() {