diff --git a/solr/core/src/java/org/apache/solr/handler/designer/DefaultSampleDocumentsLoader.java b/solr/core/src/java/org/apache/solr/handler/designer/DefaultSampleDocumentsLoader.java index 9c0b0f1331c..611cea3d58f 100644 --- a/solr/core/src/java/org/apache/solr/handler/designer/DefaultSampleDocumentsLoader.java +++ b/solr/core/src/java/org/apache/solr/handler/designer/DefaultSampleDocumentsLoader.java @@ -157,8 +157,7 @@ protected List loadCsvDocs( @SuppressWarnings("unchecked") protected List loadJsonLines( - ContentStreamBase.ByteArrayStream stream, final int maxDocsToLoad) - throws IOException { + ContentStreamBase.ByteArrayStream stream, final int maxDocsToLoad) throws IOException { List> docs = new ArrayList<>(); try (Reader r = stream.getReader()) { BufferedReader br = new BufferedReader(r); @@ -182,8 +181,7 @@ protected List loadJsonLines( @SuppressWarnings("unchecked") protected List loadJsonDocs( - ContentStreamBase.ByteArrayStream stream, final int maxDocsToLoad) - throws IOException { + ContentStreamBase.ByteArrayStream stream, final int maxDocsToLoad) throws IOException { Object json; try (Reader r = stream.getReader()) { json = ObjectBuilder.getVal(new JSONParser(r)); @@ -231,8 +229,7 @@ protected List loadJsonDocs( } protected List loadXmlDocs( - ContentStreamBase.ByteArrayStream stream, final int maxDocsToLoad) - throws IOException { + ContentStreamBase.ByteArrayStream stream, final int maxDocsToLoad) throws IOException { String xmlString = new String(readAllBytes(stream), StandardCharsets.UTF_8).trim(); List docs; if (xmlString.contains("") && xmlString.contains("")) { diff --git a/solr/core/src/java/org/apache/solr/handler/designer/DefaultSchemaSuggester.java b/solr/core/src/java/org/apache/solr/handler/designer/DefaultSchemaSuggester.java index a98cbb1ec7d..543b7a77af1 100644 --- a/solr/core/src/java/org/apache/solr/handler/designer/DefaultSchemaSuggester.java +++ b/solr/core/src/java/org/apache/solr/handler/designer/DefaultSchemaSuggester.java @@ -222,10 +222,7 @@ public Map> transposeDocs(List docs) { return mapByField; } - protected String guessFieldType( - final List sampleValues, - boolean isMV, - Locale locale) { + protected String guessFieldType(final List sampleValues, boolean isMV, Locale locale) { String type = null; // flatten values to a single stream for easier analysis; also remove nulls diff --git a/solr/core/src/java/org/apache/solr/handler/designer/SampleDocuments.java b/solr/core/src/java/org/apache/solr/handler/designer/SampleDocuments.java index a461e7dd97d..b98c5995db2 100644 --- a/solr/core/src/java/org/apache/solr/handler/designer/SampleDocuments.java +++ b/solr/core/src/java/org/apache/solr/handler/designer/SampleDocuments.java @@ -17,8 +17,6 @@ package org.apache.solr.handler.designer; -import static org.apache.solr.common.params.CommonParams.JSON_MIME; - import java.util.ArrayList; import java.util.List; import java.util.Objects; diff --git a/solr/core/src/java/org/apache/solr/handler/designer/SchemaDesignerAPI.java b/solr/core/src/java/org/apache/solr/handler/designer/SchemaDesignerAPI.java index c024d408cbb..e1589c192c0 100644 --- a/solr/core/src/java/org/apache/solr/handler/designer/SchemaDesignerAPI.java +++ b/solr/core/src/java/org/apache/solr/handler/designer/SchemaDesignerAPI.java @@ -519,7 +519,8 @@ public void publish(SolrQueryRequest req, SolrQueryResponse rsp) final String configSet = getRequiredParam(CONFIG_SET_PARAM, req); final String mutableId = checkMutable(configSet, req); - // verify the configSet we're going to apply changes to hasn't been changed since being loaded for + // verify the configSet we're going to apply changes to hasn't been changed since being loaded + // for // editing by the schema designer SchemaDesignerSettings settings = settingsDAO.getSettings(mutableId); final Optional publishedVersion = settings.getPublishedVersion();