Skip to content

Commit

Permalink
Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardszczepanski committed Jan 28, 2017
1 parent 11cd370 commit d237019
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -31,7 +29,6 @@ public int hashCode() {
return result;
}


@Override
public boolean equals(Object obj) {
if (this == obj)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* and 'feeds' {@code SearchService} object with that Settings object at every
* search request.
*
*
* @author Gerard Szczepanski
*
*/
Expand All @@ -17,5 +16,4 @@ public interface SettingsLoader {
Settings getSettings();

void loadSettingsIntoMemory();

}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,4 @@ private void writeProperties(Properties properties) throws IOException, URISynta
properties.store(out, "Update properties");
out.close();
}

}

0 comments on commit d237019

Please sign in to comment.