Skip to content
Snippets Groups Projects

Code clean up

Merged Martin Lowe requested to merge github/fork/autumnfound/malowe/master/ccu into master
19 files
+ 221
301
Compare changes
  • Side-by-side
  • Inline
Files
19
@@ -32,8 +32,6 @@ import org.slf4j.LoggerFactory;
@@ -32,8 +32,6 @@ import org.slf4j.LoggerFactory;
*/
*/
public class SecretConfigSource implements ConfigSource {
public class SecretConfigSource implements ConfigSource {
private static final Logger LOGGER = LoggerFactory.getLogger(SecretConfigSource.class);
private static final Logger LOGGER = LoggerFactory.getLogger(SecretConfigSource.class);
private String secretPath;
private Map<String, String> secrets;
private Map<String, String> secrets;
@@ -41,7 +39,7 @@ public class SecretConfigSource implements ConfigSource {
@@ -41,7 +39,7 @@ public class SecretConfigSource implements ConfigSource {
public Map<String, String> getProperties() {
public Map<String, String> getProperties() {
if (secrets == null) {
if (secrets == null) {
this.secrets = new HashMap<>();
this.secrets = new HashMap<>();
this.secretPath = System.getProperty("config.secret.path");
String secretPath = System.getProperty("config.secret.path");
if (StringUtils.isEmpty(secretPath)) {
if (StringUtils.isEmpty(secretPath)) {
LOGGER.error("Configuration 'config.secret.path' not set, cannot generate secret properties");
LOGGER.error("Configuration 'config.secret.path' not set, cannot generate secret properties");
return this.secrets;
return this.secrets;
Loading