use raw value directly

This commit is contained in:
Simon Willnauer 2015-12-09 13:42:35 +01:00
parent a49120bfc1
commit 3b85dbb8c8
1 changed files with 1 additions and 4 deletions

View File

@ -226,10 +226,7 @@ public class Setting<T> extends ToXContentToBytes {
public boolean prepareApply(Settings settings) { public boolean prepareApply(Settings settings) {
String newValue = settings.get(key); final String newValue = getRaw(settings);
if (newValue == null) {
newValue = getRaw(settings);
}
if (value.equals(newValue) == false) { if (value.equals(newValue) == false) {
T inst = get(settings); T inst = get(settings);
try { try {