Skip to content

Commit

Permalink
fixed review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP committed Mar 8, 2019
1 parent 7fe4788 commit e302b9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/src/main/java/com/typesafe/config/ConfigFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -384,10 +384,10 @@ public static Config defaultReference(ClassLoader loader) {
* @return the default override configuration
*/
public static Config defaultOverrides() {
if (!getOverrideWithEnv()) {
return systemProperties();
} else {
if (getOverrideWithEnv()) {
return systemEnvironmentOverrides().withFallback(systemProperties());
} else {
return systemProperties();
}
}

Expand Down Expand Up @@ -589,7 +589,7 @@ public static Config systemProperties() {
* This method can return a global immutable singleton, so it's preferred
* over parsing system properties yourself.
* <p>
* {@link #defaultOverrides} will include the system system environment variables as
* {@link #defaultOverrides} will include the system environment variables as
* overrides if `config.override_with_env_vars` is set to `true`.
*
* @return system environment variable overrides parsed into a <code>Config</code>
Expand Down

0 comments on commit e302b9a

Please sign in to comment.