Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

Fix three ex[c]eption typos.

Christine Poerschke808171ac0001
diff --git a/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java b/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java
index 3a5d41c999f..6bdc943bc3a 100644
--- a/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java
+++ b/lucene/core/src/java/org/apache/lucene/analysis/Analyzer.java
@@ -235,7 +235,7 @@ public abstract class Analyzer implements Closeable {
}
filteredText = builder.toString();
} catch (IOException e) {
- throw new IllegalStateException("Normalization threw an unexpected exeption", e);
+ throw new IllegalStateException("Normalization threw an unexpected exception", e);
}
final AttributeFactory attributeFactory = attributeFactory(fieldName);
@@ -258,7 +258,7 @@ public abstract class Analyzer implements Closeable {
return term;
}
} catch (IOException e) {
- throw new IllegalStateException("Normalization threw an unexpected exeption", e);
+ throw new IllegalStateException("Normalization threw an unexpected exception", e);
}
}
diff --git a/solr/core/src/java/org/apache/solr/core/CoreContainer.java b/solr/core/src/java/org/apache/solr/core/CoreContainer.java
index 6055acf6efc..90bbf5d58c0 100644
--- a/solr/core/src/java/org/apache/solr/core/CoreContainer.java
+++ b/solr/core/src/java/org/apache/solr/core/CoreContainer.java
@@ -1032,7 +1032,7 @@ public class CoreContainer {
}
}
- // If no CorruptIndexExeption, nothing we can try here
+ // If no CorruptIndexException, nothing we can try here
if (cause == null) throw original;
CoreInitFailedAction action = CoreInitFailedAction.valueOf(System.getProperty(CoreInitFailedAction.class.getSimpleName(), "none"));