From cf921515134c557eb4231e2947ef15e2f4d9bf26 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Wed, 23 Mar 2016 21:11:34 -0400 Subject: [PATCH] Fix line-length issue in PropertiesSettingsLoader This commit fixes a line-length checkstyle violation in PropertiesSettingsLoader.java and removes this file from the checkstyle line-length suppressions. --- buildSrc/src/main/resources/checkstyle_suppressions.xml | 1 - .../common/settings/loader/PropertiesSettingsLoader.java | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/resources/checkstyle_suppressions.xml b/buildSrc/src/main/resources/checkstyle_suppressions.xml index af83e2db0e8..48408617f09 100644 --- a/buildSrc/src/main/resources/checkstyle_suppressions.xml +++ b/buildSrc/src/main/resources/checkstyle_suppressions.xml @@ -380,7 +380,6 @@ - diff --git a/core/src/main/java/org/elasticsearch/common/settings/loader/PropertiesSettingsLoader.java b/core/src/main/java/org/elasticsearch/common/settings/loader/PropertiesSettingsLoader.java index 849a4354427..6d3e87d03fa 100644 --- a/core/src/main/java/org/elasticsearch/common/settings/loader/PropertiesSettingsLoader.java +++ b/core/src/main/java/org/elasticsearch/common/settings/loader/PropertiesSettingsLoader.java @@ -75,7 +75,12 @@ public class PropertiesSettingsLoader implements SettingsLoader { public synchronized Object put(Object key, Object value) { Object previousValue = super.put(key, value); if (previousValue != null) { - throw new ElasticsearchParseException("duplicate settings key [{}] found, previous value [{}], current value [{}]", key, previousValue, value); + throw new ElasticsearchParseException( + "duplicate settings key [{}] found, previous value [{}], current value [{}]", + key, + previousValue, + value + ); } return previousValue; }