From d237019a261bf1a075c5860e21bf2db3f909b929 Mon Sep 17 00:00:00 2001 From: Gerard Szczepanski Date: Sat, 28 Jan 2017 13:05:21 +0100 Subject: [PATCH] Clean code --- .../gerard/runit/settings/service/loader/Alias.java | 3 --- .../gerard/runit/settings/service/loader/SettingsLoader.java | 2 -- .../settings/service/mapper/SettingsPropertiesMapper.java | 1 - .../gerard/runit/settings/service/writer/SettingsWriter.java | 2 +- .../settings/service/writer/impl/PropertySettingsWriter.java | 1 - 5 files changed, 1 insertion(+), 8 deletions(-) diff --git a/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/loader/Alias.java b/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/loader/Alias.java index 8a46ad6..01d5271 100644 --- a/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/loader/Alias.java +++ b/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/loader/Alias.java @@ -16,13 +16,11 @@ public class Alias { private final String name; private final String value; - @Override public String toString() { return String.format("[name->%s, value->%s]", name, value); } - @Override public int hashCode() { final int prime = 31; @@ -31,7 +29,6 @@ public int hashCode() { return result; } - @Override public boolean equals(Object obj) { if (this == obj) diff --git a/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/loader/SettingsLoader.java b/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/loader/SettingsLoader.java index a1f5b07..9491ed9 100644 --- a/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/loader/SettingsLoader.java +++ b/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/loader/SettingsLoader.java @@ -8,7 +8,6 @@ * and 'feeds' {@code SearchService} object with that Settings object at every * search request. * - * * @author Gerard Szczepanski * */ @@ -17,5 +16,4 @@ public interface SettingsLoader { Settings getSettings(); void loadSettingsIntoMemory(); - } diff --git a/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/mapper/SettingsPropertiesMapper.java b/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/mapper/SettingsPropertiesMapper.java index 27f7014..cc75d8a 100644 --- a/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/mapper/SettingsPropertiesMapper.java +++ b/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/mapper/SettingsPropertiesMapper.java @@ -2,7 +2,6 @@ import java.util.Properties; -import bsh.StringUtil; import lombok.RequiredArgsConstructor; import szczepanski.gerard.runit.settings.service.concator.PropertyConcator; import szczepanski.gerard.runit.settings.service.loader.Alias; diff --git a/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/writer/SettingsWriter.java b/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/writer/SettingsWriter.java index af27b74..68456c0 100644 --- a/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/writer/SettingsWriter.java +++ b/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/writer/SettingsWriter.java @@ -4,7 +4,7 @@ import szczepanski.gerard.runit.settings.service.loader.Settings; /** - * THis interface is responsible for Save Settings. + * This interface is responsible for Save Settings. * * @author Gerard Szczepanski * diff --git a/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/writer/impl/PropertySettingsWriter.java b/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/writer/impl/PropertySettingsWriter.java index d0be9db..dc0ca55 100644 --- a/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/writer/impl/PropertySettingsWriter.java +++ b/runit-settings-service/src/main/java/szczepanski/gerard/runit/settings/service/writer/impl/PropertySettingsWriter.java @@ -49,5 +49,4 @@ private void writeProperties(Properties properties) throws IOException, URISynta properties.store(out, "Update properties"); out.close(); } - }