From f6491047a0a7182d5c55660acc57add812ce64c1 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Fri, 1 Jul 2016 12:36:44 -0700 Subject: [PATCH] Fix line lengths for ingest config utils --- .../ingest/ConfigurationUtils.java | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/ingest/ConfigurationUtils.java b/core/src/main/java/org/elasticsearch/ingest/ConfigurationUtils.java index 5bbef2a2551..6eb4b0fe608 100644 --- a/core/src/main/java/org/elasticsearch/ingest/ConfigurationUtils.java +++ b/core/src/main/java/org/elasticsearch/ingest/ConfigurationUtils.java @@ -39,8 +39,8 @@ public final class ConfigurationUtils { * * If the property value isn't of type string a {@link ElasticsearchParseException} is thrown. */ - public static String readOptionalStringProperty(String processorType, String processorTag, Map configuration, - String propertyName) { + public static String readOptionalStringProperty(String processorType, String processorTag, + Map configuration, String propertyName) { Object value = configuration.remove(propertyName); return readString(processorType, processorTag, propertyName, value); } @@ -112,8 +112,8 @@ public final class ConfigurationUtils { * If the property value isn't of type int a {@link ElasticsearchParseException} is thrown. * If the property is missing an {@link ElasticsearchParseException} is thrown */ - public static int readIntProperty(String processorType, String processorTag, Map configuration, String propertyName, - int defaultValue) { + public static int readIntProperty(String processorType, String processorTag, Map configuration, + String propertyName, int defaultValue) { Object value = configuration.remove(propertyName); if (value == null) { return defaultValue; @@ -146,7 +146,8 @@ public final class ConfigurationUtils { * If the property value isn't of type list an {@link ElasticsearchParseException} is thrown. * If the property is missing an {@link ElasticsearchParseException} is thrown */ - public static List readList(String processorType, String processorTag, Map configuration, String propertyName) { + public static List readList(String processorType, String processorTag, Map configuration, + String propertyName) { Object value = configuration.remove(propertyName); if (value == null) { throw newConfigurationException(processorType, processorTag, propertyName, "required property is missing"); @@ -211,7 +212,8 @@ public final class ConfigurationUtils { /** * Returns and removes the specified property as an {@link Object} from the specified configuration map. */ - public static Object readObject(String processorType, String processorTag, Map configuration, String propertyName) { + public static Object readObject(String processorType, String processorTag, Map configuration, + String propertyName) { Object value = configuration.remove(propertyName); if (value == null) { throw newConfigurationException(processorType, processorTag, propertyName, "required property is missing"); @@ -219,8 +221,8 @@ public final class ConfigurationUtils { return value; } - public static ElasticsearchParseException newConfigurationException(String processorType, String processorTag, String propertyName, - String reason) { + public static ElasticsearchParseException newConfigurationException(String processorType, String processorTag, + String propertyName, String reason) { ElasticsearchParseException exception = new ElasticsearchParseException("[" + propertyName + "] " + reason); if (processorType != null) { @@ -249,7 +251,8 @@ public final class ConfigurationUtils { return processors; } - private static Processor readProcessor(Map processorFactories, String type, Map config) throws Exception { + private static Processor readProcessor(Map processorFactories, + String type, Map config) throws Exception { Processor.Factory factory = processorFactories.get(type); if (factory != null) { boolean ignoreFailure = ConfigurationUtils.readBooleanProperty(null, null, config, "ignore_failure", false);