mirror of https://github.com/apache/lucene.git
SOLR-14541: Remove IntelliJ //noinspection comments
This commit is contained in:
parent
9c1772f094
commit
db986086f5
|
@ -380,6 +380,8 @@ Other Changes
|
|||
Only mentioned in 8.6 because I backported some more warning suppressions but not
|
||||
the fail-on-warnings.
|
||||
|
||||
* SOLR-14589: Remove IntelliJ //noinspection comments (Erick Erickson)
|
||||
|
||||
================== 8.5.2 ==================
|
||||
|
||||
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
|
||||
|
|
|
@ -130,7 +130,6 @@ public abstract class RoutedAlias {
|
|||
// this next remove is checked for key because when we build from aliases.json's data it we get an
|
||||
// immutable map which would cause UnsupportedOperationException to be thrown. This remove is here
|
||||
// to prevent this property from making it into aliases.json
|
||||
//noinspection RedundantCollectionOperation
|
||||
if (props.containsKey("router.routerList")) {
|
||||
props.remove("router.routerList");
|
||||
}
|
||||
|
|
|
@ -668,7 +668,6 @@ public class QueryElevationComponent extends SearchComponent implements SolrCore
|
|||
}
|
||||
|
||||
if (context != null) {
|
||||
//noinspection unchecked
|
||||
context.put(BOOSTED_DOCIDS, boostDocs);
|
||||
}
|
||||
|
||||
|
|
|
@ -160,7 +160,6 @@ public class ShardFieldSortedHitQueue extends PriorityQueue<ShardDoc> {
|
|||
@Override
|
||||
@SuppressWarnings({"unchecked"})
|
||||
public int compare(final ShardDoc o1, final ShardDoc o2) {
|
||||
//noinspection unchecked
|
||||
return -fieldComparator.compareValues(sortVal(o1), sortVal(o2));
|
||||
}
|
||||
};
|
||||
|
|
|
@ -118,7 +118,6 @@ public class AliasIntegrationTest extends SolrCloudTestCase {
|
|||
assertEquals("collection2meta", aliases.get(1));
|
||||
//ensure we have the back-compat format in ZK:
|
||||
final byte[] rawBytes = zkStateReader.getZkClient().getData(ALIASES, null, null, true);
|
||||
//noinspection unchecked
|
||||
assertTrue(((Map<String,Map<String,?>>)Utils.fromJSON(rawBytes)).get("collection").get("meta1") instanceof String);
|
||||
|
||||
// set properties
|
||||
|
|
|
@ -76,7 +76,6 @@ public class ResourceLoaderTest extends SolrTestCaseJ4 {
|
|||
|
||||
final Class<?> clazz1 = ResourceLoaderAware.class;
|
||||
// Check ResourceLoaderAware valid objects
|
||||
//noinspection unchecked
|
||||
assertAwareCompatibility(clazz1, new NGramFilterFactory(map("minGramSize", "1", "maxGramSize", "2")));
|
||||
assertAwareCompatibility(clazz1, new KeywordTokenizerFactory(new HashMap<>()));
|
||||
|
||||
|
@ -99,7 +98,6 @@ public class ResourceLoaderTest extends SolrTestCaseJ4 {
|
|||
assertAwareCompatibility(clazz2, new JSONResponseWriter());
|
||||
|
||||
// Make sure it throws an error for invalid objects
|
||||
//noinspection unchecked
|
||||
invalid = new Object[] {
|
||||
new NGramFilterFactory(map("minGramSize", "1", "maxGramSize", "2")),
|
||||
"hello", 12.3f ,
|
||||
|
|
|
@ -73,7 +73,6 @@ public class CommandOperation {
|
|||
@SuppressWarnings({"unchecked"})
|
||||
public Map<String, Object> getDataMap() {
|
||||
if (commandData instanceof Map) {
|
||||
//noinspection unchecked
|
||||
return (Map<String, Object>) commandData;
|
||||
}
|
||||
addError(StrUtils.formatString("The command ''{0}'' should have the values as a json object '{'key:val'}' format but is ''{1}''", name, commandData));
|
||||
|
|
Loading…
Reference in New Issue