Skip to content

Commit

Permalink
Fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c authored and Grigory Mischenko committed Sep 20, 2018
1 parent 1664eeb commit 2ddb978
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -31,7 +31,7 @@ public class ConcatenatingConfig implements Config {
private final Map<String, String> values;

public ConcatenatingConfig(String prefix, char separator, Map<?, ?> values) {
this.prefix = prefix == null ? "" : prefix + separator;
this.prefix = prefix == null || "".equals(prefix) ? "" : (prefix + separator);
this.separator = separator;

this.values = Objects.requireNonNull(values).entrySet().stream()
Expand Down
Expand Up @@ -47,7 +47,7 @@ public void shouldReturnEmptyIfConfigValueIsMissing() {
public void shouldReadSystemProperties() {
Config config = new CompoundConfig(
new MapConfig(ImmutableMap.of()),
new ConcatenatingConfig("", ',', System.getProperties()));
new ConcatenatingConfig("", '.', System.getProperties()));

assertEquals(System.getProperty("user.home"), config.get("user", "home").get());
}
Expand Down

0 comments on commit 2ddb978

Please sign in to comment.