Apache Solr open-source search software
fix all malformed javadocs (@code/deprecated/param/returns/throws with no args)
Robert Muirf025322f8112
diff --git a/dev-tools/eclipse/dot.settings/org.eclipse.jdt.core.prefs b/dev-tools/eclipse/dot.settings/org.eclipse.jdt.core.prefsindex d5002bdbd81..4334d56c90c 100644--- a/dev-tools/eclipse/dot.settings/org.eclipse.jdt.core.prefs+++ b/dev-tools/eclipse/dot.settings/org.eclipse.jdt.core.prefs@@ -1,4 +1,4 @@-#Wed Sep 19 20:37:34 EDT 2012+#Sun Sep 23 13:02:27 EDT 2012eclipse.preferences.version=1org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6org.eclipse.jdt.core.compiler.compliance=1.6@@ -13,7 +13,7 @@ org.eclipse.jdt.core.compiler.problem.invalidJavadocTagsVisibility=privateorg.eclipse.jdt.core.compiler.problem.missingJavadocComments=ignoreorg.eclipse.jdt.core.compiler.problem.missingJavadocCommentsOverriding=disabledorg.eclipse.jdt.core.compiler.problem.missingJavadocCommentsVisibility=public-org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=return_tag+org.eclipse.jdt.core.compiler.problem.missingJavadocTagDescription=all_standard_tagsorg.eclipse.jdt.core.compiler.problem.missingJavadocTags=ignoreorg.eclipse.jdt.core.compiler.problem.missingJavadocTagsMethodTypeParameters=disabledorg.eclipse.jdt.core.compiler.problem.missingJavadocTagsOverriding=disableddiff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.javaindex 48ba0eb076d..6f054180529 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.java@@ -30792,7 +30792,8 @@ public final class HTMLStripCharFilter extends BaseCharFilter {private TextSegment entitySegment = new TextSegment(2);/**- * @param source+ * Creates a new HTMLStripCharFilter over the provided Reader.+ * @param source Reader to strip html tags from.*/public HTMLStripCharFilter(Reader source) {super(source);@@ -30800,7 +30801,9 @@ public final class HTMLStripCharFilter extends BaseCharFilter {}/**- * @param source+ * Creates a new HTMLStripCharFilter over the provided Reader+ * with the specified start and end tags.+ * @param source Reader to strip html tags from.* @param escapedTags Tags in this set (both start and end tags)* will not be filtered out.*/diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.jflex b/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.jflexindex d3f0c6b6981..f6f6fcd2143 100755--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.jflex+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.jflex@@ -171,7 +171,8 @@ InlineElment = ( [aAbBiIqQsSuU] |private TextSegment entitySegment = new TextSegment(2);/**- * @param source+ * Creates a new HTMLStripCharFilter over the provided Reader.+ * @param source Reader to strip html tags from.*/public HTMLStripCharFilter(Reader source) {super(source);@@ -179,7 +180,9 @@ InlineElment = ( [aAbBiIqQsSuU] |}/**- * @param source+ * Creates a new HTMLStripCharFilter over the provided Reader+ * with the specified start and end tags.+ * @param source Reader to strip html tags from.* @param escapedTags Tags in this set (both start and end tags)* will not be filtered out.*/diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/HyphenationCompoundWordTokenFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/HyphenationCompoundWordTokenFilter.javaindex 843da9218c6..bdb22a27f0f 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/HyphenationCompoundWordTokenFilter.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/compound/HyphenationCompoundWordTokenFilter.java@@ -132,7 +132,7 @@ public class HyphenationCompoundWordTokenFilter extends** @param hyphenationFilename the filename of the XML grammar to load* @return An object representing the hyphenation patterns- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public static HyphenationTree getHyphenationTree(String hyphenationFilename)throws IOException {@@ -144,7 +144,7 @@ public class HyphenationCompoundWordTokenFilter extends** @param hyphenationFile the file of the XML grammar to load* @return An object representing the hyphenation patterns- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public static HyphenationTree getHyphenationTree(File hyphenationFile)throws IOException {@@ -156,7 +156,7 @@ public class HyphenationCompoundWordTokenFilter extends** @param hyphenationSource the InputSource pointing to the XML grammar* @return An object representing the hyphenation patterns- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public static HyphenationTree getHyphenationTree(InputSource hyphenationSource)throws IOException {diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/KStemFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/KStemFilter.javaindex 1a0464135a7..257a562f3ce 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/KStemFilter.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/en/KStemFilter.java@@ -44,8 +44,8 @@ public final class KStemFilter extends TokenFilter {}/** Returns the next, stemmed, input Token.- * @return The stemed form of a token.- * @throws IOException+ * @return The stemmed form of a token.+ * @throws IOException If there is a low-level I/O error.*/@Overridepublic boolean incrementToken() throws IOException {diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/WordDelimiterFilter.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/WordDelimiterFilter.javaindex 41a3f803217..527eb53f4a7 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/WordDelimiterFilter.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/miscellaneous/WordDelimiterFilter.java@@ -351,7 +351,7 @@ public final class WordDelimiterFilter extends TokenFilter {* Flushes the given WordDelimiterConcatenation by either writing its concat and then clearing, or just clearing.** @param concatenation WordDelimiterConcatenation that will be flushed- * @return {@code true} if the concatenation was written before it was cleared, {@code} false otherwise+ * @return {@code true} if the concatenation was written before it was cleared, {@code false} otherwise*/private boolean flushConcatenation(WordDelimiterConcatenation concatenation) {lastConcatCount = concatenation.subwordCount;@@ -493,7 +493,7 @@ public final class WordDelimiterFilter extends TokenFilter {* Determines whether the given flag is set** @param flag Flag to see if set- * @return {@code} true if flag is set+ * @return {@code true} if flag is set*/private boolean has(int flag) {return (flags & flag) != 0;diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/PayloadEncoder.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/PayloadEncoder.javaindex ab9965da29a..cc30f47cecc 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/PayloadEncoder.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/PayloadEncoder.java@@ -33,9 +33,6 @@ public interface PayloadEncoder {/*** Convert a char array to a {@link BytesRef}- * @param buffer- * @param offset- * @param length* @return encoded {@link BytesRef}*/BytesRef encode(char [] buffer, int offset, int length);diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/PayloadHelper.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/PayloadHelper.javaindex f8ce632bba9..f7c57bf1a6d 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/PayloadHelper.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/payloads/PayloadHelper.java@@ -44,7 +44,6 @@ public class PayloadHelper {}/**- * @param bytes* @see #decodeFloat(byte[], int)* @see #encodeFloat(float)* @return the decoded floatdiff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/WordlistLoader.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/WordlistLoader.javaindex 1f27d163831..5f97fc772cf 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/WordlistLoader.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/util/WordlistLoader.java@@ -184,7 +184,7 @@ public class WordlistLoader {* (i.e. two tab separated words)** @return stem dictionary that overrules the stemming algorithm- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public static CharArrayMap<String> getStemDict(Reader reader, CharArrayMap<String> result) throws IOException {BufferedReader br = null;@@ -210,7 +210,7 @@ public class WordlistLoader {* </p>** @return a list of non-blank non-comment lines with whitespace trimmed- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public static List<String> getLines(InputStream stream, Charset charset) throws IOException{BufferedReader input = null;diff --git a/lucene/analysis/common/src/java/org/apache/lucene/analysis/wikipedia/WikipediaTokenizer.java b/lucene/analysis/common/src/java/org/apache/lucene/analysis/wikipedia/WikipediaTokenizer.javaindex 474e62a0b21..644fe7fad39 100644--- a/lucene/analysis/common/src/java/org/apache/lucene/analysis/wikipedia/WikipediaTokenizer.java+++ b/lucene/analysis/common/src/java/org/apache/lucene/analysis/wikipedia/WikipediaTokenizer.java@@ -140,7 +140,6 @@ public final class WikipediaTokenizer extends Tokenizer {** @param input The input* @param tokenOutput One of {@link #TOKENS_ONLY}, {@link #UNTOKENIZED_ONLY}, {@link #BOTH}- * @param untokenizedTypes*/public WikipediaTokenizer(Reader input, int tokenOutput, Set<String> untokenizedTypes) {super(input);@@ -154,7 +153,6 @@ public final class WikipediaTokenizer extends Tokenizer {** @param input The input* @param tokenOutput One of {@link #TOKENS_ONLY}, {@link #UNTOKENIZED_ONLY}, {@link #BOTH}- * @param untokenizedTypes*/public WikipediaTokenizer(AttributeFactory factory, Reader input, int tokenOutput, Set<String> untokenizedTypes) {super(factory, input);@@ -168,7 +166,6 @@ public final class WikipediaTokenizer extends Tokenizer {** @param input The input* @param tokenOutput One of {@link #TOKENS_ONLY}, {@link #UNTOKENIZED_ONLY}, {@link #BOTH}- * @param untokenizedTypes*/public WikipediaTokenizer(AttributeSource source, Reader input, int tokenOutput, Set<String> untokenizedTypes) {super(source, input);diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/sinks/TestTeeSinkTokenFilter.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/sinks/TestTeeSinkTokenFilter.javaindex dd0954e3d74..21ebf307488 100644--- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/sinks/TestTeeSinkTokenFilter.java+++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/sinks/TestTeeSinkTokenFilter.java@@ -171,8 +171,6 @@ public class TestTeeSinkTokenFilter extends BaseTokenStreamTestCase {/*** Not an explicit test, just useful to print out some info on performance- *- * @throws Exception*/public void performance() throws Exception {int[] tokCount = {100, 500, 1000, 2000, 5000, 10000};diff --git a/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/segmentation/ICUTokenizer.java b/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/segmentation/ICUTokenizer.javaindex d1aad04e947..d92a90ae808 100644--- a/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/segmentation/ICUTokenizer.java+++ b/lucene/analysis/icu/src/java/org/apache/lucene/analysis/icu/segmentation/ICUTokenizer.java@@ -139,7 +139,7 @@ public final class ICUTokenizer extends Tokenizer {* Refill the buffer, accumulating the offset and setting usableLength to the* last unambiguous break position*- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/private void refill() throws IOException {offset += usableLength;diff --git a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseIterationMarkCharFilter.java b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseIterationMarkCharFilter.javaindex 374fe2ca3e6..7a14d520e04 100644--- a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseIterationMarkCharFilter.java+++ b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/JapaneseIterationMarkCharFilter.java@@ -225,7 +225,7 @@ public class JapaneseIterationMarkCharFilter extends CharFilter {** @param c iteration mark character to normalize* @return normalized iteration mark- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/private char normalizeIterationMark(char c) throws IOException {@@ -252,7 +252,7 @@ public class JapaneseIterationMarkCharFilter extends CharFilter {* Finds the number of subsequent next iteration marks** @return number of iteration marks starting at the current buffer position- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/private int nextIterationMarkSpanSize() throws IOException {int spanSize = 0;@@ -272,7 +272,7 @@ public class JapaneseIterationMarkCharFilter extends CharFilter {* @param position buffer position (should not exceed bufferPosition)* @param spanSize iteration mark span size* @return source character- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/private char sourceCharacter(int position, int spanSize) throws IOException {return (char) buffer.get(position - spanSize);diff --git a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/Dictionary.java b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/Dictionary.javaindex 11277a720df..56ffec93280 100644--- a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/Dictionary.java+++ b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/Dictionary.java@@ -27,22 +27,19 @@ public interface Dictionary {/*** Get left id of specified word- * @param wordId* @return left id*/public int getLeftId(int wordId);/*** Get right id of specified word- * @param wordId- * @return left id+ * @return right id*/public int getRightId(int wordId);/*** Get word cost of specified word- * @param wordId- * @return left id+ * @return word's cost*/public int getWordCost(int wordId);diff --git a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/UserDictionary.java b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/UserDictionary.javaindex a41555599b7..ba23f53c933 100644--- a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/UserDictionary.java+++ b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/dict/UserDictionary.java@@ -172,7 +172,6 @@ public final class UserDictionary implements Dictionary {/*** Convert Map of index and wordIdAndLength to array of {wordId, index, length}- * @param input* @return array of {wordId, index, length}*/private int[][] toIndexArray(Map<Integer, int[]> input) {diff --git a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/util/CSVUtil.java b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/util/CSVUtil.javaindex 493cbf3160d..6e35b0259e1 100644--- a/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/util/CSVUtil.java+++ b/lucene/analysis/kuromoji/src/java/org/apache/lucene/analysis/ja/util/CSVUtil.java@@ -37,7 +37,7 @@ public final class CSVUtil {/*** Parse CSV line- * @param line+ * @param line line containing csv-encoded data* @return Array of values*/public static String[] parse(String line) {@@ -96,7 +96,6 @@ public final class CSVUtil {/*** Quote and escape input value for CSV- * @param original*/public static String quoteEscape(String original) {String result = original;diff --git a/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/BeiderMorseFilter.java b/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/BeiderMorseFilter.javaindex ae2c44009dc..0461564f410 100644--- a/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/BeiderMorseFilter.java+++ b/lucene/analysis/phonetic/src/java/org/apache/lucene/analysis/phonetic/BeiderMorseFilter.java@@ -61,8 +61,8 @@ public final class BeiderMorseFilter extends TokenFilter {* Calls* {@link #BeiderMorseFilter(TokenStream, PhoneticEngine, org.apache.commons.codec.language.bm.Languages.LanguageSet)}*- * @param input- * @param engine+ * @param input TokenStream to filter+ * @param engine configured PhoneticEngine with BM settings.*/public BeiderMorseFilter(TokenStream input, PhoneticEngine engine) {this(input, engine, null);diff --git a/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.java b/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.javaindex 6ee1b66aef2..bffed1a299c 100644--- a/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.java+++ b/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/BigramDictionary.java@@ -139,9 +139,7 @@ class BigramDictionary extends AbstractDictionary {* Load the datafile into this BigramDictionary** @param dctFilePath path to the Bigramdictionary (bigramdict.dct)- * @throws FileNotFoundException- * @throws IOException- * @throws UnsupportedEncodingException+ * @throws IOException If there is a low-level I/O error*/public void loadFromFile(String dctFilePath) throws IOException {diff --git a/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/WordDictionary.java b/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/WordDictionary.javaindex cfd72abec6b..9a7979ec5a4 100644--- a/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/WordDictionary.java+++ b/lucene/analysis/smartcn/src/java/org/apache/lucene/analysis/cn/smart/hhmm/WordDictionary.java@@ -133,8 +133,7 @@ class WordDictionary extends AbstractDictionary {/*** Load coredict.mem internally from the jar file.*- * @throws ClassNotFoundException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public void load() throws IOException, ClassNotFoundException {InputStream input = this.getClass().getResourceAsStream("coredict.mem");@@ -181,9 +180,7 @@ class WordDictionary extends AbstractDictionary {** @param dctFilePath path to word dictionary (coredict.dct)* @return number of words read- * @throws FileNotFoundException- * @throws IOException- * @throws UnsupportedEncodingException+ * @throws IOException If there is a low-level I/O error.*/private int loadMainDataFromFile(String dctFilePath) throws IOException {int i, cnt, length, total = 0;diff --git a/lucene/analysis/uima/src/java/org/apache/lucene/analysis/uima/BaseUIMATokenizer.java b/lucene/analysis/uima/src/java/org/apache/lucene/analysis/uima/BaseUIMATokenizer.javaindex c6001c86102..78758cb7786 100644--- a/lucene/analysis/uima/src/java/org/apache/lucene/analysis/uima/BaseUIMATokenizer.java+++ b/lucene/analysis/uima/src/java/org/apache/lucene/analysis/uima/BaseUIMATokenizer.java@@ -54,8 +54,7 @@ public abstract class BaseUIMATokenizer extends Tokenizer {* <p/>* {@link #cas} will be filled with extracted metadata (UIMA annotations, feature structures)*- * @throws AnalysisEngineProcessException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/protected void analyzeInput() throws AnalysisEngineProcessException, IOException {cas.reset();@@ -66,7 +65,7 @@ public abstract class BaseUIMATokenizer extends Tokenizer {/*** initialize the FSIterator which is used to build tokens at each incrementToken() method call*- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/protected abstract void initializeIterator() throws IOException;diff --git a/lucene/analysis/uima/src/java/org/apache/lucene/analysis/uima/ae/AEProvider.java b/lucene/analysis/uima/src/java/org/apache/lucene/analysis/uima/ae/AEProvider.javaindex 068a405f6f5..ba102d278da 100644--- a/lucene/analysis/uima/src/java/org/apache/lucene/analysis/uima/ae/AEProvider.java+++ b/lucene/analysis/uima/src/java/org/apache/lucene/analysis/uima/ae/AEProvider.java@@ -27,9 +27,7 @@ import org.apache.uima.resource.ResourceInitializationException;public interface AEProvider {/**- *- * @return AnalysisEngine- * @throws ResourceInitializationException+ * Returns the AnalysisEngine*/public AnalysisEngine getAE() throws ResourceInitializationException;diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/HTMLParser.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/HTMLParser.javaindex c4712007794..25fe210b653 100755--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/HTMLParser.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/HTMLParser.java@@ -36,7 +36,7 @@ public interface HTMLParser {* @param reader reader of html text to parse.* @param trecSrc the {@link TrecContentSource} used to parse dates.* @return Parsed doc data.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public DocData parse(DocData docData, String name, Date date, Reader reader, TrecContentSource trecSrc) throws IOException;diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/QueryMaker.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/QueryMaker.javaindex 4e54b3992d4..749136b1bd1 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/QueryMaker.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/QueryMaker.java@@ -37,8 +37,7 @@ public interface QueryMaker {/** Create the next query */public Query makeQuery () throws Exception;- /** Set the properties- * @throws Exception */+ /** Set the properties */public void setConfig (Config config) throws Exception;/** Reset inputs so that the test run would behave, input wise, as if it just started. */diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecContentSource.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecContentSource.javaindex 3142275870e..7d9ce5f4cf1 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecContentSource.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/feeds/TrecContentSource.java@@ -130,8 +130,8 @@ public class TrecContentSource extends ContentSource {* @param lineStart line start to look for, must not be null.* @param collectMatchLine whether to collect the matching line into <code>buffer</code>.* @param collectAll whether to collect all lines into <code>buffer</code>.- * @throws IOException- * @throws NoMoreDataException+ * @throws IOException If there is a low-level I/O error.+ * @throws NoMoreDataException If the source is exhausted.*/private void read(StringBuilder buf, String lineStart,boolean collectMatchLine, boolean collectAll) throws IOException, NoMoreDataException {diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/programmatic/Sample.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/programmatic/Sample.javaindex 6a1a60321a9..0c57d20c3b5 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/programmatic/Sample.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/programmatic/Sample.java@@ -32,11 +32,6 @@ import org.apache.lucene.benchmark.byTask.utils.Config;*/public class Sample {- /**- * @param args- * @throws Exception- * @throws IOException- */public static void main(String[] args) throws Exception {Properties p = initProps();Config conf = new Config(p);diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.javaindex 5f80c5f0ec3..10922204369 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/tasks/TaskSequence.java@@ -109,7 +109,6 @@ public class TaskSequence extends PerfTask {/*** @param repetitions The repetitions to set.- * @throws Exception*/public void setRepetitions(int repetitions) throws Exception {fixedTime = false;diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Algorithm.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Algorithm.javaindex 78ff2d44d4c..fec744e10ca 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Algorithm.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Algorithm.java@@ -295,7 +295,6 @@ public class Algorithm {/*** Execute this algorithm- * @throws Exception*/public void execute() throws Exception {try {diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Config.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Config.javaindex 88af670dfa2..60baaf89287 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Config.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/Config.java@@ -58,7 +58,7 @@ public class Config {* Read both algorithm and config properties.** @param algReader from where to read algorithm and config properties.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public Config(Reader algReader) throws IOException {// read alg file to array of lines@@ -163,7 +163,6 @@ public class Config {** @param name name of property.* @param value either single or multiple property value (multiple values are separated by ":")- * @throws Exception*/public void set(String name, String value) throws Exception {if (valByRound.get(name) != null) {diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/FileUtils.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/FileUtils.javaindex 306aab7f298..2ad6492be4f 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/FileUtils.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/byTask/utils/FileUtils.java@@ -30,7 +30,7 @@ public class FileUtils {** @param dir file or directory* @return true on success, false if no or part of files have been deleted- * @throws java.io.IOException+ * @throws IOException If there is a low-level I/O error.*/public static boolean fullyDelete(File dir) throws IOException {if (dir == null || !dir.exists()) return false;diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/trec/TrecJudge.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/trec/TrecJudge.javaindex f351b7d1339..e239b3b052b 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/trec/TrecJudge.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/quality/trec/TrecJudge.java@@ -46,7 +46,7 @@ public class TrecJudge implements Judge {* 19 0 doc7295 0* </pre>* @param reader where judgments are read from.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public TrecJudge (BufferedReader reader) throws IOException {judgements = new HashMap<String,QRelJudgement>();diff --git a/lucene/benchmark/src/java/org/apache/lucene/benchmark/utils/ExtractReuters.java b/lucene/benchmark/src/java/org/apache/lucene/benchmark/utils/ExtractReuters.javaindex dade9976763..1322f8a6a0f 100644--- a/lucene/benchmark/src/java/org/apache/lucene/benchmark/utils/ExtractReuters.java+++ b/lucene/benchmark/src/java/org/apache/lucene/benchmark/utils/ExtractReuters.java@@ -74,8 +74,6 @@ public class ExtractReuters {/*** Override if you wish to change what is extracted- *- * @param sgmFile*/protected void extractFile(File sgmFile) {try {diff --git a/lucene/classification/src/java/org/apache/lucene/classification/Classifier.java b/lucene/classification/src/java/org/apache/lucene/classification/Classifier.javaindex 866cede4751..eb681212df2 100644--- a/lucene/classification/src/java/org/apache/lucene/classification/Classifier.java+++ b/lucene/classification/src/java/org/apache/lucene/classification/Classifier.java@@ -32,7 +32,7 @@ public interface Classifier {* Assign a class to the given text String* @param text a String containing text to be classified* @return a String representing a class- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public String assignClass(String text) throws IOException;@@ -42,7 +42,7 @@ public interface Classifier {* @param textFieldName the name of the field used to compare documents* @param classFieldName the name of the field containing the class assigned to documents* @param analyzer the analyzer used to tokenize / filter the unseen text- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public void train(AtomicReader atomicReader, String textFieldName, String classFieldName, Analyzer analyzer)throws IOException;diff --git a/lucene/codecs/src/java/org/apache/lucene/codecs/block/ForUtil.java b/lucene/codecs/src/java/org/apache/lucene/codecs/block/ForUtil.javaindex b403876eef6..fc52520f551 100644--- a/lucene/codecs/src/java/org/apache/lucene/codecs/block/ForUtil.java+++ b/lucene/codecs/src/java/org/apache/lucene/codecs/block/ForUtil.java@@ -153,7 +153,7 @@ final class ForUtil {* @param data the data to write* @param encoded a buffer to use to encode data* @param out the destination output- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/void writeBlock(int[] data, byte[] encoded, IndexOutput out) throws IOException {if (isAllEqual(data)) {@@ -182,7 +182,7 @@ final class ForUtil {* @param in the input to use to read data* @param encoded a buffer that can be used to store encoded data* @param decoded where to write decoded data- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/void readBlock(IndexInput in, byte[] encoded, int[] decoded) throws IOException {final int numBits = in.readVInt();@@ -208,7 +208,7 @@ final class ForUtil {* Skip the next block of data.** @param in the input where to read data- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/void skipBlock(IndexInput in) throws IOException {final int numBits = in.readVInt();diff --git a/lucene/codecs/src/java/org/apache/lucene/codecs/bloom/FuzzySet.java b/lucene/codecs/src/java/org/apache/lucene/codecs/bloom/FuzzySet.javaindex fd2d095d01b..42973155814 100644--- a/lucene/codecs/src/java/org/apache/lucene/codecs/bloom/FuzzySet.java+++ b/lucene/codecs/src/java/org/apache/lucene/codecs/bloom/FuzzySet.java@@ -111,7 +111,6 @@ public class FuzzySet {/*** Use this method to choose a set size where accuracy (low content saturation) is more important* than deciding how much memory to throw at the problem.- * @param maxNumberOfValuesExpected* @param desiredSaturation A number between 0 and 1 expressing the % of bits set once all values have been recorded* @return The size of the set nearest to the required size*/@@ -155,7 +154,6 @@ public class FuzzySet {/*** The main method required for a Bloom filter which, given a value determines set membership.* Unlike a conventional set, the fuzzy set returns NO or MAYBE rather than true or false.- * @param value* @return NO or MAYBE*/public ContainsResult contains(BytesRef value) {@@ -182,7 +180,7 @@ public class FuzzySet {* returned by {@link FixedBitSet#getBits}</li>* </ul>* @param out Data output stream- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public void serialize(DataOutput out) throws IOException{@@ -229,7 +227,7 @@ public class FuzzySet {* Records a value in the set. The referenced bytes are hashed and then modulo n'd where n is the* chosen size of the internal bitset.* @param value the key value to be hashed- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public void addValue(BytesRef value) throws IOException {int hash = hashFunction.hash(value);diff --git a/lucene/core/src/java/org/apache/lucene/analysis/Token.java b/lucene/core/src/java/org/apache/lucene/analysis/Token.javaindex 6a2b71a070c..9a5f1a4d909 100644--- a/lucene/core/src/java/org/apache/lucene/analysis/Token.java+++ b/lucene/core/src/java/org/apache/lucene/analysis/Token.java@@ -523,7 +523,7 @@ public class Token extends CharTermAttributeImpl/*** Copy the prototype token's fields into this one. Note: Payloads are shared.- * @param prototype+ * @param prototype source Token to copy fields from*/public void reinit(Token prototype) {copyBuffer(prototype.buffer(), 0, prototype.length());diff --git a/lucene/core/src/java/org/apache/lucene/analysis/TokenStream.java b/lucene/core/src/java/org/apache/lucene/analysis/TokenStream.javaindex 14370ff5d74..5b961d67e02 100644--- a/lucene/core/src/java/org/apache/lucene/analysis/TokenStream.java+++ b/lucene/core/src/java/org/apache/lucene/analysis/TokenStream.java@@ -160,7 +160,7 @@ public abstract class TokenStream extends AttributeSource implements Closeable {* differ from the offset of the last token eg in case one or more whitespaces* followed after the last token, but a WhitespaceTokenizer was used.*- * @throws IOException+ * @throws IOException If an I/O error occurs*/public void end() throws IOException {// do nothing by defaultdiff --git a/lucene/core/src/java/org/apache/lucene/codecs/DocValuesConsumer.java b/lucene/core/src/java/org/apache/lucene/codecs/DocValuesConsumer.javaindex 1730d05ed8d..12e05df38de 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/DocValuesConsumer.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/DocValuesConsumer.java@@ -84,7 +84,7 @@ public abstract class DocValuesConsumer {* the total number of documents in this {@link DocValuesConsumer}.* Must be greater than or equal the last given docID to* {@link #add(int, StorableField)}.- * @throws IOException+ * @throws IOException If an I/O error occurs*/public abstract void finish(int docCount) throws IOException;diff --git a/lucene/core/src/java/org/apache/lucene/codecs/MultiLevelSkipListWriter.java b/lucene/core/src/java/org/apache/lucene/codecs/MultiLevelSkipListWriter.javaindex 1a449bf13c7..a90ee4a5a24 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/MultiLevelSkipListWriter.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/MultiLevelSkipListWriter.java@@ -121,7 +121,7 @@ public abstract class MultiLevelSkipListWriter {* the max level is skip data is to be written to.** @param df the current document frequency- * @throws IOException+ * @throws IOException If an I/O error occurs*/public void bufferSkip(int df) throws IOException {diff --git a/lucene/core/src/java/org/apache/lucene/codecs/PerDocProducer.java b/lucene/core/src/java/org/apache/lucene/codecs/PerDocProducer.javaindex 0715d9d888f..02af0311396 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/PerDocProducer.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/PerDocProducer.java@@ -45,7 +45,7 @@ public abstract class PerDocProducer implements Closeable {* the field name* @return the {@link DocValues} for this field or <code>null</code> if not* applicable.- * @throws IOException+ * @throws IOException If an I/O error occurs*/public abstract DocValues docValues(String field) throws IOException;diff --git a/lucene/core/src/java/org/apache/lucene/codecs/SegmentInfoReader.java b/lucene/core/src/java/org/apache/lucene/codecs/SegmentInfoReader.javaindex 1520717e60a..98036230979 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/SegmentInfoReader.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/SegmentInfoReader.java@@ -40,7 +40,7 @@ public abstract class SegmentInfoReader {* @param directory directory to read from* @param segmentName name of the segment to read* @return infos instance to be populated with data- * @throws IOException+ * @throws IOException If an I/O error occurs*/public abstract SegmentInfo read(Directory directory, String segmentName, IOContext context) throws IOException;}diff --git a/lucene/core/src/java/org/apache/lucene/codecs/SegmentInfoWriter.java b/lucene/core/src/java/org/apache/lucene/codecs/SegmentInfoWriter.javaindex 91ab7f29814..eedbdbbeff0 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/SegmentInfoWriter.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/SegmentInfoWriter.java@@ -37,7 +37,7 @@ public abstract class SegmentInfoWriter {/*** Write {@link SegmentInfo} data.- * @throws IOException+ * @throws IOException If an I/O error occurs*/public abstract void write(Directory dir, SegmentInfo info, FieldInfos fis, IOContext ioContext) throws IOException;}diff --git a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsReader.java b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsReader.javaindex bc626be9408..3ab1b586819 100644--- a/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsReader.java+++ b/lucene/core/src/java/org/apache/lucene/codecs/lucene40/Lucene40StoredFieldsReader.java@@ -120,7 +120,7 @@ public final class Lucene40StoredFieldsReader extends StoredFieldsReader impleme* Closes the underlying {@link org.apache.lucene.store.IndexInput} streams.* This means that the Fields values will not be accessible.*- * @throws IOException+ * @throws IOException If an I/O error occurs*/public final void close() throws IOException {if (!closed) {diff --git a/lucene/core/src/java/org/apache/lucene/index/DirectoryReader.java b/lucene/core/src/java/org/apache/lucene/index/DirectoryReader.javaindex e6331990c20..b173c43ccf1 100644--- a/lucene/core/src/java/org/apache/lucene/index/DirectoryReader.java+++ b/lucene/core/src/java/org/apache/lucene/index/DirectoryReader.java@@ -99,7 +99,7 @@ public abstract class DirectoryReader extends BaseCompositeReader<AtomicReader>* can tolerate deleted documents being returned you might* gain some performance by passing false.* @return The new IndexReader- * @throws CorruptIndexException+ * @throws CorruptIndexException if the index is corrupt* @throws IOException if there is a low-level IO error** @see #openIfChanged(DirectoryReader,IndexWriter,boolean)@@ -241,7 +241,7 @@ public abstract class DirectoryReader extends BaseCompositeReader<AtomicReader>* can tolerate deleted documents being returned you might* gain some performance by passing false.*- * @throws IOException+ * @throws IOException if there is a low-level IO error** @lucene.experimental*/diff --git a/lucene/core/src/java/org/apache/lucene/index/FieldInfos.java b/lucene/core/src/java/org/apache/lucene/index/FieldInfos.javaindex 50df32f1473..d3be8a63c1f 100644--- a/lucene/core/src/java/org/apache/lucene/index/FieldInfos.java+++ b/lucene/core/src/java/org/apache/lucene/index/FieldInfos.java@@ -146,10 +146,13 @@ public class FieldInfos implements Iterable<FieldInfo> {/*** Return the fieldinfo object referenced by the fieldNumber.- * @param fieldNumber+ * @param fieldNumber field's number. if this is negative, this method+ * always returns null.* @return the FieldInfo object or null when the given fieldNumber* doesn't exist.*/+ // TODO: fix this negative behavior, this was something related to Lucene3x?+ // if the field name is empty, i think it writes the fieldNumber as -1public FieldInfo fieldInfo(int fieldNumber) {return (fieldNumber >= 0) ? byNumber.get(fieldNumber) : null;}diff --git a/lucene/core/src/java/org/apache/lucene/index/FilteredTermsEnum.java b/lucene/core/src/java/org/apache/lucene/index/FilteredTermsEnum.javaindex 0e51884dfc9..563ac85739e 100644--- a/lucene/core/src/java/org/apache/lucene/index/FilteredTermsEnum.java+++ b/lucene/core/src/java/org/apache/lucene/index/FilteredTermsEnum.java@@ -150,7 +150,8 @@ public abstract class FilteredTermsEnum extends TermsEnum {}/** This enum does not support seeking!- * @throws UnsupportedOperationException+ * @throws UnsupportedOperationException In general, subclasses do not+ * support seeking.*/@Overridepublic boolean seekExact(BytesRef term, boolean useCache) throws IOException {@@ -158,7 +159,8 @@ public abstract class FilteredTermsEnum extends TermsEnum {}/** This enum does not support seeking!- * @throws UnsupportedOperationException+ * @throws UnsupportedOperationException In general, subclasses do not+ * support seeking.*/@Overridepublic SeekStatus seekCeil(BytesRef term, boolean useCache) throws IOException {@@ -166,7 +168,8 @@ public abstract class FilteredTermsEnum extends TermsEnum {}/** This enum does not support seeking!- * @throws UnsupportedOperationException+ * @throws UnsupportedOperationException In general, subclasses do not+ * support seeking.*/@Overridepublic void seekExact(long ord) throws IOException {@@ -189,7 +192,8 @@ public abstract class FilteredTermsEnum extends TermsEnum {}/** This enum does not support seeking!- * @throws UnsupportedOperationException+ * @throws UnsupportedOperationException In general, subclasses do not+ * support seeking.*/@Overridepublic void seekExact(BytesRef term, TermState state) throws IOException {diff --git a/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java b/lucene/core/src/java/org/apache/lucene/index/IndexWriter.javaindex 20783fb2d17..e4d74a35a55 100644--- a/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java+++ b/lucene/core/src/java/org/apache/lucene/index/IndexWriter.java@@ -320,7 +320,7 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {* @return IndexReader that covers entire index plus all* changes made so far by this IndexWriter instance*- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/DirectoryReader getReader(boolean applyAllDeletes) throws IOException {ensureOpen();@@ -473,7 +473,7 @@ public class IndexWriter implements Closeable, TwoPhaseCommit {* Commit live docs changes for the segment readers for* the provided infos.*- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public synchronized void commit(SegmentInfos infos) throws IOException {for (SegmentInfoPerCommit info : infos) {diff --git a/lucene/core/src/java/org/apache/lucene/index/ReaderManager.java b/lucene/core/src/java/org/apache/lucene/index/ReaderManager.javaindex 83fdc1c94fc..5a463af0734 100755--- a/lucene/core/src/java/org/apache/lucene/index/ReaderManager.java+++ b/lucene/core/src/java/org/apache/lucene/index/ReaderManager.java@@ -51,7 +51,7 @@ public final class ReaderManager extends ReferenceManager<DirectoryReader> {* performance by passing <code>false</code>. See* {@link DirectoryReader#openIfChanged(DirectoryReader, IndexWriter, boolean)}.*- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public ReaderManager(IndexWriter writer, boolean applyAllDeletes) throws IOException {current = DirectoryReader.open(writer, applyAllDeletes);@@ -61,7 +61,7 @@ public final class ReaderManager extends ReferenceManager<DirectoryReader> {* Creates and returns a new ReaderManager from the given {@link Directory}.* @param dir the directory to open the DirectoryReader on.*- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public ReaderManager(Directory dir) throws IOException {current = DirectoryReader.open(dir);diff --git a/lucene/core/src/java/org/apache/lucene/index/SegmentMerger.java b/lucene/core/src/java/org/apache/lucene/index/SegmentMerger.javaindex 716839ae514..cd1a616f385 100644--- a/lucene/core/src/java/org/apache/lucene/index/SegmentMerger.java+++ b/lucene/core/src/java/org/apache/lucene/index/SegmentMerger.java@@ -70,7 +70,6 @@ final class SegmentMerger {/*** Add an IndexReader to the collection of readers that are to be merged- * @param reader*/final void add(IndexReader reader) {for (final AtomicReaderContext ctx : reader.leaves()) {@@ -253,7 +252,7 @@ final class SegmentMerger {/*** Merge the TermVectors from each of the segments into the new one.- * @throws IOException+ * @throws IOException if there is a low-level IO error*/private final int mergeVectors() throws IOException {final TermVectorsWriter termVectorsWriter = codec.termVectorsFormat().vectorsWriter(directory, mergeState.segmentInfo, context);diff --git a/lucene/core/src/java/org/apache/lucene/index/SegmentReader.java b/lucene/core/src/java/org/apache/lucene/index/SegmentReader.javaindex 507c3661cd8..221b8537e8a 100644--- a/lucene/core/src/java/org/apache/lucene/index/SegmentReader.java+++ b/lucene/core/src/java/org/apache/lucene/index/SegmentReader.java@@ -168,12 +168,6 @@ public final class SegmentReader extends AtomicReader {return core.termVectorsLocal.get();}- /** Return a term frequency vector for the specified document and field. The- * vector returned contains term numbers and frequencies for all terms in- * the specified field of this document, if the field had storeTermVector- * flag set. If the flag was not set, the method returns null.- * @throws IOException- */@Overridepublic Fields getTermVectors(int docID) throws IOException {TermVectorsReader termVectorsReader = getTermVectorsReader();diff --git a/lucene/core/src/java/org/apache/lucene/index/Term.java b/lucene/core/src/java/org/apache/lucene/index/Term.javaindex a2efbcfaac1..ac7696e8775 100644--- a/lucene/core/src/java/org/apache/lucene/index/Term.java+++ b/lucene/core/src/java/org/apache/lucene/index/Term.java@@ -56,7 +56,7 @@ public final class Term implements Comparable<Term> {* This serves two purposes: 1) reuse of a Term with the same field.* 2) pattern for a query.*- * @param fld+ * @param fld field's name*/public Term(String fld) {this(fld, new BytesRef());diff --git a/lucene/core/src/java/org/apache/lucene/search/FieldComparator.java b/lucene/core/src/java/org/apache/lucene/search/FieldComparator.javaindex 9d1fbafd7bf..b75c020d6ab 100644--- a/lucene/core/src/java/org/apache/lucene/search/FieldComparator.java+++ b/lucene/core/src/java/org/apache/lucene/search/FieldComparator.java@@ -148,7 +148,7 @@ public abstract class FieldComparator<T> {* @return the comparator to use for this segment; most* comparators can just return "this" to reuse the same* comparator across segments- * @throws IOException+ * @throws IOException if there is a low-level IO error*/public abstract FieldComparator<T> setNextReader(AtomicReaderContext context) throws IOException;diff --git a/lucene/core/src/java/org/apache/lucene/search/FieldValueHitQueue.java b/lucene/core/src/java/org/apache/lucene/search/FieldValueHitQueue.javaindex 97a9974c6f1..a77c9f8422a 100644--- a/lucene/core/src/java/org/apache/lucene/search/FieldValueHitQueue.java+++ b/lucene/core/src/java/org/apache/lucene/search/FieldValueHitQueue.java@@ -159,7 +159,7 @@ public abstract class FieldValueHitQueue<T extends FieldValueHitQueue.Entry> ext* priority first); cannot be <code>null</code> or empty* @param size* The number of hits to retain. Must be greater than zero.- * @throws IOException+ * @throws IOException if there is a low-level IO error*/public static <T extends FieldValueHitQueue.Entry> FieldValueHitQueue<T> create(SortField[] fields, int size) throws IOException {diff --git a/lucene/core/src/java/org/apache/lucene/search/FuzzyTermsEnum.java b/lucene/core/src/java/org/apache/lucene/search/FuzzyTermsEnum.javaindex 304b4a36acb..4f52f36bb01 100644--- a/lucene/core/src/java/org/apache/lucene/search/FuzzyTermsEnum.java+++ b/lucene/core/src/java/org/apache/lucene/search/FuzzyTermsEnum.java@@ -96,7 +96,7 @@ public class FuzzyTermsEnum extends TermsEnum {* @param minSimilarity Minimum required similarity for terms from the reader. Pass an integer value* representing edit distance. Passing a fraction is deprecated.* @param prefixLength Length of required common prefix. Default value is 0.- * @throws IOException+ * @throws IOException if there is a low-level IO error*/public FuzzyTermsEnum(Terms terms, AttributeSource atts, Term term,final float minSimilarity, final int prefixLength, boolean transpositions) throws IOException {diff --git a/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java b/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.javaindex b142697a064..5626b25e982 100644--- a/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java+++ b/lucene/core/src/java/org/apache/lucene/search/IndexSearcher.java@@ -220,7 +220,8 @@ public class IndexSearcher {* this method can be used for efficient 'deep-paging' across potentially* large result sets.*- * @throws BooleanQuery.TooManyClauses+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.*/public TopDocs searchAfter(ScoreDoc after, Query query, int n) throws IOException {return search(createNormalizedWeight(query), after, n);@@ -234,7 +235,8 @@ public class IndexSearcher {* this method can be used for efficient 'deep-paging' across potentially* large result sets.*- * @throws BooleanQuery.TooManyClauses+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.*/public TopDocs searchAfter(ScoreDoc after, Query query, Filter filter, int n) throws IOException {return search(createNormalizedWeight(wrapFilter(query, filter)), after, n);@@ -243,7 +245,8 @@ public class IndexSearcher {/** Finds the top <code>n</code>* hits for <code>query</code>.*- * @throws BooleanQuery.TooManyClauses+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.*/public TopDocs search(Query query, int n)throws IOException {@@ -254,7 +257,8 @@ public class IndexSearcher {/** Finds the top <code>n</code>* hits for <code>query</code>, applying <code>filter</code> if non-null.*- * @throws BooleanQuery.TooManyClauses+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.*/public TopDocs search(Query query, Filter filter, int n)throws IOException {@@ -269,7 +273,8 @@ public class IndexSearcher {* @param query to match documents* @param filter if non-null, used to permit documents to be collected.* @param results to receive hits- * @throws BooleanQuery.TooManyClauses+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.*/public void search(Query query, Filter filter, Collector results)throws IOException {@@ -277,11 +282,12 @@ public class IndexSearcher {}/** Lower-level search API.- *- * <p>{@link Collector#collect(int)} is called for every matching document.- *- * @throws BooleanQuery.TooManyClauses- */+ *+ * <p>{@link Collector#collect(int)} is called for every matching document.+ *+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.+ */public void search(Query query, Collector results)throws IOException {search(leafContexts, createNormalizedWeight(query), results);@@ -296,7 +302,8 @@ public class IndexSearcher {* {@link IndexSearcher#search(Query,Filter,int,Sort,boolean,boolean)} to* control scoring.*- * @throws BooleanQuery.TooManyClauses+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.*/public TopFieldDocs search(Query query, Filter filter, int n,Sort sort) throws IOException {@@ -314,7 +321,8 @@ public class IndexSearcher {* <code>true</code> then the maximum score over all* collected hits will be computed.*- * @throws BooleanQuery.TooManyClauses+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.*/public TopFieldDocs search(Query query, Filter filter, int n,Sort sort, boolean doDocScores, boolean doMaxScore) throws IOException {@@ -329,7 +337,8 @@ public class IndexSearcher {* this method can be used for efficient 'deep-paging' across potentially* large result sets.*- * @throws BooleanQuery.TooManyClauses+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.*/public TopDocs searchAfter(ScoreDoc after, Query query, Filter filter, int n, Sort sort) throws IOException {if (after != null && !(after instanceof FieldDoc)) {@@ -346,7 +355,7 @@ public class IndexSearcher {* @param n Return only the top n results* @param sort The {@link org.apache.lucene.search.Sort} object* @return The top docs, sorted according to the supplied {@link org.apache.lucene.search.Sort} instance- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/public TopFieldDocs search(Query query, int n,Sort sort) throws IOException {@@ -361,7 +370,8 @@ public class IndexSearcher {* this method can be used for efficient 'deep-paging' across potentially* large result sets.*- * @throws BooleanQuery.TooManyClauses+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.*/public TopDocs searchAfter(ScoreDoc after, Query query, int n, Sort sort) throws IOException {if (after != null && !(after instanceof FieldDoc)) {@@ -385,7 +395,8 @@ public class IndexSearcher {* <code>true</code> then the maximum score over all* collected hits will be computed.*- * @throws BooleanQuery.TooManyClauses+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.*/public TopDocs searchAfter(ScoreDoc after, Query query, Filter filter, int n, Sort sort,boolean doDocScores, boolean doMaxScore) throws IOException {@@ -403,7 +414,8 @@ public class IndexSearcher {** <p>Applications should usually call {@link IndexSearcher#search(Query,int)} or* {@link IndexSearcher#search(Query,Filter,int)} instead.- * @throws BooleanQuery.TooManyClauses+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.*/protected TopDocs search(Weight weight, ScoreDoc after, int nDocs) throws IOException {if (executor == null) {@@ -440,7 +452,8 @@ public class IndexSearcher {** <p>Applications should usually call {@link IndexSearcher#search(Query,int)} or* {@link IndexSearcher#search(Query,Filter,int)} instead.- * @throws BooleanQuery.TooManyClauses+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.*/protected TopDocs search(List<AtomicReaderContext> leaves, Weight weight, ScoreDoc after, int nDocs) throws IOException {// single thread@@ -463,7 +476,8 @@ public class IndexSearcher {* <p>Applications should usually call {@link* IndexSearcher#search(Query,Filter,int,Sort)} instead.*- * @throws BooleanQuery.TooManyClauses+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.*/protected TopFieldDocs search(Weight weight,final int nDocs, Sort sort,@@ -559,7 +573,8 @@ public class IndexSearcher {* to match documents* @param collector* to receive hits- * @throws BooleanQuery.TooManyClauses+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.*/protected void search(List<AtomicReaderContext> leaves, Weight weight, Collector collector)throws IOException {@@ -577,7 +592,8 @@ public class IndexSearcher {}/** Expert: called to re-write queries into primitive queries.- * @throws BooleanQuery.TooManyClauses+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.*/public Query rewrite(Query original) throws IOException {Query query = original;@@ -609,7 +625,8 @@ public class IndexSearcher {* Computing an explanation is as expensive as executing the query over the* entire index.* <p>Applications should call {@link IndexSearcher#explain(Query, int)}.- * @throws BooleanQuery.TooManyClauses+ * @throws BooleanQuery.TooManyClauses If a query would exceed+ * {@link BooleanQuery#getMaxClauseCount()} clauses.*/protected Explanation explain(Weight weight, int doc) throws IOException {int n = ReaderUtil.subIndex(doc, leafContexts);diff --git a/lucene/core/src/java/org/apache/lucene/search/MultiPhraseQuery.java b/lucene/core/src/java/org/apache/lucene/search/MultiPhraseQuery.javaindex 992162a8e1c..86494afd35f 100644--- a/lucene/core/src/java/org/apache/lucene/search/MultiPhraseQuery.java+++ b/lucene/core/src/java/org/apache/lucene/search/MultiPhraseQuery.java@@ -86,8 +86,6 @@ public class MultiPhraseQuery extends Query {* Allows to specify the relative position of terms within the phrase.** @see PhraseQuery#add(Term, int)- * @param terms- * @param position*/public void add(Term[] terms, int position) {if (termArrays.size() == 0)diff --git a/lucene/core/src/java/org/apache/lucene/search/NGramPhraseQuery.java b/lucene/core/src/java/org/apache/lucene/search/NGramPhraseQuery.javaindex 20c5c39c717..54d396e852a 100644--- a/lucene/core/src/java/org/apache/lucene/search/NGramPhraseQuery.java+++ b/lucene/core/src/java/org/apache/lucene/search/NGramPhraseQuery.java@@ -35,7 +35,7 @@ public class NGramPhraseQuery extends PhraseQuery {/*** Constructor that takes gram size.- * @param n+ * @param n n-gram size*/public NGramPhraseQuery(int n){super();diff --git a/lucene/core/src/java/org/apache/lucene/search/PhraseQuery.java b/lucene/core/src/java/org/apache/lucene/search/PhraseQuery.javaindex 724ed2c6853..6471b10afa2 100644--- a/lucene/core/src/java/org/apache/lucene/search/PhraseQuery.java+++ b/lucene/core/src/java/org/apache/lucene/search/PhraseQuery.java@@ -90,8 +90,6 @@ public class PhraseQuery extends Query {* This allows e.g. phrases with more than one term at the same position* or phrases with gaps (e.g. in connection with stopwords).*- * @param term- * @param position*/public void add(Term term, int position) {if (terms.size() == 0) {diff --git a/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java b/lucene/core/src/java/org/apache/lucene/search/SearcherManager.javaindex 9c5c743d485..d4cd148bf52 100644--- a/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java+++ b/lucene/core/src/java/org/apache/lucene/search/SearcherManager.java@@ -79,7 +79,7 @@ public final class SearcherManager extends ReferenceManager<IndexSearcher> {* don't require the searcher to be warmed before going live or other* custom behavior.*- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/public SearcherManager(IndexWriter writer, boolean applyAllDeletes, SearcherFactory searcherFactory) throws IOException {if (searcherFactory == null) {@@ -96,7 +96,7 @@ public final class SearcherManager extends ReferenceManager<IndexSearcher> {* <code>null</code> if you don't require the searcher to be warmed* before going live or other custom behavior.*- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/public SearcherManager(Directory dir, SearcherFactory searcherFactory) throws IOException {if (searcherFactory == null) {diff --git a/lucene/core/src/java/org/apache/lucene/search/TimeLimitingCollector.java b/lucene/core/src/java/org/apache/lucene/search/TimeLimitingCollector.javaindex 98bdd8b1c19..b671b018b1a 100644--- a/lucene/core/src/java/org/apache/lucene/search/TimeLimitingCollector.java+++ b/lucene/core/src/java/org/apache/lucene/search/TimeLimitingCollector.java@@ -96,7 +96,6 @@ public class TimeLimitingCollector extends Collector {* </pre>* </p>* @see #setBaseline()- * @param clockTime*/public void setBaseline(long clockTime) {t0 = clockTime;diff --git a/lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java b/lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.javaindex 942c7234b90..9842aeb23a2 100644--- a/lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java+++ b/lucene/core/src/java/org/apache/lucene/search/TopFieldCollector.java@@ -1060,7 +1060,7 @@ public abstract class TopFieldCollector extends TopDocsCollector<Entry> {* the given {@link Scorer} in {@link #setScorer(Scorer)}.* @return a {@link TopFieldCollector} instance which will sort the results by* the sort criteria.- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/public static TopFieldCollector create(Sort sort, int numHits,boolean fillFields, boolean trackDocScores, boolean trackMaxScore,@@ -1105,7 +1105,7 @@ public abstract class TopFieldCollector extends TopDocsCollector<Entry> {* the given {@link Scorer} in {@link #setScorer(Scorer)}.* @return a {@link TopFieldCollector} instance which will sort the results by* the sort criteria.- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/public static TopFieldCollector create(Sort sort, int numHits, FieldDoc after,boolean fillFields, boolean trackDocScores, boolean trackMaxScore,diff --git a/lucene/core/src/java/org/apache/lucene/search/Weight.java b/lucene/core/src/java/org/apache/lucene/search/Weight.javaindex 051d705a62d..48dd209d8e5 100644--- a/lucene/core/src/java/org/apache/lucene/search/Weight.java+++ b/lucene/core/src/java/org/apache/lucene/search/Weight.java@@ -108,7 +108,7 @@ public abstract class Weight {* but possibly filtering other documents)** @return a {@link Scorer} which scores documents in/out-of order.- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/public abstract Scorer scorer(AtomicReaderContext context, boolean scoreDocsInOrder,boolean topScorer, Bits acceptDocs) throws IOException;diff --git a/lucene/core/src/java/org/apache/lucene/search/payloads/PayloadSpanUtil.java b/lucene/core/src/java/org/apache/lucene/search/payloads/PayloadSpanUtil.javaindex b8ab5d31d07..3ae6ffdc062 100644--- a/lucene/core/src/java/org/apache/lucene/search/payloads/PayloadSpanUtil.java+++ b/lucene/core/src/java/org/apache/lucene/search/payloads/PayloadSpanUtil.java@@ -69,9 +69,9 @@ public class PayloadSpanUtil {/*** Query should be rewritten for wild/fuzzy support.*- * @param query+ * @param query rewritten query* @return payloads Collection- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/public Collection<byte[]> getPayloadsForQuery(Query query) throws IOException {Collection<byte[]> payloads = new ArrayList<byte[]>();diff --git a/lucene/core/src/java/org/apache/lucene/search/payloads/PayloadTermQuery.java b/lucene/core/src/java/org/apache/lucene/search/payloads/PayloadTermQuery.javaindex ee62c0d9164..7c9e9e6078f 100644--- a/lucene/core/src/java/org/apache/lucene/search/payloads/PayloadTermQuery.java+++ b/lucene/core/src/java/org/apache/lucene/search/payloads/PayloadTermQuery.java@@ -139,7 +139,7 @@ public class PayloadTermQuery extends SpanTermQuery {/**** @return {@link #getSpanScore()} * {@link #getPayloadScore()}- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/@Overridepublic float score() throws IOException {@@ -154,7 +154,7 @@ public class PayloadTermQuery extends SpanTermQuery {* Should not be overridden without good cause!** @return the score for just the Span part w/o the payload- * @throws IOException+ * @throws IOException if there is a low-level I/O error** @see #score()*/diff --git a/lucene/core/src/java/org/apache/lucene/search/similarities/Similarity.java b/lucene/core/src/java/org/apache/lucene/search/similarities/Similarity.javaindex bacd4e6fc3c..9aff3b9e412 100644--- a/lucene/core/src/java/org/apache/lucene/search/similarities/Similarity.java+++ b/lucene/core/src/java/org/apache/lucene/search/similarities/Similarity.java@@ -179,7 +179,7 @@ public abstract class Similarity {* @param weight collection information from {@link #computeWeight(float, CollectionStatistics, TermStatistics...)}* @param context segment of the inverted index to be scored.* @return ExactSimScorer for scoring documents across <code>context</code>- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/public abstract ExactSimScorer exactSimScorer(SimWeight weight, AtomicReaderContext context) throws IOException;@@ -188,7 +188,7 @@ public abstract class Similarity {* @param weight collection information from {@link #computeWeight(float, CollectionStatistics, TermStatistics...)}* @param context segment of the inverted index to be scored.* @return SloppySimScorer for scoring documents across <code>context</code>- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/public abstract SloppySimScorer sloppySimScorer(SimWeight weight, AtomicReaderContext context) throws IOException;diff --git a/lucene/core/src/java/org/apache/lucene/search/spans/NearSpansOrdered.java b/lucene/core/src/java/org/apache/lucene/search/spans/NearSpansOrdered.javaindex a5bc329949b..0559dc8d744 100644--- a/lucene/core/src/java/org/apache/lucene/search/spans/NearSpansOrdered.java+++ b/lucene/core/src/java/org/apache/lucene/search/spans/NearSpansOrdered.java@@ -219,8 +219,6 @@ public class NearSpansOrdered extends Spans {}/** Check whether two Spans in the same document are ordered.- * @param spans1- * @param spans2* @return true iff spans1 starts before spans2* or the spans start at the same position,* and spans1 ends before spans2.diff --git a/lucene/core/src/java/org/apache/lucene/search/spans/NearSpansUnordered.java b/lucene/core/src/java/org/apache/lucene/search/spans/NearSpansUnordered.javaindex 7279b049d22..42090c65db7 100644--- a/lucene/core/src/java/org/apache/lucene/search/spans/NearSpansUnordered.java+++ b/lucene/core/src/java/org/apache/lucene/search/spans/NearSpansUnordered.java@@ -241,7 +241,7 @@ public class NearSpansUnordered extends Spans {/*** WARNING: The List is not necessarily in order of the the positions* @return Collection of <code>byte[]</code> payloads- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/@Overridepublic Collection<byte[]> getPayload() throws IOException {diff --git a/lucene/core/src/java/org/apache/lucene/search/spans/Spans.java b/lucene/core/src/java/org/apache/lucene/search/spans/Spans.javaindex 2e3c0ce2936..a774c60f081 100644--- a/lucene/core/src/java/org/apache/lucene/search/spans/Spans.java+++ b/lucene/core/src/java/org/apache/lucene/search/spans/Spans.java@@ -69,7 +69,7 @@ public abstract class Spans {* @lucene.experimental** @return a List of byte arrays containing the data of this payload, otherwise null if isPayloadAvailable is false- * @throws java.io.IOException+ * @throws IOException if there is a low-level I/O error*/// TODO: Remove warning after API has been finalizedpublic abstract Collection<byte[]> getPayload() throws IOException;diff --git a/lucene/core/src/java/org/apache/lucene/store/CompoundFileDirectory.java b/lucene/core/src/java/org/apache/lucene/store/CompoundFileDirectory.javaindex 5a940cb146f..80a23d933d0 100644--- a/lucene/core/src/java/org/apache/lucene/store/CompoundFileDirectory.java+++ b/lucene/core/src/java/org/apache/lucene/store/CompoundFileDirectory.java@@ -215,14 +215,14 @@ public final class CompoundFileDirectory extends Directory {}/** Not implemented- * @throws UnsupportedOperationException */+ * @throws UnsupportedOperationException always: not supported by CFS */@Overridepublic void deleteFile(String name) {throw new UnsupportedOperationException();}/** Not implemented- * @throws UnsupportedOperationException */+ * @throws UnsupportedOperationException always: not supported by CFS */public void renameFile(String from, String to) {throw new UnsupportedOperationException();}@@ -253,7 +253,7 @@ public final class CompoundFileDirectory extends Directory {}/** Not implemented- * @throws UnsupportedOperationException */+ * @throws UnsupportedOperationException always: not supported by CFS */@Overridepublic Lock makeLock(String name) {throw new UnsupportedOperationException();diff --git a/lucene/core/src/java/org/apache/lucene/store/FSDirectory.java b/lucene/core/src/java/org/apache/lucene/store/FSDirectory.javaindex 66bcb1daa9d..5c98c6a25f3 100644--- a/lucene/core/src/java/org/apache/lucene/store/FSDirectory.java+++ b/lucene/core/src/java/org/apache/lucene/store/FSDirectory.java@@ -135,7 +135,7 @@ public abstract class FSDirectory extends Directory {* @param path the path of the directory* @param lockFactory the lock factory to use, or null for the default* ({@link NativeFSLockFactory});- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/protected FSDirectory(File path, LockFactory lockFactory) throws IOException {// new ctors use always NativeFSLockFactory as default:diff --git a/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java b/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.javaindex c1c7f5aa007..65c2d923cd6 100644--- a/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java+++ b/lucene/core/src/java/org/apache/lucene/store/MMapDirectory.java@@ -90,7 +90,7 @@ public class MMapDirectory extends FSDirectory {* @param path the path of the directory* @param lockFactory the lock factory to use, or null for the default* ({@link NativeFSLockFactory});- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/public MMapDirectory(File path, LockFactory lockFactory) throws IOException {this(path, lockFactory, DEFAULT_MAX_BUFF);@@ -99,7 +99,7 @@ public class MMapDirectory extends FSDirectory {/** Create a new MMapDirectory for the named location and {@link NativeFSLockFactory}.** @param path the path of the directory- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/public MMapDirectory(File path) throws IOException {this(path, null);@@ -123,7 +123,7 @@ public class MMapDirectory extends FSDirectory {* be {@code 1 << 30}, as the address space is big enough.* <p>* <b>Please note:</b> The chunk size is always rounded down to a power of 2.- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/public MMapDirectory(File path, LockFactory lockFactory, int maxChunkSize) throws IOException {super(path, lockFactory);diff --git a/lucene/core/src/java/org/apache/lucene/store/NIOFSDirectory.java b/lucene/core/src/java/org/apache/lucene/store/NIOFSDirectory.javaindex e7608858480..7fbc05bc6e9 100644--- a/lucene/core/src/java/org/apache/lucene/store/NIOFSDirectory.java+++ b/lucene/core/src/java/org/apache/lucene/store/NIOFSDirectory.java@@ -58,7 +58,7 @@ public class NIOFSDirectory extends FSDirectory {* @param path the path of the directory* @param lockFactory the lock factory to use, or null for the default* ({@link NativeFSLockFactory});- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/public NIOFSDirectory(File path, LockFactory lockFactory) throws IOException {super(path, lockFactory);@@ -67,7 +67,7 @@ public class NIOFSDirectory extends FSDirectory {/** Create a new NIOFSDirectory for the named location and {@link NativeFSLockFactory}.** @param path the path of the directory- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/public NIOFSDirectory(File path) throws IOException {super(path, null);diff --git a/lucene/core/src/java/org/apache/lucene/store/SimpleFSDirectory.java b/lucene/core/src/java/org/apache/lucene/store/SimpleFSDirectory.javaindex dbcae612f2c..fe818da06f9 100644--- a/lucene/core/src/java/org/apache/lucene/store/SimpleFSDirectory.java+++ b/lucene/core/src/java/org/apache/lucene/store/SimpleFSDirectory.java@@ -35,7 +35,7 @@ public class SimpleFSDirectory extends FSDirectory {* @param path the path of the directory* @param lockFactory the lock factory to use, or null for the default* ({@link NativeFSLockFactory});- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/public SimpleFSDirectory(File path, LockFactory lockFactory) throws IOException {super(path, lockFactory);@@ -44,7 +44,7 @@ public class SimpleFSDirectory extends FSDirectory {/** Create a new SimpleFSDirectory for the named location and {@link NativeFSLockFactory}.** @param path the path of the directory- * @throws IOException+ * @throws IOException if there is a low-level I/O error*/public SimpleFSDirectory(File path) throws IOException {super(path, null);diff --git a/lucene/core/src/java/org/apache/lucene/util/BytesRef.java b/lucene/core/src/java/org/apache/lucene/util/BytesRef.javaindex 29ae3716b69..7877b6fb5df 100644--- a/lucene/core/src/java/org/apache/lucene/util/BytesRef.java+++ b/lucene/core/src/java/org/apache/lucene/util/BytesRef.java@@ -262,7 +262,7 @@ public final class BytesRef implements Comparable<BytesRef>,Cloneable {}}- /** @deprecated */+ /** @deprecated This comparator is only a transition mechanism */@Deprecatedprivate final static Comparator<BytesRef> utf8SortedAsUTF16SortOrder = new UTF8SortedAsUTF16Comparator();@@ -272,7 +272,7 @@ public final class BytesRef implements Comparable<BytesRef>,Cloneable {return utf8SortedAsUTF16SortOrder;}- /** @deprecated */+ /** @deprecated This comparator is only a transition mechanism */@Deprecatedprivate static class UTF8SortedAsUTF16Comparator implements Comparator<BytesRef> {// Only singletondiff --git a/lucene/core/src/java/org/apache/lucene/util/BytesRefIterator.java b/lucene/core/src/java/org/apache/lucene/util/BytesRefIterator.javaindex 57d7df7e221..3e488f84f02 100644--- a/lucene/core/src/java/org/apache/lucene/util/BytesRefIterator.java+++ b/lucene/core/src/java/org/apache/lucene/util/BytesRefIterator.java@@ -34,7 +34,7 @@ public interface BytesRefIterator {** @return the next {@link BytesRef} in the iterator or <code>null</code> if* the end of the iterator is reached.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public BytesRef next() throws IOException;diff --git a/lucene/core/src/java/org/apache/lucene/util/CharsRef.java b/lucene/core/src/java/org/apache/lucene/util/CharsRef.javaindex c1c129ea005..f874ac90f59 100644--- a/lucene/core/src/java/org/apache/lucene/util/CharsRef.java+++ b/lucene/core/src/java/org/apache/lucene/util/CharsRef.java@@ -217,7 +217,7 @@ public final class CharsRef implements Comparable<CharsRef>, CharSequence, Clonereturn new CharsRef(chars, offset + start, offset + end);}- /** @deprecated */+ /** @deprecated This comparator is only a transition mechanism */@Deprecatedprivate final static Comparator<CharsRef> utf16SortedAsUTF8SortOrder = new UTF16SortedAsUTF8Comparator();@@ -227,7 +227,7 @@ public final class CharsRef implements Comparable<CharsRef>, CharSequence, Clonereturn utf16SortedAsUTF8SortOrder;}- /** @deprecated */+ /** @deprecated This comparator is only a transition mechanism */@Deprecatedprivate static class UTF16SortedAsUTF8Comparator implements Comparator<CharsRef> {// Only singletondiff --git a/lucene/core/src/java/org/apache/lucene/util/CommandLineUtil.java b/lucene/core/src/java/org/apache/lucene/util/CommandLineUtil.javaindex c628bc2813b..c8e5ef55e29 100644--- a/lucene/core/src/java/org/apache/lucene/util/CommandLineUtil.java+++ b/lucene/core/src/java/org/apache/lucene/util/CommandLineUtil.java@@ -62,7 +62,7 @@ public final class CommandLineUtil {* Loads a specific Directory implementation* @param clazzName The name of the Directory class to load* @return The Directory class loaded- * @throws ClassNotFoundException+ * @throws ClassNotFoundException If the specified class cannot be found.*/public static Class<? extends Directory> loadDirectoryClass(String clazzName)throws ClassNotFoundException {@@ -73,7 +73,7 @@ public final class CommandLineUtil {* Loads a specific FSDirectory implementation* @param clazzName The name of the FSDirectory class to load* @return The FSDirectory class loaded- * @throws ClassNotFoundException+ * @throws ClassNotFoundException If the specified class cannot be found.*/public static Class<? extends FSDirectory> loadFSDirectoryClass(String clazzName)throws ClassNotFoundException {@@ -97,10 +97,10 @@ public final class CommandLineUtil {* @param clazz The class of the object to be created* @param file The file to be used as parameter constructor* @return The new FSDirectory instance- * @throws NoSuchMethodException- * @throws InstantiationException- * @throws IllegalAccessException- * @throws InvocationTargetException+ * @throws NoSuchMethodException If the Directory does not have a constructor that takes <code>File</code>.+ * @throws InstantiationException If the class is abstract or an interface.+ * @throws IllegalAccessException If the constructor does not have public visibility.+ * @throws InvocationTargetException If the constructor throws an exception*/public static FSDirectory newFSDirectory(Class<? extends FSDirectory> clazz, File file)throws NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException {diff --git a/lucene/core/src/java/org/apache/lucene/util/OpenBitSet.java b/lucene/core/src/java/org/apache/lucene/util/OpenBitSet.javaindex ea232ad39b8..bc290dedd55 100644--- a/lucene/core/src/java/org/apache/lucene/util/OpenBitSet.java+++ b/lucene/core/src/java/org/apache/lucene/util/OpenBitSet.java@@ -81,9 +81,7 @@ public class OpenBitSet extends DocIdSet implements Bits, Cloneable {// Used only for assert:private long numBits;- /** Constructs an OpenBitSet large enough to hold numBits.- *- * @param numBits+ /** Constructs an OpenBitSet large enough to hold <code>numBits</code>.*/public OpenBitSet(long numBits) {this.numBits = numBits;diff --git a/lucene/core/src/java/org/apache/lucene/util/packed/PackedInts.java b/lucene/core/src/java/org/apache/lucene/util/packed/PackedInts.javaindex b17e0c354ef..08896475534 100644--- a/lucene/core/src/java/org/apache/lucene/util/packed/PackedInts.java+++ b/lucene/core/src/java/org/apache/lucene/util/packed/PackedInts.java@@ -712,7 +712,7 @@ public class PackedInts {* @param valueCount how many values the stream holds* @param bitsPerValue the number of bits per value* @return a Reader- * @throws IOException+ * @throws IOException If there is a low-level I/O error* @see PackedInts#getWriterNoHeader(DataOutput, Format, int, int, int)* @lucene.internal*/@@ -754,7 +754,7 @@ public class PackedInts {** @param in the stream to read data from* @return a Reader- * @throws IOException+ * @throws IOException If there is a low-level I/O error* @lucene.internal*/public static Reader getReader(DataInput in) throws IOException {@@ -846,7 +846,7 @@ public class PackedInts {** @param in the stream to read data from* @return a direct Reader- * @throws IOException+ * @throws IOException If there is a low-level I/O error* @lucene.internal*/public static Reader getDirectReader(IndexInput in) throws IOException {@@ -990,7 +990,7 @@ public class PackedInts {* @param bitsPerValue the number of bits per value* @param acceptableOverheadRatio an acceptable overhead ratio per value* @return a Writer- * @throws IOException+ * @throws IOException If there is a low-level I/O error* @lucene.internal*/public static Writer getWriter(DataOutput out,diff --git a/lucene/core/src/test/org/apache/lucene/codecs/lucene40/TestBitVector.java b/lucene/core/src/test/org/apache/lucene/codecs/lucene40/TestBitVector.javaindex 32080c145dd..f8e294c321c 100644--- a/lucene/core/src/test/org/apache/lucene/codecs/lucene40/TestBitVector.java+++ b/lucene/core/src/test/org/apache/lucene/codecs/lucene40/TestBitVector.java@@ -33,7 +33,6 @@ public class TestBitVector extends LuceneTestCase/*** Test the default constructor on BitVectors of various sizes.- * @throws Exception*/public void testConstructSize() throws Exception {doTestConstructOfSize(8);@@ -49,7 +48,6 @@ public class TestBitVector extends LuceneTestCase/*** Test the get() and set() methods on BitVectors of various sizes.- * @throws Exception*/public void testGetSet() throws Exception {doTestGetSetVectorOfSize(8);@@ -70,7 +68,6 @@ public class TestBitVector extends LuceneTestCase/*** Test the clear() method on BitVectors of various sizes.- * @throws Exception*/public void testClear() throws Exception {doTestClearVectorOfSize(8);@@ -93,7 +90,6 @@ public class TestBitVector extends LuceneTestCase/*** Test the count() method on BitVectors of various sizes.- * @throws Exception*/public void testCount() throws Exception {doTestCountVectorOfSize(8);@@ -129,7 +125,6 @@ public class TestBitVector extends LuceneTestCase/*** Test writing and construction to/from Directory.- * @throws Exception*/public void testWriteRead() throws Exception {doTestWriteRead(8);diff --git a/lucene/core/src/test/org/apache/lucene/index/TestCrashCausesCorruptIndex.java b/lucene/core/src/test/org/apache/lucene/index/TestCrashCausesCorruptIndex.javaindex 821d0d54b4a..4cac7bb2769 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestCrashCausesCorruptIndex.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestCrashCausesCorruptIndex.java@@ -41,8 +41,6 @@ public class TestCrashCausesCorruptIndex extends LuceneTestCase {/*** LUCENE-3627: This test fails.- *- * @throws Exception*/public void testCrashCorruptsIndexing() throws Exception {path = _TestUtil.getTempDir("testCrashCorruptsIndexing");@@ -60,8 +58,6 @@ public class TestCrashCausesCorruptIndex extends LuceneTestCase {* index 1 document and commit.* prepare for crashing.* index 1 more document, and upon commit, creation of segments_2 will crash.- *- * @throws IOException*/private void indexAndCrashOnCreateOutputSegments2() throws IOException {Directory realDirectory = FSDirectory.open(path);@@ -93,8 +89,6 @@ public class TestCrashCausesCorruptIndex extends LuceneTestCase {/*** Attempts to index another 1 document.- *- * @throws IOException*/private void indexAfterRestart() throws IOException {Directory realDirectory = newFSDirectory(path);@@ -115,8 +109,6 @@ public class TestCrashCausesCorruptIndex extends LuceneTestCase {/*** Run an example search.- *- * @throws IOException*/private void searchForFleas(final int expectedTotalHits) throws IOException {Directory realDirectory = newFSDirectory(path);diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.javaindex 213ff9fd021..a7402fee9bf 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriter.java@@ -644,8 +644,6 @@ public class TestIndexWriter extends LuceneTestCase {* Test that no NullPointerException will be raised,* when adding one document with a single, empty field* and term vectors enabled.- * @throws IOException- **/public void testBadSegment() throws IOException {Directory dir = newDirectory();diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterReader.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterReader.javaindex 43c31f4bef4..02897e363ed 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterReader.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterReader.java@@ -223,8 +223,6 @@ public class TestIndexWriterReader extends LuceneTestCase {/*** Test using IW.addIndexes- *- * @throws Exception*/public void testAddIndexes() throws Exception {boolean doFullMerge = false;@@ -310,8 +308,6 @@ public class TestIndexWriterReader extends LuceneTestCase {/*** Deletes using IW.deleteDocuments- *- * @throws Exception*/public void testDeleteFromIndexWriter() throws Exception {boolean doFullMerge = true;diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIsCurrent.java b/lucene/core/src/test/org/apache/lucene/index/TestIsCurrent.javaindex 901b557d2db..d9421967368 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestIsCurrent.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestIsCurrent.java@@ -56,8 +56,6 @@ public class TestIsCurrent extends LuceneTestCase {/*** Failing testcase showing the trouble- *- * @throws IOException*/@Testpublic void testDeleteByTermIsCurrent() throws IOException {@@ -83,8 +81,6 @@ public class TestIsCurrent extends LuceneTestCase {/*** Testcase for example to show that writer.deleteAll() is working as expected- *- * @throws IOException*/@Testpublic void testDeleteAllIsCurrent() throws IOException {diff --git a/lucene/core/src/test/org/apache/lucene/index/TestParallelReaderEmptyIndex.java b/lucene/core/src/test/org/apache/lucene/index/TestParallelReaderEmptyIndex.javaindex 564191640c0..460d9d3b76e 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestParallelReaderEmptyIndex.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestParallelReaderEmptyIndex.java@@ -36,8 +36,6 @@ public class TestParallelReaderEmptyIndex extends LuceneTestCase {/*** Creates two empty indexes and wraps a ParallelReader around. Adding this* reader to a new index should not throw any exception.- *- * @throws IOException*/public void testEmptyIndex() throws IOException {Directory rd1 = newDirectory();diff --git a/lucene/core/src/test/org/apache/lucene/search/TestBooleanOr.java b/lucene/core/src/test/org/apache/lucene/search/TestBooleanOr.javaindex 83da2f6497c..22e29b72d1c 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestBooleanOr.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestBooleanOr.java@@ -59,8 +59,6 @@ public class TestBooleanOr extends LuceneTestCase {/*** <code>T:files T:deleting C:production C:optimize </code>* it works.- *- * @throws IOException*/public void testFlat() throws IOException {BooleanQuery q = new BooleanQuery();@@ -74,8 +72,6 @@ public class TestBooleanOr extends LuceneTestCase {/*** <code>(T:files T:deleting) (+C:production +C:optimize)</code>* it works.- *- * @throws IOException*/public void testParenthesisMust() throws IOException {BooleanQuery q3 = new BooleanQuery();@@ -93,8 +89,6 @@ public class TestBooleanOr extends LuceneTestCase {/*** <code>(T:files T:deleting) +(C:production C:optimize)</code>* not working. results NO HIT.- *- * @throws IOException*/public void testParenthesisMust2() throws IOException {BooleanQuery q3 = new BooleanQuery();@@ -112,8 +106,6 @@ public class TestBooleanOr extends LuceneTestCase {/*** <code>(T:files T:deleting) (C:production C:optimize)</code>* not working. results NO HIT.- *- * @throws IOException*/public void testParenthesisShould() throws IOException {BooleanQuery q3 = new BooleanQuery();diff --git a/lucene/core/src/test/org/apache/lucene/search/TestCustomSearcherSort.java b/lucene/core/src/test/org/apache/lucene/search/TestCustomSearcherSort.javaindex 39850c26f00..3c872a5981e 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestCustomSearcherSort.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestCustomSearcherSort.java@@ -152,8 +152,6 @@ public class TestCustomSearcherSort extends LuceneTestCase {/*** Check the hits for duplicates.- *- * @param hits*/private void checkHits(ScoreDoc[] hits, String prefix) {if (hits != null) {@@ -186,9 +184,6 @@ public class TestCustomSearcherSort extends LuceneTestCase {public class CustomSearcher extends IndexSearcher {private int switcher;- /**- * @param r- */public CustomSearcher(IndexReader r, int switcher) {super(r);this.switcher = switcher;diff --git a/lucene/core/src/test/org/apache/lucene/search/TestWildcard.java b/lucene/core/src/test/org/apache/lucene/search/TestWildcard.javaindex 3c53c053ca2..233c395c62d 100644--- a/lucene/core/src/test/org/apache/lucene/search/TestWildcard.java+++ b/lucene/core/src/test/org/apache/lucene/search/TestWildcard.java@@ -269,7 +269,6 @@ public class TestWildcard* This test looks at both parsing and execution of wildcard queries.* Although placed here, it also tests prefix queries, verifying that* prefix queries are not parsed into wild card queries, and viceversa.- * @throws Exception*/public void testParsingAndSearching() throws Exception {String field = "content";diff --git a/lucene/core/src/test/org/apache/lucene/search/payloads/PayloadHelper.java b/lucene/core/src/test/org/apache/lucene/search/payloads/PayloadHelper.javaindex a8749dbbd5b..8778bd93559 100644--- a/lucene/core/src/test/org/apache/lucene/search/payloads/PayloadHelper.java+++ b/lucene/core/src/test/org/apache/lucene/search/payloads/PayloadHelper.java@@ -113,7 +113,6 @@ public class PayloadHelper {* @param similarity The Similarity class to use in the Searcher* @param numDocs The num docs to add* @return An IndexSearcher- * @throws IOException*/// TODO: randomizepublic IndexSearcher setUp(Random random, Similarity similarity, int numDocs) throws IOException {diff --git a/lucene/core/src/test/org/apache/lucene/search/spans/TestSpansAdvanced.java b/lucene/core/src/test/org/apache/lucene/search/spans/TestSpansAdvanced.javaindex 1431422c3af..0d1c0494f0d 100644--- a/lucene/core/src/test/org/apache/lucene/search/spans/TestSpansAdvanced.java+++ b/lucene/core/src/test/org/apache/lucene/search/spans/TestSpansAdvanced.java@@ -86,7 +86,6 @@ public class TestSpansAdvanced extends LuceneTestCase {* @param writer the Lucene index writer* @param id the unique id of the document* @param text the text of the document- * @throws IOException*/protected void addDocument(final RandomIndexWriter writer, final String id,final String text) throws IOException {@@ -99,8 +98,6 @@ public class TestSpansAdvanced extends LuceneTestCase {/*** Tests two span queries.- *- * @throws IOException*/public void testBooleanQueryWithSpanQueries() throws IOException {@@ -109,8 +106,6 @@ public class TestSpansAdvanced extends LuceneTestCase {/*** Tests two span queries.- *- * @throws IOException*/protected void doTestBooleanQueryWithSpanQueries(IndexSearcher s,final float expectedScore) throws IOException {@@ -132,8 +127,6 @@ public class TestSpansAdvanced extends LuceneTestCase {* @param description the description of the search* @param expectedIds the expected document ids of the hits* @param expectedScores the expected scores of the hits- *- * @throws IOException*/protected static void assertHits(IndexSearcher s, Query query,final String description, final String[] expectedIds,diff --git a/lucene/core/src/test/org/apache/lucene/search/spans/TestSpansAdvanced2.java b/lucene/core/src/test/org/apache/lucene/search/spans/TestSpansAdvanced2.javaindex 584be01bae1..1a3c1ca641d 100644--- a/lucene/core/src/test/org/apache/lucene/search/spans/TestSpansAdvanced2.java+++ b/lucene/core/src/test/org/apache/lucene/search/spans/TestSpansAdvanced2.java@@ -72,8 +72,6 @@ public class TestSpansAdvanced2 extends TestSpansAdvanced {/*** Verifies that the index has the correct number of documents.- *- * @throws Exception*/public void testVerifyIndex() throws Exception {final IndexReader reader = DirectoryReader.open(mDirectory);@@ -83,8 +81,6 @@ public class TestSpansAdvanced2 extends TestSpansAdvanced {/*** Tests a single span query that matches multiple documents.- *- * @throws IOException*/public void testSingleSpanQuery() throws IOException {@@ -99,8 +95,6 @@ public class TestSpansAdvanced2 extends TestSpansAdvanced {/*** Tests a single span query that matches multiple documents.- *- * @throws IOException*/public void testMultipleDifferentSpanQueries() throws IOException {@@ -119,8 +113,6 @@ public class TestSpansAdvanced2 extends TestSpansAdvanced {/*** Tests two span queries.- *- * @throws IOException*/@Overridepublic void testBooleanQueryWithSpanQueries() throws IOException {diff --git a/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java b/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.javaindex 32ecf12db5e..662fd7d41c2 100644--- a/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java+++ b/lucene/core/src/test/org/apache/lucene/store/TestFileSwitchDirectory.java@@ -37,7 +37,6 @@ import org.apache.lucene.util._TestUtil;public class TestFileSwitchDirectory extends LuceneTestCase {/*** Test if writing doc stores to disk and everything else to ram works.- * @throws IOException*/public void testBasic() throws IOException {Set<String> fileExtensions = new HashSet<String>();diff --git a/lucene/demo/src/java/org/apache/lucene/demo/IndexFiles.java b/lucene/demo/src/java/org/apache/lucene/demo/IndexFiles.javaindex 6f344469002..a4abadc21b8 100644--- a/lucene/demo/src/java/org/apache/lucene/demo/IndexFiles.java+++ b/lucene/demo/src/java/org/apache/lucene/demo/IndexFiles.java@@ -140,7 +140,7 @@ public class IndexFiles {** @param writer Writer to the index where the given file/dir info will be stored* @param file The file to index, or the directory to recurse into to find files to index- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/static void indexDocs(IndexWriter writer, File file)throws IOException {diff --git a/lucene/facet/src/java/org/apache/lucene/facet/enhancements/EnhancementsDocumentBuilder.java b/lucene/facet/src/java/org/apache/lucene/facet/enhancements/EnhancementsDocumentBuilder.javaindex c8ca0286640..9e64e7f4d3b 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/enhancements/EnhancementsDocumentBuilder.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/enhancements/EnhancementsDocumentBuilder.java@@ -43,7 +43,6 @@ import org.apache.lucene.facet.taxonomy.TaxonomyWriter;public class EnhancementsDocumentBuilder extends CategoryDocumentBuilder {/**- * @param taxonomyWriter* @param params* Indexing params which include {@link CategoryEnhancement}s.*/diff --git a/lucene/facet/src/java/org/apache/lucene/facet/enhancements/EnhancementsPayloadIterator.java b/lucene/facet/src/java/org/apache/lucene/facet/enhancements/EnhancementsPayloadIterator.javaindex cb4c129920b..28b8857bdd8 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/enhancements/EnhancementsPayloadIterator.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/enhancements/EnhancementsPayloadIterator.java@@ -50,7 +50,7 @@ public class EnhancementsPayloadIterator extends PayloadIterator {* A reader of the index.* @param term* The category term to iterate.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public EnhancementsPayloadIterator(List<CategoryEnhancement> enhancementsList,diff --git a/lucene/facet/src/java/org/apache/lucene/facet/index/CategoryContainer.java b/lucene/facet/src/java/org/apache/lucene/facet/index/CategoryContainer.javaindex 803411b75b0..22a9ea520fa 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/index/CategoryContainer.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/index/CategoryContainer.java@@ -204,7 +204,7 @@ public class CategoryContainer implements Iterable<CategoryAttribute>, Serializa* {@link ObjectOutputStream}.<br>* NOTE: {@link CategoryProperty}s are {@link Serializable}, but do not* assume that Lucene's {@link Attribute}s are as well- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/protected void serializeCategoryAttribute(ObjectOutputStream out,CategoryAttribute ca) throws IOException {diff --git a/lucene/facet/src/java/org/apache/lucene/facet/index/CategoryDocumentBuilder.java b/lucene/facet/src/java/org/apache/lucene/facet/index/CategoryDocumentBuilder.javaindex f67cd72a1b7..cedb4f919f9 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/index/CategoryDocumentBuilder.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/index/CategoryDocumentBuilder.java@@ -128,7 +128,7 @@ public class CategoryDocumentBuilder {* @return This CategoryDocumentBuilder, to enable this one line call:* {@code new} {@link #CategoryDocumentBuilder(TaxonomyWriter)}.* {@link #setCategoryPaths(Iterable)}.{@link #build(Document)}.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public CategoryDocumentBuilder setCategoryPaths(Iterable<CategoryPath> categoryPaths) throws IOException {@@ -150,7 +150,7 @@ public class CategoryDocumentBuilder {* @return This CategoryDocumentBuilder, to enable this one line call:* {@code new} {@link #CategoryDocumentBuilder(TaxonomyWriter)}.* {@link #setCategories(Iterable)}.{@link #build(Document)}.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public CategoryDocumentBuilder setCategories(Iterable<CategoryAttribute> categories) throws IOException {@@ -277,7 +277,7 @@ public class CategoryDocumentBuilder {* relevant data.* @return The {@link CategoryTokenizer} to be used in creating category* tokens.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/protected CategoryTokenizer getCategoryTokenizer(TokenStream categoryStream)throws IOException {diff --git a/lucene/facet/src/java/org/apache/lucene/facet/index/params/PerDimensionIndexingParams.java b/lucene/facet/src/java/org/apache/lucene/facet/index/params/PerDimensionIndexingParams.javaindex 433bc3086b6..1f657d840e2 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/index/params/PerDimensionIndexingParams.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/index/params/PerDimensionIndexingParams.java@@ -95,9 +95,6 @@ public class PerDimensionIndexingParams extends DefaultFacetIndexingParams {/*** Add a CategoryListParams for a given CategoryPath's dimension or* "zero-th" category.- *- * @param category- * @param clParams*/public void addCategoryListParams(CategoryPath category, CategoryListParams clParams) {clParamsMap.put(category.getComponent(0), clParams);diff --git a/lucene/facet/src/java/org/apache/lucene/facet/search/FacetsAccumulator.java b/lucene/facet/src/java/org/apache/lucene/facet/search/FacetsAccumulator.javaindex 9172ae7ae32..f0bfa00baae 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/search/FacetsAccumulator.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/search/FacetsAccumulator.java@@ -81,7 +81,7 @@ public abstract class FacetsAccumulator {public abstract List<FacetResult> accumulate(ScoredDocIDs docids) throws IOException;/**- * @return the complement threshold+ * Returns the complement threshold.* @see #setComplementThreshold(double)*/public double getComplementThreshold() {@@ -107,6 +107,7 @@ public abstract class FacetsAccumulator {* <p>* To disable complements pass {@link #DISABLE_COMPLEMENT}.* @param complementThreshold the complement threshold to set+ * @see #getComplementThreshold()*/public void setComplementThreshold(double complementThreshold) {this.complementThreshold = complementThreshold;diff --git a/lucene/facet/src/java/org/apache/lucene/facet/search/SamplingWrapper.java b/lucene/facet/src/java/org/apache/lucene/facet/search/SamplingWrapper.javaindex dc93f38cbe7..6578f94c8b8 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/search/SamplingWrapper.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/search/SamplingWrapper.java@@ -88,18 +88,11 @@ public class SamplingWrapper extends FacetsAccumulator {return fixedRes;}- /**- * @see FacetsAccumulator#getComplementThreshold()- */@Overridepublic double getComplementThreshold() {return delegee.getComplementThreshold();}- /**- * @param complementThreshold- * @see FacetsAccumulator#setComplementThreshold(double)- */@Overridepublic void setComplementThreshold(double complementThreshold) {delegee.setComplementThreshold(complementThreshold);diff --git a/lucene/facet/src/java/org/apache/lucene/facet/search/StandardFacetsAccumulator.java b/lucene/facet/src/java/org/apache/lucene/facet/search/StandardFacetsAccumulator.javaindex 66d1200899a..2df0975cce0 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/search/StandardFacetsAccumulator.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/search/StandardFacetsAccumulator.java@@ -230,10 +230,7 @@ public class StandardFacetsAccumulator extends FacetsAccumulator {/*** Iterate over the documents for this partition and fill the facet arrays with the correct* count/complement count/value.- * @param docids- * @param facetArrays- * @param partition- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/private final void fillArraysForPartition(ScoredDocIDs docids,FacetArrays facetArrays, int partition) throws IOException {diff --git a/lucene/facet/src/java/org/apache/lucene/facet/search/params/FacetRequest.java b/lucene/facet/src/java/org/apache/lucene/facet/search/params/FacetRequest.javaindex 297865027f5..7162968f232 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/search/params/FacetRequest.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/search/params/FacetRequest.java@@ -318,7 +318,7 @@ public abstract class FacetRequest implements Cloneable {* index reader in effect.* @param taxonomy* reader of taxonomy in effect.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public abstract Aggregator createAggregator(boolean useComplements,FacetArrays arrays, IndexReader indexReader,diff --git a/lucene/facet/src/java/org/apache/lucene/facet/search/sampling/SampleFixer.java b/lucene/facet/src/java/org/apache/lucene/facet/search/sampling/SampleFixer.javaindex 24735ad1fd0..5b992d3b244 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/search/sampling/SampleFixer.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/search/sampling/SampleFixer.java@@ -38,7 +38,7 @@ public interface SampleFixer {* full set of matching documents.* @param fres* sample result to be fixed.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public void fixResult(ScoredDocIDs origDocIds, FacetResult fres) throws IOException;}\ No newline at end of filediff --git a/lucene/facet/src/java/org/apache/lucene/facet/search/sampling/TakmiSampleFixer.java b/lucene/facet/src/java/org/apache/lucene/facet/search/sampling/TakmiSampleFixer.javaindex 2f214d3fc73..5a8106d246d 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/search/sampling/TakmiSampleFixer.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/search/sampling/TakmiSampleFixer.java@@ -71,7 +71,7 @@ class TakmiSampleFixer implements SampleFixer {* result node to be fixed* @param docIds* docids in effect- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/private void fixResultNode(FacetResultNode facetResNode, ScoredDocIDs docIds)throws IOException {@@ -88,7 +88,7 @@ class TakmiSampleFixer implements SampleFixer {* result node to be recounted* @param docIds* full set of matching documents.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/private void recount(FacetResultNode fresNode, ScoredDocIDs docIds)throws IOException {diff --git a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/TaxonomyReader.java b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/TaxonomyReader.javaindex f39a0439be8..78d55af5424 100644--- a/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/TaxonomyReader.java+++ b/lucene/facet/src/java/org/apache/lucene/facet/taxonomy/TaxonomyReader.java@@ -257,7 +257,7 @@ public interface TaxonomyReader extends Closeable {* Expert: decreases the refCount of this TaxonomyReader instance.* If the refCount drops to 0, then pending changes (if any) can be* committed to the taxonomy index and this reader can be closed.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public void decRef() throws IOException;diff --git a/lucene/facet/src/java/org/apache/lucene/util/collections/FloatToObjectMap.java b/lucene/facet/src/java/org/apache/lucene/util/collections/FloatToObjectMap.javaindex 2d9647df34d..9b321c13b9a 100644--- a/lucene/facet/src/java/org/apache/lucene/util/collections/FloatToObjectMap.java+++ b/lucene/facet/src/java/org/apache/lucene/util/collections/FloatToObjectMap.java@@ -275,7 +275,6 @@ public class FloatToObjectMap<T> implements Iterable<T> {/*** Calculating the baseHash index using the internal <code>hashFactor</code>.- * @param key*/protected int calcBaseHashIndex(float key) {return Float.floatToIntBits(key) & hashFactor;@@ -339,7 +338,6 @@ public class FloatToObjectMap<T> implements Iterable<T> {/*** Find the actual index of a given key.*- * @param key* @return index of the key. zero if the key wasn't found.*/protected int find(float key) {@@ -370,8 +368,6 @@ public class FloatToObjectMap<T> implements Iterable<T> {* Some methods use the baseHashIndex. If those call {@link #find} there's* no need to re-calculate that hash.*- * @param key- * @param baseHashIndex* @return the index of the given key, or 0 as 'Ground' if the key wasn't* found.*/diff --git a/lucene/facet/src/java/org/apache/lucene/util/collections/IntHashSet.java b/lucene/facet/src/java/org/apache/lucene/util/collections/IntHashSet.javaindex adf468a4efe..d2bf0bf6fd0 100644--- a/lucene/facet/src/java/org/apache/lucene/util/collections/IntHashSet.java+++ b/lucene/facet/src/java/org/apache/lucene/util/collections/IntHashSet.java@@ -236,8 +236,6 @@ public class IntHashSet {/*** Calculating the baseHash index using the internal <code>hashFactor</code>* .- *- * @param key*/protected int calcBaseHashIndex(int key) {return key & hashFactor;@@ -282,7 +280,6 @@ public class IntHashSet {/*** Find the actual index of a given key.*- * @param key* @return index of the key. zero if the key wasn't found.*/protected int find(int key) {@@ -313,8 +310,6 @@ public class IntHashSet {* Some methods use the baseHashIndex. If those call {@link #find} there's* no need to re-calculate that hash.*- * @param key- * @param baseHashIndex* @return the index of the given key, or 0 as 'Ground' if the key wasn't* found.*/diff --git a/lucene/facet/src/java/org/apache/lucene/util/collections/IntToDoubleMap.java b/lucene/facet/src/java/org/apache/lucene/util/collections/IntToDoubleMap.javaindex ada9dc3eba7..ed4114bf60f 100644--- a/lucene/facet/src/java/org/apache/lucene/util/collections/IntToDoubleMap.java+++ b/lucene/facet/src/java/org/apache/lucene/util/collections/IntToDoubleMap.java@@ -276,8 +276,6 @@ public class IntToDoubleMap {/*** Calculating the baseHash index using the internal <code>hashFactor</code>* .- *- * @param key*/protected int calcBaseHashIndex(int key) {return key & hashFactor;@@ -340,7 +338,6 @@ public class IntToDoubleMap {/*** Find the actual index of a given key.*- * @param key* @return index of the key. zero if the key wasn't found.*/protected int find(int key) {@@ -371,8 +368,6 @@ public class IntToDoubleMap {* Some methods use the baseHashIndex. If those call {@link #find} there's* no need to re-calculate that hash.*- * @param key- * @param baseHashIndex* @return the index of the given key, or 0 as 'Ground' if the key wasn't* found.*/diff --git a/lucene/facet/src/java/org/apache/lucene/util/collections/IntToIntMap.java b/lucene/facet/src/java/org/apache/lucene/util/collections/IntToIntMap.javaindex e926da1b3d7..265683cdec9 100644--- a/lucene/facet/src/java/org/apache/lucene/util/collections/IntToIntMap.java+++ b/lucene/facet/src/java/org/apache/lucene/util/collections/IntToIntMap.java@@ -273,8 +273,6 @@ public class IntToIntMap {/*** Calculating the baseHash index using the internal <code>hashFactor</code>.- *- * @param key*/protected int calcBaseHashIndex(int key) {return key & hashFactor;@@ -337,7 +335,6 @@ public class IntToIntMap {/*** Find the actual index of a given key.*- * @param key* @return index of the key. zero if the key wasn't found.*/protected int find(int key) {@@ -368,8 +365,6 @@ public class IntToIntMap {* Some methods use the baseHashIndex. If those call {@link #find} there's* no need to re-calculate that hash.*- * @param key- * @param baseHashIndex* @return the index of the given key, or 0 as 'Ground' if the key wasn't* found.*/diff --git a/lucene/facet/src/java/org/apache/lucene/util/collections/IntToObjectMap.java b/lucene/facet/src/java/org/apache/lucene/util/collections/IntToObjectMap.javaindex 657c894d278..2acfaecc9a9 100644--- a/lucene/facet/src/java/org/apache/lucene/util/collections/IntToObjectMap.java+++ b/lucene/facet/src/java/org/apache/lucene/util/collections/IntToObjectMap.java@@ -275,7 +275,6 @@ public class IntToObjectMap<T> implements Iterable<T> {/*** Calculating the baseHash index using the internal <code>hashFactor</code>.*- * @param key*/protected int calcBaseHashIndex(int key) {return key & hashFactor;@@ -339,7 +338,6 @@ public class IntToObjectMap<T> implements Iterable<T> {/*** Find the actual index of a given key.*- * @param key* @return index of the key. zero if the key wasn't found.*/protected int find(int key) {@@ -370,8 +368,6 @@ public class IntToObjectMap<T> implements Iterable<T> {* Some methods use the baseHashIndex. If those call {@link #find} there's* no need to re-calculate that hash.*- * @param key- * @param baseHashIndex* @return the index of the given key, or 0 as 'Ground' if the key wasn't* found.*/diff --git a/lucene/facet/src/java/org/apache/lucene/util/collections/ObjectToFloatMap.java b/lucene/facet/src/java/org/apache/lucene/util/collections/ObjectToFloatMap.javaindex 9b8039bcbba..bc80575a3b7 100644--- a/lucene/facet/src/java/org/apache/lucene/util/collections/ObjectToFloatMap.java+++ b/lucene/facet/src/java/org/apache/lucene/util/collections/ObjectToFloatMap.java@@ -275,8 +275,6 @@ public class ObjectToFloatMap<K> {/*** Calculating the baseHash index using the internal <code>hashFactor</code>.- *- * @param key*/protected int calcBaseHashIndex(K key) {return key.hashCode() & hashFactor;@@ -341,7 +339,6 @@ public class ObjectToFloatMap<K> {/*** Find the actual index of a given key.*- * @param key* @return index of the key. zero if the key wasn't found.*/protected int find(K key) {@@ -372,8 +369,6 @@ public class ObjectToFloatMap<K> {* Some methods use the baseHashIndex. If those call {@link #find} there's* no need to re-calculate that hash.*- * @param key- * @param baseHashIndex* @return the index of the given key, or 0 as 'Ground' if the key wasn't* found.*/diff --git a/lucene/facet/src/java/org/apache/lucene/util/collections/ObjectToIntMap.java b/lucene/facet/src/java/org/apache/lucene/util/collections/ObjectToIntMap.javaindex 9d3e2c22974..be927e4c63d 100644--- a/lucene/facet/src/java/org/apache/lucene/util/collections/ObjectToIntMap.java+++ b/lucene/facet/src/java/org/apache/lucene/util/collections/ObjectToIntMap.java@@ -275,8 +275,6 @@ public class ObjectToIntMap<K> {/*** Calculating the baseHash index using the internal <code>hashFactor</code>.- *- * @param key*/protected int calcBaseHashIndex(K key) {return key.hashCode() & hashFactor;@@ -341,7 +339,6 @@ public class ObjectToIntMap<K> {/*** Find the actual index of a given key.*- * @param key* @return index of the key. zero if the key wasn't found.*/protected int find(K key) {@@ -372,8 +369,6 @@ public class ObjectToIntMap<K> {* Some methods use the baseHashIndex. If those call {@link #find} there's* no need to re-calculate that hash.*- * @param key- * @param baseHashIndex* @return the index of the given key, or 0 as 'Ground' if the key wasn't* found.*/diff --git a/lucene/facet/src/test/org/apache/lucene/facet/index/CategoryContainerTest.java b/lucene/facet/src/test/org/apache/lucene/facet/index/CategoryContainerTest.javaindex dfced81bb33..ec8a5de5a2d 100644--- a/lucene/facet/src/test/org/apache/lucene/facet/index/CategoryContainerTest.java+++ b/lucene/facet/src/test/org/apache/lucene/facet/index/CategoryContainerTest.java@@ -133,8 +133,6 @@ public class CategoryContainerTest extends CategoryContainerTestBase {/*** Test addition of {@link CategoryAttribute} object without properties to a* {@link CategoryContainer}.- *- * @throws FacetException*/@Testpublic void testAddCategoryAttributeWithoutProperties()@@ -147,8 +145,6 @@ public class CategoryContainerTest extends CategoryContainerTestBase {/*** Test addition of {@link CategoryAttribute} object with property to a* {@link CategoryContainer}.- *- * @throws FacetException*/@Testpublic void testAddCategoryAttributeWithProperty() throws FacetException {@@ -174,8 +170,6 @@ public class CategoryContainerTest extends CategoryContainerTestBase {/*** Verifies that a {@link CategoryAttributesStream} can be constructed from* {@link CategoryContainer} and produce the correct number of tokens.- *- * @throws IOException*/@Testpublic void testCategoryAttributesStream() throws IOException {@@ -190,8 +184,6 @@ public class CategoryContainerTest extends CategoryContainerTestBase {/*** Test that {@link CategoryContainer} merges properties.- *- * @throws FacetException*/@Testpublic void testCategoryAttributeMerge() throws FacetException {diff --git a/lucene/facet/src/test/org/apache/lucene/facet/index/streaming/CategoryAttributesStreamTest.java b/lucene/facet/src/test/org/apache/lucene/facet/index/streaming/CategoryAttributesStreamTest.javaindex bfdc631bebd..b74a8be01d0 100644--- a/lucene/facet/src/test/org/apache/lucene/facet/index/streaming/CategoryAttributesStreamTest.java+++ b/lucene/facet/src/test/org/apache/lucene/facet/index/streaming/CategoryAttributesStreamTest.java@@ -35,8 +35,6 @@ public class CategoryAttributesStreamTest extends CategoryContainerTestBase {/*** Verifies that a {@link CategoryAttributesStream} accepts* {@link CategoryAttribute} and passes them on as tokens.- *- * @throws IOException*/@Testpublic void testStream() throws IOException {diff --git a/lucene/facet/src/test/org/apache/lucene/facet/index/streaming/CategoryParentsStreamTest.java b/lucene/facet/src/test/org/apache/lucene/facet/index/streaming/CategoryParentsStreamTest.javaindex cc3aff4042c..acbfa5d05fc 100644--- a/lucene/facet/src/test/org/apache/lucene/facet/index/streaming/CategoryParentsStreamTest.java+++ b/lucene/facet/src/test/org/apache/lucene/facet/index/streaming/CategoryParentsStreamTest.java@@ -41,8 +41,6 @@ public class CategoryParentsStreamTest extends CategoryContainerTestBase {* Verifies that a {@link CategoryParentsStream} can be constructed from* {@link CategoryAttributesStream} and produces the correct number of* tokens with default facet indexing params.- *- * @throws IOException*/@Testpublic void testStreamDefaultParams() throws IOException {@@ -68,8 +66,6 @@ public class CategoryParentsStreamTest extends CategoryContainerTestBase {* Verifies that a {@link CategoryParentsStream} can be constructed from* {@link CategoryAttributesStream} and produces the correct number of* tokens with non top level facet indexing params.- *- * @throws IOException*/@Testpublic void testStreamNonTopLevelParams() throws IOException {@@ -108,9 +104,6 @@ public class CategoryParentsStreamTest extends CategoryContainerTestBase {/*** Verifies the correctness when no attributes in parents are retained in* {@link CategoryParentsStream}.- *- * @throws IOException- * @throws FacetException*/@Testpublic void testNoRetainableAttributes() throws IOException {@@ -142,9 +135,6 @@ public class CategoryParentsStreamTest extends CategoryContainerTestBase {/*** Verifies the correctness when attributes in parents are retained in* {@link CategoryParentsStream}.- *- * @throws IOException- * @throws FacetException*/@Testpublic void testRetainableAttributes() throws IOException {diff --git a/lucene/facet/src/test/org/apache/lucene/facet/index/streaming/CategoryTokenizerTest.java b/lucene/facet/src/test/org/apache/lucene/facet/index/streaming/CategoryTokenizerTest.javaindex 14e46bcb6b0..977eeb0f49f 100644--- a/lucene/facet/src/test/org/apache/lucene/facet/index/streaming/CategoryTokenizerTest.java+++ b/lucene/facet/src/test/org/apache/lucene/facet/index/streaming/CategoryTokenizerTest.java@@ -41,8 +41,6 @@ public class CategoryTokenizerTest extends CategoryContainerTestBase {/*** Verifies that a {@link CategoryTokenizer} adds the correct* {@link CharTermAttribute}s to a {@link CategoryAttributesStream}.- *- * @throws IOException*/@Testpublic void testTokensDefaultParams() throws IOException {@@ -80,8 +78,6 @@ public class CategoryTokenizerTest extends CategoryContainerTestBase {/*** Verifies that {@link CategoryTokenizer} elongates the buffer in* {@link CharTermAttribute} for long categories.- *- * @throws IOException*/@Testpublic void testLongCategoryPath() throws IOException {diff --git a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyCombined.java b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyCombined.javaindex d22140206c1..20dd77b59ee 100644--- a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyCombined.java+++ b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/TestTaxonomyCombined.java@@ -215,8 +215,6 @@ public class TestTaxonomyCombined extends LuceneTestCase {* testWriterTwice3 is yet another test which tests creating a taxonomy* in two separate writing sessions. This test used to fail because of* a bug involving commit(), explained below, and now should succeed.- *- * @throws Exception*/@Testpublic void testWriterTwice3() throws Exception {diff --git a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyReader.java b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyReader.javaindex bb405b14dd5..490fb5754c1 100644--- a/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyReader.java+++ b/lucene/facet/src/test/org/apache/lucene/facet/taxonomy/directory/TestDirectoryTaxonomyReader.java@@ -69,7 +69,6 @@ public class TestDirectoryTaxonomyReader extends LuceneTestCase {/*** Test the boolean returned by TR.refresh- * @throws Exception*/@Testpublic void testReaderRefreshResult() throws Exception {diff --git a/lucene/facet/src/test/org/apache/lucene/util/encoding/EncodingSpeed.java b/lucene/facet/src/test/org/apache/lucene/util/encoding/EncodingSpeed.javaindex bb7ca21f31d..96dcea5a5ba 100644--- a/lucene/facet/src/test/org/apache/lucene/util/encoding/EncodingSpeed.java+++ b/lucene/facet/src/test/org/apache/lucene/util/encoding/EncodingSpeed.java@@ -46,10 +46,6 @@ public class EncodingSpeed {private static NumberFormat nf;- /**- * @param args- * @throws IOException- */public static void main(String[] args) throws IOException {testFacetIDs(data3630, 3630);testFacetIDs(data9910, 9910);diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.javaindex 6e7522463a6..72f05145460 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/Highlighter.java@@ -174,11 +174,7 @@ public class Highlighter* Low level api to get the most relevant (formatted) sections of the document.* This method has been made public to allow visibility of score information held in TextFragment objects.* Thanks to Jason Calabrese for help in redefining the interface.- * @param tokenStream- * @param text- * @param maxNumFragments- * @param mergeContiguousFragments- * @throws IOException+ * @throws IOException If there is a low-level I/O error* @throws InvalidTokenOffsetsException thrown if any token's endOffset exceeds the provided text's length*/public final TextFragment[] getBestTextFragments(@@ -492,9 +488,6 @@ public class Highlighterreturn textFragmenter;}- /**- * @param fragmenter- */public void setTextFragmenter(Fragmenter fragmenter){textFragmenter = fragmenter;@@ -509,9 +502,6 @@ public class Highlighter}- /**- * @param scorer- */public void setFragmentScorer(Scorer scorer){fragmentScorer = scorer;diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/QueryScorer.java b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/QueryScorer.javaindex 1c51fee354c..c2e6a107fb4 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/QueryScorer.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/QueryScorer.java@@ -84,7 +84,6 @@ public class QueryScorer implements Scorer {* @param query to use for highlighting* @param reader {@link IndexReader} to use for quasi tf/idf scoring* @param field to highlight - pass null to ignore fields- * @param defaultField*/public QueryScorer(Query query, IndexReader reader, String field, String defaultField) {this.defaultField = defaultField;@@ -263,8 +262,6 @@ public class QueryScorer implements Scorer {* ensure an efficient reset - if you are already using a different caching* {@link TokenStream} impl and you don't want it to be wrapped, set this to* false.- *- * @param wrap*/public void setWrapIfNotCachingTokenFilter(boolean wrap) {this.wrapToCaching = wrap;diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/Scorer.java b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/Scorer.javaindex fa406883f44..19fa1808242 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/Scorer.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/Scorer.java@@ -35,7 +35,7 @@ public interface Scorer {* @return either a {@link TokenStream} that the Highlighter should continue using (eg* if you read the tokenSream in this method) or null to continue* using the same {@link TokenStream} that was passed in.- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public TokenStream init(TokenStream tokenStream) throws IOException;diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/TextFragment.java b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/TextFragment.javaindex dd56f21c8a7..1005afa0344 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/TextFragment.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/TextFragment.java@@ -55,7 +55,6 @@ public class TextFragmentscore=Math.max(score,frag2.score);}/**- * @param fragment* @return true if this fragment follows the one passed*/public boolean follows(TextFragment fragment)diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.javaindex b0830be57d8..add22bcbc13 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/TokenSources.java@@ -93,12 +93,8 @@ public class TokenSources {* minimal (1000 invocations still registers 0 ms). So this "lazy" (flexible?)* approach to coding is probably acceptable*- * @param reader- * @param docId- * @param field- * @param analyzer* @return null if field not stored correctly- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public static TokenStream getAnyTokenStream(IndexReader reader, int docId,String field, Analyzer analyzer) throws IOException {@@ -150,7 +146,6 @@ public class TokenSources {* compression (less disk IO) or slower (more CPU burn) depending on the* content.*- * @param tpv* @param tokenPositionsGuaranteedContiguous true if the token position* numbers have no overlaps or gaps. If looking to eek out the last* drops of performance, set to true. If in doubt, set to false.diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/WeightedSpanTerm.java b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/WeightedSpanTerm.javaindex 15c4c012191..ff395468383 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/WeightedSpanTerm.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/WeightedSpanTerm.java@@ -30,20 +30,11 @@ public class WeightedSpanTerm extends WeightedTerm{boolean positionSensitive;private List<PositionSpan> positionSpans = new ArrayList<PositionSpan>();- /**- * @param weight- * @param term- */public WeightedSpanTerm(float weight, String term) {super(weight, term);this.positionSpans = new ArrayList<PositionSpan>();}- /**- * @param weight- * @param term- * @param positionSensitive- */public WeightedSpanTerm(float weight, String term, boolean positionSensitive) {super(weight, term);this.positionSensitive = positionSensitive;diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/WeightedSpanTermExtractor.java b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/WeightedSpanTermExtractor.javaindex 61efe7544d5..4b45302bc27 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/highlight/WeightedSpanTermExtractor.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/highlight/WeightedSpanTermExtractor.java@@ -88,7 +88,7 @@ public class WeightedSpanTermExtractor {* Query to extract Terms from* @param terms* Map to place created WeightedSpanTerms in- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/protected void extract(Query query, Map<String,WeightedSpanTerm> terms) throws IOException {if (query instanceof BooleanQuery) {@@ -221,7 +221,7 @@ public class WeightedSpanTermExtractor {* Map to place created WeightedSpanTerms in* @param spanQuery* SpanQuery to extract Terms from- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/protected void extractWeightedSpanTerms(Map<String,WeightedSpanTerm> terms, SpanQuery spanQuery) throws IOException {Set<String> fieldNames;@@ -309,7 +309,7 @@ public class WeightedSpanTermExtractor {* Map to place created WeightedSpanTerms in* @param query* Query to extract Terms from- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/protected void extractWeightedTerms(Map<String,WeightedSpanTerm> terms, Query query) throws IOException {Set<Term> nonWeightedTerms = new HashSet<Term>();@@ -362,7 +362,7 @@ public class WeightedSpanTermExtractor {* @param tokenStream* of text to be highlighted* @return Map containing WeightedSpanTerms- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public Map<String,WeightedSpanTerm> getWeightedSpanTerms(Query query, TokenStream tokenStream)throws IOException {@@ -381,7 +381,7 @@ public class WeightedSpanTermExtractor {* @param fieldName* restricts Term's used based on field name* @return Map containing WeightedSpanTerms- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public Map<String,WeightedSpanTerm> getWeightedSpanTerms(Query query, TokenStream tokenStream,String fieldName) throws IOException {@@ -417,7 +417,7 @@ public class WeightedSpanTermExtractor {* @param reader* to use for scoring* @return Map of WeightedSpanTerms with quasi tf/idf scores- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public Map<String,WeightedSpanTerm> getWeightedSpanTermsWithScores(Query query, TokenStream tokenStream, String fieldName,IndexReader reader) throws IOException {@@ -551,8 +551,6 @@ public class WeightedSpanTermExtractor {* ensure an efficient reset - if you are already using a different caching* {@link TokenStream} impl and you don't want it to be wrapped, set this to* false.- *- * @param wrap*/public void setWrapIfNotCachingTokenFilter(boolean wrap) {this.wrapToCaching = wrap;diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FastVectorHighlighter.java b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FastVectorHighlighter.javaindex 5b20539ad2e..80fd58fd9dd 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FastVectorHighlighter.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FastVectorHighlighter.java@@ -106,7 +106,7 @@ public class FastVectorHighlighter {* @param fieldName field of the document to be highlighted* @param fragCharSize the length (number of chars) of a fragment* @return the best fragment (snippet) string- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public final String getBestFragment( final FieldQuery fieldQuery, IndexReader reader, int docId,String fieldName, int fragCharSize ) throws IOException {@@ -126,7 +126,7 @@ public class FastVectorHighlighter {* @param maxNumFragments maximum number of fragments* @return created fragments or null when no fragments created.* size of the array can be less than maxNumFragments- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public final String[] getBestFragments( final FieldQuery fieldQuery, IndexReader reader, int docId,String fieldName, int fragCharSize, int maxNumFragments ) throws IOException {@@ -149,7 +149,7 @@ public class FastVectorHighlighter {* @param postTags post-tags to be used to highlight terms* @param encoder an encoder that generates encoded text* @return the best fragment (snippet) string- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public final String getBestFragment( final FieldQuery fieldQuery, IndexReader reader, int docId,String fieldName, int fragCharSize,@@ -175,7 +175,7 @@ public class FastVectorHighlighter {* @param encoder an encoder that generates encoded text* @return created fragments or null when no fragments created.* size of the array can be less than maxNumFragments- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public final String[] getBestFragments( final FieldQuery fieldQuery, IndexReader reader, int docId,String fieldName, int fragCharSize, int maxNumFragments,diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FieldQuery.java b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FieldQuery.javaindex 79f0a9e2c9d..50ad2477ccb 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FieldQuery.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FieldQuery.java@@ -292,8 +292,6 @@ public class FieldQuery {/***- * @param fieldName- * @param term* @return QueryPhraseMap*/public QueryPhraseMap getFieldTermMap( String fieldName, String term ){@@ -303,8 +301,6 @@ public class FieldQuery {/***- * @param fieldName- * @param phraseCandidate* @return QueryPhraseMap*/public QueryPhraseMap searchPhrase( String fieldName, final List<TermInfo> phraseCandidate ){diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FieldTermStack.java b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FieldTermStack.javaindex 456b2e3861d..1375cfdac47 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FieldTermStack.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FieldTermStack.java@@ -70,7 +70,7 @@ public class FieldTermStack {* @param docId document id to be highlighted* @param fieldName field of the document to be highlighted* @param fieldQuery FieldQuery object- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public FieldTermStack( IndexReader reader, int docId, String fieldName, final FieldQuery fieldQuery ) throws IOException {this.fieldName = fieldName;diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FragmentsBuilder.java b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FragmentsBuilder.javaindex 8bb5a89540a..a0c84e8afaa 100644--- a/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FragmentsBuilder.java+++ b/lucene/highlighter/src/java/org/apache/lucene/search/vectorhighlight/FragmentsBuilder.java@@ -37,7 +37,7 @@ public interface FragmentsBuilder {* @param fieldName field of the document to be highlighted* @param fieldFragList FieldFragList object* @return a created fragment or null when no fragment created- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public String createFragment( IndexReader reader, int docId, String fieldName,FieldFragList fieldFragList ) throws IOException;@@ -52,7 +52,7 @@ public interface FragmentsBuilder {* @param maxNumFragments maximum number of fragments* @return created fragments or null when no fragments created.* size of the array can be less than maxNumFragments- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public String[] createFragments( IndexReader reader, int docId, String fieldName,FieldFragList fieldFragList, int maxNumFragments ) throws IOException;@@ -68,7 +68,7 @@ public interface FragmentsBuilder {* @param postTags post-tags to be used to highlight terms* @param encoder an encoder that generates encoded text* @return a created fragment or null when no fragment created- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public String createFragment( IndexReader reader, int docId, String fieldName,FieldFragList fieldFragList, String[] preTags, String[] postTags,@@ -87,7 +87,7 @@ public interface FragmentsBuilder {* @param encoder an encoder that generates encoded text* @return created fragments or null when no fragments created.* size of the array can be less than maxNumFragments- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public String[] createFragments( IndexReader reader, int docId, String fieldName,FieldFragList fieldFragList, int maxNumFragments, String[] preTags, String[] postTags,diff --git a/lucene/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java b/lucene/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.javaindex 3677573a92a..7ce0731e1ef 100644--- a/lucene/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java+++ b/lucene/highlighter/src/test/org/apache/lucene/search/highlight/HighlighterTest.java@@ -153,7 +153,6 @@ public class HighlighterTest extends BaseTokenStreamTestCase implements Formatte/*** This method intended for use with <tt>testHighlightingWithDefaultField()</tt>- * @throws InvalidTokenOffsetsException*/private String highlightField(Query query, String fieldName, String text)throws IOException, InvalidTokenOffsetsException {@@ -1335,8 +1334,6 @@ public class HighlighterTest extends BaseTokenStreamTestCase implements Formatte/*** Demonstrates creation of an XHTML compliant doc using new encoding facilities.- *- * @throws Exception*/public void testEncoding() throws Exception {diff --git a/lucene/highlighter/src/test/org/apache/lucene/search/highlight/custom/HighlightCustomQueryTest.java b/lucene/highlighter/src/test/org/apache/lucene/search/highlight/custom/HighlightCustomQueryTest.javaindex 98ec317c8a1..233bf15fc4e 100644--- a/lucene/highlighter/src/test/org/apache/lucene/search/highlight/custom/HighlightCustomQueryTest.java+++ b/lucene/highlighter/src/test/org/apache/lucene/search/highlight/custom/HighlightCustomQueryTest.java@@ -85,8 +85,6 @@ public class HighlightCustomQueryTest extends LuceneTestCase {/*** This method intended for use with* <tt>testHighlightingWithDefaultField()</tt>- *- * @throws InvalidTokenOffsetsException*/private String highlightField(Query query, String fieldName,String text) throws IOException, InvalidTokenOffsetsException {diff --git a/lucene/misc/src/java/org/apache/lucene/index/IndexSplitter.java b/lucene/misc/src/java/org/apache/lucene/index/IndexSplitter.javaindex 0f0977c3e88..fbfdaa31bc3 100644--- a/lucene/misc/src/java/org/apache/lucene/index/IndexSplitter.java+++ b/lucene/misc/src/java/org/apache/lucene/index/IndexSplitter.java@@ -55,9 +55,6 @@ public class IndexSplitter {File dir;- /**- * @param args- */public static void main(String[] args) throws Exception {if (args.length < 2) {System.errdiff --git a/lucene/misc/src/java/org/apache/lucene/index/MultiPassIndexSplitter.java b/lucene/misc/src/java/org/apache/lucene/index/MultiPassIndexSplitter.javaindex ce6e415a032..73370241696 100644--- a/lucene/misc/src/java/org/apache/lucene/index/MultiPassIndexSplitter.java+++ b/lucene/misc/src/java/org/apache/lucene/index/MultiPassIndexSplitter.java@@ -55,7 +55,7 @@ public class MultiPassIndexSplitter {* @param seq if true, then the source index will be split into equal* increasing ranges of document id-s. If false, source document id-s will be* assigned in a deterministic round-robin fashion to one of the output splits.- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public void split(Version version, IndexReader in, Directory[] outputs, boolean seq) throws IOException {if (outputs == null || outputs.length < 2) {diff --git a/lucene/misc/src/java/org/apache/lucene/misc/HighFreqTerms.java b/lucene/misc/src/java/org/apache/lucene/misc/HighFreqTerms.javaindex 9f4d68b9bdf..c0118a14611 100644--- a/lucene/misc/src/java/org/apache/lucene/misc/HighFreqTerms.java+++ b/lucene/misc/src/java/org/apache/lucene/misc/HighFreqTerms.java@@ -106,12 +106,7 @@ public class HighFreqTerms {+ "java org.apache.lucene.misc.HighFreqTerms <index dir> [-t] [number_terms] [field]\n\t -t: include totalTermFreq\n\n");}/**- *- * @param reader- * @param numTerms- * @param field- * @return TermStats[] ordered by terms with highest docFreq first.- * @throws Exception+ * Returns TermStats[] ordered by terms with highest docFreq first.*/public static TermStats[] getHighFreqTerms(IndexReader reader, int numTerms, String field) throws Exception {TermStatsQueue tiq = null;@@ -157,11 +152,9 @@ public class HighFreqTerms {* containing the term and stores the total in the output array of TermStats.* Output array is sorted by highest total tf.*- * @param reader* @param terms* TermStats[]* @return TermStats[]- * @throws Exception*/public static TermStats[] sortByTotalTermFreq(IndexReader reader, TermStats[] terms) throws Exception {diff --git a/lucene/misc/src/java/org/apache/lucene/store/NativeUnixDirectory.java b/lucene/misc/src/java/org/apache/lucene/store/NativeUnixDirectory.javaindex 3b8ea425106..f990faea912 100644--- a/lucene/misc/src/java/org/apache/lucene/store/NativeUnixDirectory.java+++ b/lucene/misc/src/java/org/apache/lucene/store/NativeUnixDirectory.java@@ -97,7 +97,7 @@ public class NativeUnixDirectory extends FSDirectory {* not use direct IO. See {@link* #DEFAULT_MIN_BYTES_DIRECT}* @param delegate fallback Directory for non-merges- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public NativeUnixDirectory(File path, int mergeBufferSize, long minBytesDirect, Directory delegate) throws IOException {super(path, delegate.getLockFactory());@@ -113,7 +113,7 @@ public class NativeUnixDirectory extends FSDirectory {** @param path the path of the directory* @param delegate fallback Directory for non-merges- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public NativeUnixDirectory(File path, Directory delegate) throws IOException {this(path, DEFAULT_MERGE_BUFFER_SIZE, DEFAULT_MIN_BYTES_DIRECT, delegate);diff --git a/lucene/misc/src/java/org/apache/lucene/store/WindowsDirectory.java b/lucene/misc/src/java/org/apache/lucene/store/WindowsDirectory.javaindex 3ad31f598aa..f635fe37ccd 100644--- a/lucene/misc/src/java/org/apache/lucene/store/WindowsDirectory.java+++ b/lucene/misc/src/java/org/apache/lucene/store/WindowsDirectory.java@@ -54,7 +54,7 @@ public class WindowsDirectory extends FSDirectory {* @param path the path of the directory* @param lockFactory the lock factory to use, or null for the default* ({@link NativeFSLockFactory});- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public WindowsDirectory(File path, LockFactory lockFactory) throws IOException {super(path, lockFactory);@@ -63,7 +63,7 @@ public class WindowsDirectory extends FSDirectory {/** Create a new WindowsDirectory for the named location and {@link NativeFSLockFactory}.** @param path the path of the directory- * @throws IOException+ * @throws IOException If there is a low-level I/O error*/public WindowsDirectory(File path) throws IOException {super(path, null);diff --git a/lucene/queries/src/java/org/apache/lucene/queries/TermsFilter.java b/lucene/queries/src/java/org/apache/lucene/queries/TermsFilter.javaindex e0b35d9eafa..a3023fa5adf 100644--- a/lucene/queries/src/java/org/apache/lucene/queries/TermsFilter.java+++ b/lucene/queries/src/java/org/apache/lucene/queries/TermsFilter.java@@ -42,8 +42,6 @@ public class TermsFilter extends Filter {/*** Adds a term to the list of acceptable terms- *- * @param term*/public void addTerm(Term term) {terms.add(term);diff --git a/lucene/queries/src/java/org/apache/lucene/queries/mlt/MoreLikeThis.java b/lucene/queries/src/java/org/apache/lucene/queries/mlt/MoreLikeThis.javaindex 62b96a9dfc8..13636030123 100644--- a/lucene/queries/src/java/org/apache/lucene/queries/mlt/MoreLikeThis.java+++ b/lucene/queries/src/java/org/apache/lucene/queries/mlt/MoreLikeThis.java@@ -292,6 +292,7 @@ public final class MoreLikeThis {* Returns the boost factor used when boosting terms** @return the boost factor used when boosting terms+ * @see #setBoostFactor(float)*/public float getBoostFactor() {return boostFactor;@@ -300,7 +301,7 @@ public final class MoreLikeThis {/*** Sets the boost factor to use when boosting terms*- * @param boostFactor+ * @see #getBoostFactor()*/public void setBoostFactor(float boostFactor) {this.boostFactor = boostFactor;diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/analyzing/AnalyzingQueryParser.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/analyzing/AnalyzingQueryParser.javaindex 67357d3b66b..92154ff11b8 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/analyzing/AnalyzingQueryParser.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/analyzing/AnalyzingQueryParser.java@@ -72,7 +72,6 @@ public class AnalyzingQueryParser extends org.apache.lucene.queryparser.classic.* characters (? or *), but is not simple prefix term** @return Resulting {@link Query} built for the term- * @throws ParseException*/@Overrideprotected Query getWildcardQuery(String field, String termStr) throws ParseException {@@ -190,7 +189,6 @@ public class AnalyzingQueryParser extends org.apache.lucene.queryparser.classic.* (<b>without</b> trailing '*' character!)** @return Resulting {@link Query} built for the term- * @throws ParseException*/@Overrideprotected Query getPrefixQuery(String field, String termStr) throws ParseException {@@ -243,7 +241,6 @@ public class AnalyzingQueryParser extends org.apache.lucene.queryparser.classic.* @param termStr Term token to use for building term for the query** @return Resulting {@link Query} built for the term- * @exception ParseException*/@Overrideprotected Query getFuzzyQuery(String field, String termStr, float minSimilarity)diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/QueryParserBase.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/QueryParserBase.javaindex 79807cfa68b..1575ed34244 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/QueryParserBase.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/classic/QueryParserBase.java@@ -662,10 +662,6 @@ public abstract class QueryParserBase implements CommonQueryParserConfigurationreturn query;}- /**- *- * @exception org.apache.lucene.queryparser.classic.ParseException- */protected Query getRangeQuery(String field,String part1,String part2,diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/builders/QueryBuilder.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/builders/QueryBuilder.javaindex cc3bbe7cd87..cd4573aec76 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/builders/QueryBuilder.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/builders/QueryBuilder.java@@ -36,8 +36,6 @@ public interface QueryBuilder {* the query tree root node** @return some object generated from the query tree- *- * @throws QueryNodeException*/Object build(QueryNode queryNode) throws QueryNodeException;diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/AbstractQueryConfig.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/AbstractQueryConfig.javaindex 4c8869c92f6..0276e3332c4 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/AbstractQueryConfig.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/config/AbstractQueryConfig.java@@ -81,7 +81,7 @@ public abstract class AbstractQueryConfig {** @param <T> the value's type* @param key the key, cannot be <code>null</code>- * @param value+ * @param value value to set*/public <T> void set(ConfigurationKey<T> key, T value) {diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/GroupQueryNode.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/GroupQueryNode.javaindex dfb818fef12..4330b0a0e88 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/GroupQueryNode.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/GroupQueryNode.java@@ -71,9 +71,6 @@ public class GroupQueryNode extends QueryNodeImpl {return clone;}- /**- * @param child- */public void setChild(QueryNode child) {List<QueryNode> list = new ArrayList<QueryNode>();list.add(child);diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ModifierQueryNode.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ModifierQueryNode.javaindex 8c43a2066c7..8f7f221252f 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ModifierQueryNode.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/ModifierQueryNode.java@@ -149,9 +149,6 @@ public class ModifierQueryNode extends QueryNodeImpl {return clone;}- /**- * @param child- */public void setChild(QueryNode child) {List<QueryNode> list = new ArrayList<QueryNode>();list.add(child);diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QueryNode.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QueryNode.javaindex b7aefb249a5..6cdd0ba8bb6 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QueryNode.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/nodes/QueryNode.java@@ -46,8 +46,7 @@ public interface QueryNode {public boolean containsTag(String tagName);/**- * @param tagName- * @return of stored on under that tag name+ * Returns object stored under that tag name*/public Object getTag(String tagName);@@ -58,7 +57,6 @@ public interface QueryNode {* when you call the cloneTree() method** @return the cloned tree- * @throws CloneNotSupportedException*/public QueryNode cloneTree() throws CloneNotSupportedException;@@ -77,16 +75,11 @@ public interface QueryNode {* Associate the specified value with the specified tagName. If the tagName* already exists, the old value is replaced. The tagName and value cannot be* null. tagName will be converted to lowercase.- *- * @param tagName- * @param value*/public void setTag(String tagName, Object value);/*** Unset a tag. tagName will be converted to lowercase.- *- * @param tagName*/public void unsetTag(String tagName);diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/QueryNodeProcessor.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/QueryNodeProcessor.javaindex b192ecd367a..2e8d7daaef4 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/QueryNodeProcessor.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/processors/QueryNodeProcessor.java@@ -55,15 +55,11 @@ public interface QueryNodeProcessor {* tree root node** @return the processed query tree- *- * @throws QueryNodeException*/public QueryNode process(QueryNode queryTree) throws QueryNodeException;/*** Sets the {@link QueryConfigHandler} associated to the query tree.- *- * @param queryConfigHandler*/public void setQueryConfigHandler(QueryConfigHandler queryConfigHandler);diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/UnescapedCharSequence.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/UnescapedCharSequence.javaindex 2527fbc95a2..b0256f89270 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/UnescapedCharSequence.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/core/util/UnescapedCharSequence.java@@ -29,11 +29,6 @@ public final class UnescapedCharSequence implements CharSequence {/*** Create a escaped CharSequence- *- * @param chars- * @param wasEscaped- * @param offset- * @param length*/public UnescapedCharSequence(char[] chars, boolean[] wasEscaped, int offset,int length) {@@ -45,8 +40,6 @@ public final class UnescapedCharSequence implements CharSequence {/*** Create a non-escaped CharSequence- *- * @param text*/public UnescapedCharSequence(CharSequence text) {this.chars = new char[text.length()];@@ -59,8 +52,6 @@ public final class UnescapedCharSequence implements CharSequence {/*** Create a copy of an existent UnescapedCharSequence- *- * @param text*/@SuppressWarnings("unused")private UnescapedCharSequence(UnescapedCharSequence text) {diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/messages/NLS.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/messages/NLS.javaindex ba866d22086..19afdbb4418 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/messages/NLS.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/messages/NLS.java@@ -122,9 +122,6 @@ public class NLS {return null;}- /**- * @param clazz- */private static void load(Class<? extends NLS> clazz) {final Field[] fieldArray = clazz.getDeclaredFields();@@ -139,10 +136,6 @@ public class NLS {}}- /**- * @param field- * @param isFieldAccessible- */private static void loadfieldValue(Field field, boolean isFieldAccessible,Class<? extends NLS> clazz) {int MOD_EXPECTED = Modifier.PUBLIC | Modifier.STATIC;diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/StandardBooleanQueryNode.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/StandardBooleanQueryNode.javaindex 07808bf3c69..2d65360ebe9 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/StandardBooleanQueryNode.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/flexible/standard/nodes/StandardBooleanQueryNode.java@@ -36,9 +36,6 @@ public class StandardBooleanQueryNode extends BooleanQueryNode {private boolean disableCoord;- /**- * @param clauses- */public StandardBooleanQueryNode(List<QueryNode> clauses, boolean disableCoord) {super(clauses);diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/query/RewriteQuery.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/query/RewriteQuery.javaindex 1275b7869bd..ef43d02a4a5 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/query/RewriteQuery.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/surround/query/RewriteQuery.java@@ -72,7 +72,9 @@ abstract class RewriteQuery<SQ extends SrndQuery> extends Query {&& srndQuery.equals(other.srndQuery);}- /** @throws UnsupportedOperationException */+ /**+ * Not supported by this query.+ * @throws UnsupportedOperationException always: clone is not supported. */@Overridepublic RewriteQuery clone() {throw new UnsupportedOperationException();diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/CoreParser.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/CoreParser.javaindex c1929f9ebe9..d7238e2694b 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/CoreParser.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/CoreParser.java@@ -45,7 +45,6 @@ public class CoreParser implements QueryBuilder {* Construct an XML parser that uses a single instance QueryParser for handling* UserQuery tags - all parse operations are synchronised on this parser*- * @param analyzer* @param parser A QueryParser which will be synchronized on during parse calls.*/public CoreParser(Analyzer analyzer, QueryParser parser) {@@ -56,7 +55,6 @@ public class CoreParser implements QueryBuilder {* Constructs an XML parser that creates a QueryParser for each UserQuery request.** @param defaultField The default field name used by QueryParsers constructed for UserQuery tags- * @param analyzer*/public CoreParser(String defaultField, Analyzer analyzer) {this(defaultField, analyzer, null);diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/CorePlusExtensionsParser.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/CorePlusExtensionsParser.javaindex cc90d3ced3b..8d69d62a738 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/CorePlusExtensionsParser.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/CorePlusExtensionsParser.java@@ -32,7 +32,6 @@ public class CorePlusExtensionsParser extends CoreParser {* Construct an XML parser that uses a single instance QueryParser for handling* UserQuery tags - all parse operations are synchronized on this parser*- * @param analyzer* @param parser A QueryParser which will be synchronized on during parse calls.*/public CorePlusExtensionsParser(Analyzer analyzer, QueryParser parser) {@@ -43,7 +42,6 @@ public class CorePlusExtensionsParser extends CoreParser {* Constructs an XML parser that creates a QueryParser for each UserQuery request.** @param defaultField The default field name used by QueryParsers constructed for UserQuery tags- * @param analyzer*/public CorePlusExtensionsParser(String defaultField, Analyzer analyzer) {this(defaultField, analyzer, null);diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/DOMUtils.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/DOMUtils.javaindex 27e268302e9..9e895b66572 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/DOMUtils.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/DOMUtils.java@@ -89,8 +89,6 @@ public class DOMUtils {/*** Returns an attribute value from this node, or first parent node with this attribute defined*- * @param element- * @param attributeName* @return A non-zero-length value if defined, otherwise null*/public static String getAttributeWithInheritance(Element element, String attributeName) {diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/ParserException.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/ParserException.javaindex d902bdad0b2..96b261f6923 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/ParserException.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/ParserException.java@@ -25,31 +25,18 @@ package org.apache.lucene.queryparser.xml;*/public class ParserException extends Exception {- /**- *- */public ParserException() {super();}- /**- * @param message- */public ParserException(String message) {super(message);}- /**- * @param message- * @param cause- */public ParserException(String message, Throwable cause) {super(message, cause);}- /**- * @param cause- */public ParserException(Throwable cause) {super(cause);}diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/NumericRangeFilterBuilder.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/NumericRangeFilterBuilder.javaindex da00a3ee6cb..4d4540a061a 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/NumericRangeFilterBuilder.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/NumericRangeFilterBuilder.java@@ -107,8 +107,6 @@ public class NumericRangeFilterBuilder implements FilterBuilder {* any documents.* <p/>* Defaults to false.- *- * @param strictMode*/public void setStrictMode(boolean strictMode) {this.strictMode = strictMode;diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanNotBuilder.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanNotBuilder.javaindex e9df3f36f60..6006fa66295 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanNotBuilder.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanNotBuilder.java@@ -29,9 +29,6 @@ public class SpanNotBuilder extends SpanBuilderBase {private final SpanQueryBuilder factory;- /**- * @param factory- */public SpanNotBuilder(SpanQueryBuilder factory) {this.factory = factory;}diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanOrTermsBuilder.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanOrTermsBuilder.javaindex 80fa3e71b54..1c9dc60efeb 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanOrTermsBuilder.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/SpanOrTermsBuilder.java@@ -40,9 +40,6 @@ public class SpanOrTermsBuilder extends SpanBuilderBase {private final Analyzer analyzer;- /**- * @param analyzer- */public SpanOrTermsBuilder(Analyzer analyzer) {this.analyzer = analyzer;}diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/TermsFilterBuilder.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/TermsFilterBuilder.javaindex 3e1574a73a5..b3b0f8473d2 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/TermsFilterBuilder.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/TermsFilterBuilder.java@@ -39,9 +39,6 @@ public class TermsFilterBuilder implements FilterBuilder {private final Analyzer analyzer;- /**- * @param analyzer- */public TermsFilterBuilder(Analyzer analyzer) {this.analyzer = analyzer;}diff --git a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/UserInputQueryBuilder.java b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/UserInputQueryBuilder.javaindex cf75a4e1ffd..1020e4b6d34 100644--- a/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/UserInputQueryBuilder.java+++ b/lucene/queryparser/src/java/org/apache/lucene/queryparser/xml/builders/UserInputQueryBuilder.java@@ -82,8 +82,6 @@ public class UserInputQueryBuilder implements QueryBuilder {/*** Method to create a QueryParser - designed to be overridden*- * @param fieldName- * @param analyzer* @return QueryParser*/protected QueryParser createQueryParser(String fieldName, Analyzer analyzer) {diff --git a/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/FuzzyLikeThisQuery.java b/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/FuzzyLikeThisQuery.javaindex 07e9d48586f..f3db434bc04 100644--- a/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/FuzzyLikeThisQuery.java+++ b/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/FuzzyLikeThisQuery.java@@ -110,7 +110,6 @@ public class FuzzyLikeThisQuery extends Query/**** @param maxNumTerms The total number of terms clauses that will appear once rewritten as a BooleanQuery- * @param analyzer*/public FuzzyLikeThisQuery(int maxNumTerms, Analyzer analyzer){@@ -180,7 +179,6 @@ public class FuzzyLikeThisQuery extends Query/*** Adds user input for "fuzzification"* @param queryString The string which will be parsed by the analyzer and for which fuzzy variants will be parsed- * @param fieldName* @param minSimilarity The minimum similarity of the term variants (see FuzzyTermsEnum)* @param prefixLength Length of required common prefix on variant terms (see FuzzyTermsEnum)*/diff --git a/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/SlowCollatedTermRangeQuery.java b/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/SlowCollatedTermRangeQuery.javaindex 229267d6581..407d38065f1 100644--- a/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/SlowCollatedTermRangeQuery.java+++ b/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/SlowCollatedTermRangeQuery.java@@ -110,7 +110,7 @@ public class SlowCollatedTermRangeQuery extends MultiTermQuery {lowerTerm, upperTerm, includeLower, includeUpper, collator);}- /** @deprecated */+ /** @deprecated Use {@link #getField()} instead. */@Deprecatedpublic String field() {return getField();diff --git a/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/SlowCollatedTermRangeTermsEnum.java b/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/SlowCollatedTermRangeTermsEnum.javaindex 6933701e2e3..91030c99569 100644--- a/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/SlowCollatedTermRangeTermsEnum.java+++ b/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/SlowCollatedTermRangeTermsEnum.java@@ -50,7 +50,7 @@ public class SlowCollatedTermRangeTermsEnum extends FilteredTermsEnum {* (you can't select all but the first or last term without* explicitly specifying the term to exclude.)*- * @param tenum+ * @param tenum source of the terms to enumerate.* @param lowerTermText* The term text at the lower end of the range* @param upperTermTextdiff --git a/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/SlowFuzzyTermsEnum.java b/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/SlowFuzzyTermsEnum.javaindex 95721ec37fd..de8539e6670 100644--- a/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/SlowFuzzyTermsEnum.java+++ b/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/SlowFuzzyTermsEnum.java@@ -83,7 +83,7 @@ public final class SlowFuzzyTermsEnum extends FuzzyTermsEnum {* After calling the constructor the enumeration is already pointing to the first* valid term if such a term exists.*- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public LinearFuzzyTermsEnum() throws IOException {super(terms.iterator(null));diff --git a/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/regex/RegexQuery.java b/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/regex/RegexQuery.javaindex 6420447c7e6..5ac67f43b92 100644--- a/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/regex/RegexQuery.java+++ b/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/regex/RegexQuery.java@@ -51,18 +51,10 @@ public class RegexQuery extends MultiTermQuery implements RegexQueryCapable {return term;}- /**- * Defines which {@link RegexCapabilities} implementation is used by this instance.- *- * @param impl- */public void setRegexImplementation(RegexCapabilities impl) {this.regexImpl = impl;}- /**- * @return The implementation used by this instance.- */public RegexCapabilities getRegexImplementation() {return regexImpl;}diff --git a/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/regex/RegexQueryCapable.java b/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/regex/RegexQueryCapable.javaindex 1b2c2535ca9..10e0c5fad0b 100644--- a/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/regex/RegexQueryCapable.java+++ b/lucene/sandbox/src/java/org/apache/lucene/sandbox/queries/regex/RegexQueryCapable.java@@ -23,6 +23,14 @@ package org.apache.lucene.sandbox.queries.regex;*/public interface RegexQueryCapable {+ /**+ * Defines which {@link RegexCapabilities} implementation is used by this instance.+ * @see #getRegexImplementation()+ */void setRegexImplementation(RegexCapabilities impl);+ /**+ * Returns the implementation used by this instance.+ * @see #setRegexImplementation(RegexCapabilities)+ */RegexCapabilities getRegexImplementation();}diff --git a/lucene/spatial/src/java/org/apache/lucene/spatial/query/SpatialArgs.java b/lucene/spatial/src/java/org/apache/lucene/spatial/query/SpatialArgs.javaindex 7dad6f382ae..e3f2a4975e9 100644--- a/lucene/spatial/src/java/org/apache/lucene/spatial/query/SpatialArgs.java+++ b/lucene/spatial/src/java/org/apache/lucene/spatial/query/SpatialArgs.java@@ -73,7 +73,6 @@ public class SpatialArgs {* Gets the error distance that specifies how precise the query shape is. This* looks at {@link #getDistErr()}, {@link #getDistErrPct()}, and {@code* defaultDistErrPct}.- * @param ctx* @param defaultDistErrPct 0 to 0.5* @return >= 0*/diff --git a/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java b/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.javaindex 28d31ed5a9d..f7095416cdb 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java@@ -313,7 +313,7 @@ public class DirectSpellChecker {* @param suggestMode specifies when to return suggested words* @param accuracy return only suggested words that match with this similarity* @return sorted list of the suggested words according to the comparator- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public SuggestWord[] suggestSimilar(Term term, int numSug, IndexReader ir,SuggestMode suggestMode, float accuracy) throws IOException {diff --git a/lucene/suggest/src/java/org/apache/lucene/search/spell/SpellChecker.java b/lucene/suggest/src/java/org/apache/lucene/search/spell/SpellChecker.javaindex 66aecb3db54..162ff926672 100755--- a/lucene/suggest/src/java/org/apache/lucene/search/spell/SpellChecker.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/spell/SpellChecker.java@@ -449,7 +449,7 @@ public class SpellChecker implements java.io.Closeable {/*** Removes all terms from the spell check index.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.* @throws AlreadyClosedException if the Spellchecker is already closed*/public void clearIndex() throws IOException {@@ -467,8 +467,8 @@ public class SpellChecker implements java.io.Closeable {/*** Check whether the word exists in the index.- * @param word- * @throws IOException+ * @param word word to check+ * @throws IOException If there is a low-level I/O error.* @throws AlreadyClosedException if the Spellchecker is already closed* @return true if the word exists in the index*/@@ -490,7 +490,7 @@ public class SpellChecker implements java.io.Closeable {* @param config {@link IndexWriterConfig} to use* @param fullMerge whether or not the spellcheck index should be fully merged* @throws AlreadyClosedException if the Spellchecker is already closed- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public final void indexDictionary(Dictionary dict, IndexWriterConfig config, boolean fullMerge) throws IOException {synchronized (modifyCurrentIndexLock) {diff --git a/lucene/suggest/src/java/org/apache/lucene/search/spell/WordBreakSpellChecker.java b/lucene/suggest/src/java/org/apache/lucene/search/spell/WordBreakSpellChecker.javaindex d9675a17471..50e4cd867be 100644--- a/lucene/suggest/src/java/org/apache/lucene/search/spell/WordBreakSpellChecker.java+++ b/lucene/suggest/src/java/org/apache/lucene/search/spell/WordBreakSpellChecker.java@@ -82,16 +82,13 @@ public class WordBreakSpellChecker {* lower score is generally preferred over a higher score.* </p>*- * @param term- * @param maxSuggestions- * @param ir* @param suggestMode* - default = {@link SuggestMode#SUGGEST_WHEN_NOT_IN_INDEX}* @param sortMethod* - default =* {@link BreakSuggestionSortMethod#NUM_CHANGES_THEN_MAX_FREQUENCY}* @return one or more arrays of words formed by breaking up the original term- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public SuggestWord[][] suggestWordBreaks(Term term, int maxSuggestions,IndexReader ir, SuggestMode suggestMode,@@ -159,12 +156,8 @@ public class WordBreakSpellChecker {* included term.* </p>*- * @param terms- * @param maxSuggestions- * @param ir- * @param suggestMode* @return an array of words generated by combining original terms- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public CombineSuggestion[] suggestWordCombinations(Term[] terms,int maxSuggestions, IndexReader ir, SuggestMode suggestMode)diff --git a/lucene/test-framework/src/java/org/apache/lucene/index/DocHelper.java b/lucene/test-framework/src/java/org/apache/lucene/index/DocHelper.javaindex da4627da216..bd6c7d3ac84 100644--- a/lucene/test-framework/src/java/org/apache/lucene/index/DocHelper.java+++ b/lucene/test-framework/src/java/org/apache/lucene/index/DocHelper.java@@ -257,9 +257,6 @@ class DocHelper {* Writes the document to the directory using a segment* named "test"; returns the SegmentInfo describing the new* segment- * @param dir- * @param doc- * @throws IOException*/public static SegmentInfoPerCommit writeDoc(Random random, Directory dir, Document doc) throws IOException{@@ -270,11 +267,6 @@ class DocHelper {* Writes the document to the directory using the analyzer* and the similarity score; returns the SegmentInfo* describing the new segment- * @param dir- * @param analyzer- * @param similarity- * @param doc- * @throws IOException*/public static SegmentInfoPerCommit writeDoc(Random random, Directory dir, Analyzer analyzer, Similarity similarity, Document doc) throws IOException {IndexWriter writer = new IndexWriter(dir, new IndexWriterConfig( /* LuceneTestCase.newIndexWriterConfig(random, */diff --git a/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/SearchClusteringEngine.java b/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/SearchClusteringEngine.javaindex 5be8e7349f2..38193a915b1 100644--- a/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/SearchClusteringEngine.java+++ b/solr/contrib/clustering/src/java/org/apache/solr/handler/clustering/SearchClusteringEngine.java@@ -45,7 +45,6 @@ public abstract class SearchClusteringEngine extends ClusteringEngine {* Returns the set of field names to load.* Concrete classes can override this method if needed.* Default implementation returns null, that is, all stored fields are loaded.- * @param sreq* @return set of field names to load*/protected Set<String> getFieldsToLoad(SolrQueryRequest sreq){diff --git a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/Context.java b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/Context.javaindex 7604e65c33c..a86c13c3096 100644--- a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/Context.java+++ b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/Context.java@@ -198,12 +198,10 @@ public abstract class Context {public abstract String getScriptLanguage();/**delete a document by id- * @param id*/public abstract void deleteDoc(String id);/**delete documents by query- * @param query*/public abstract void deleteDocByQuery(String query);@@ -214,7 +212,6 @@ public abstract class Context {public abstract Object resolve(String var);/** Resolve variables in a template- * @param template** @return The string w/ variables resolved*/diff --git a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DIHCache.java b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DIHCache.javaindex 2b6ae9a9663..5c8f715709b 100644--- a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DIHCache.java+++ b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DIHCache.java@@ -68,8 +68,6 @@ public interface DIHCache extends Iterable<Map<String,Object>> {* documents will exist in the cache, as the cache allows duplicate keys. To* update a key's documents, first call delete(Object key).* </p>- *- * @param rec*/public void add(Map<String,Object> rec);@@ -93,8 +91,6 @@ public interface DIHCache extends Iterable<Map<String,Object>> {* <p>* Delete all documents associated with the given key* </p>- *- * @param key*/public void delete(Object key);diff --git a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DIHWriter.java b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DIHWriter.javaindex 2b4947ca0d4..33ad7da6e2b 100644--- a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DIHWriter.java+++ b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DIHWriter.java@@ -31,7 +31,6 @@ public interface DIHWriter {* If this writer supports transactions or commit points, then commit any changes,* optionally optimizing the data for read/write performance* </p>- * @param optimize*/public void commit(boolean optimize);@@ -53,7 +52,6 @@ public interface DIHWriter {* <p>* Delete from the writer's underlying data store based the passed-in writer-specific query. (Optional Operation)* </p>- * @param q*/public void deleteByQuery(String q);@@ -68,7 +66,6 @@ public interface DIHWriter {* <p>* Delete from the writer's underlying data store based on the passed-in Primary Key* </p>- * @param key*/public void deleteDoc(Object key);@@ -78,7 +75,6 @@ public interface DIHWriter {* <p>* Add a document to this writer's underlying data store.* </p>- * @param doc* @return true on success, false on failure*/public boolean upload(SolrInputDocument doc);@@ -89,7 +85,6 @@ public interface DIHWriter {* <p>* Provide context information for this writer. init() should be called before using the writer.* </p>- * @param context*/public void init(Context context) ;@@ -98,7 +93,6 @@ public interface DIHWriter {* <p>* Specify the keys to be modified by a delta update (required by writers that can store duplicate keys)* </p>- * @param deltaKeys*/public void setDeltaKeys(Set<Map<String, Object>> deltaKeys) ;diff --git a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DataSource.java b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DataSource.javaindex 37ad464865a..48656971f1a 100644--- a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DataSource.java+++ b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/DataSource.java@@ -46,9 +46,6 @@ public abstract class DataSource<T> {* <p/>* This is invoked by the <code>DataImporter</code> after creating an* instance of this class.- *- * @param context- * @param initProps*/public abstract void init(Context context, Properties initProps);diff --git a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/VariableResolver.java b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/VariableResolver.javaindex b3ded9013aa..5e48a452022 100644--- a/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/VariableResolver.java+++ b/solr/contrib/dataimporthandler/src/java/org/apache/solr/handler/dataimport/VariableResolver.java@@ -46,7 +46,6 @@ public abstract class VariableResolver {/*** Given a String with place holders, replace them with the value tokens.*- * @param template* @return the string with the placeholders replaced with their values*/public abstract String replaceTokens(String template);diff --git a/solr/contrib/extraction/src/java/org/apache/solr/handler/extraction/ExtractingDocumentLoader.java b/solr/contrib/extraction/src/java/org/apache/solr/handler/extraction/ExtractingDocumentLoader.javaindex 0fee1f346f3..dff414b728f 100644--- a/solr/contrib/extraction/src/java/org/apache/solr/handler/extraction/ExtractingDocumentLoader.java+++ b/solr/contrib/extraction/src/java/org/apache/solr/handler/extraction/ExtractingDocumentLoader.java@@ -126,11 +126,6 @@ public class ExtractingDocumentLoader extends ContentStreamLoader {doAdd(handler, templateAdd);}- /**- * @param req- * @param stream- * @throws java.io.IOException- */@Overridepublic void load(SolrQueryRequest req, SolrQueryResponse rsp,ContentStream stream, UpdateRequestProcessor processor) throws Exception {diff --git a/solr/contrib/uima/src/java/org/apache/solr/uima/processor/UIMAToSolrMapper.java b/solr/contrib/uima/src/java/org/apache/solr/uima/processor/UIMAToSolrMapper.javaindex 4a4cd38c0a1..8c7d4547bfe 100644--- a/solr/contrib/uima/src/java/org/apache/solr/uima/processor/UIMAToSolrMapper.java+++ b/solr/contrib/uima/src/java/org/apache/solr/uima/processor/UIMAToSolrMapper.java@@ -52,7 +52,6 @@ public class UIMAToSolrMapper {* map features of a certain UIMA type to corresponding Solr fields based on the mapping** @param typeName name of UIMA type to map- * @param featureFieldsmapping*/void map(String typeName, Map<String, MapField> featureFieldsmapping) throws FieldMappingException {try {diff --git a/solr/core/src/java/org/apache/solr/client/solrj/embedded/EmbeddedSolrServer.java b/solr/core/src/java/org/apache/solr/client/solrj/embedded/EmbeddedSolrServer.javaindex a67a9c367b9..ecb38e72df5 100644--- a/solr/core/src/java/org/apache/solr/client/solrj/embedded/EmbeddedSolrServer.java+++ b/solr/core/src/java/org/apache/solr/client/solrj/embedded/EmbeddedSolrServer.java@@ -62,8 +62,7 @@ public class EmbeddedSolrServer extends SolrServer/*** Use the other constructor using a CoreContainer and a name.- * @param core- * @deprecated+ * @deprecated use {@link #EmbeddedSolrServer(CoreContainer, String)} instead.*/@Deprecatedpublic EmbeddedSolrServer( SolrCore core )@@ -231,9 +230,7 @@ public class EmbeddedSolrServer extends SolrServer}/**- * @param req- * @param rsp- * @return a response object equivalent to what you get from the XML/JSON/javabin parser. Documents+ * Returns a response object equivalent to what you get from the XML/JSON/javabin parser. Documents* become SolrDocuments, DocList becomes SolrDocumentList etc.** @deprecated use {@link BinaryResponseWriter#getParsedResponse(SolrQueryRequest, SolrQueryResponse)}diff --git a/solr/core/src/java/org/apache/solr/cloud/AssignShard.java b/solr/core/src/java/org/apache/solr/cloud/AssignShard.javaindex 62dcaba516d..4b14bac63ef 100644--- a/solr/core/src/java/org/apache/solr/cloud/AssignShard.java+++ b/solr/core/src/java/org/apache/solr/cloud/AssignShard.java@@ -32,8 +32,6 @@ public class AssignShard {/*** Assign a new unique id up to slices count - then add replicas evenly.*- * @param collection- * @param state* @return the assigned shard id*/public static String assignShard(String collection, ClusterState state, Integer numShards) {diff --git a/solr/core/src/java/org/apache/solr/cloud/DistributedQueue.java b/solr/core/src/java/org/apache/solr/cloud/DistributedQueue.javaindex 7e5bf568cf1..69ca219265b 100644--- a/solr/core/src/java/org/apache/solr/cloud/DistributedQueue.java+++ b/solr/core/src/java/org/apache/solr/cloud/DistributedQueue.java@@ -98,9 +98,6 @@ public class DistributedQueue {* Return the head of the queue without modifying the queue.** @return the data at the head of the queue.- * @throws NoSuchElementException- * @throws KeeperException- * @throws InterruptedException*/public byte[] element() throws NoSuchElementException, KeeperException,InterruptedException {@@ -137,9 +134,6 @@ public class DistributedQueue {* Attempts to remove the head of the queue and return it.** @return The former head of the queue- * @throws NoSuchElementException- * @throws KeeperException- * @throws InterruptedException*/public byte[] remove() throws NoSuchElementException, KeeperException,InterruptedException {@@ -190,9 +184,6 @@ public class DistributedQueue {* Removes the head of the queue and returns it, blocks until it succeeds.** @return The former head of the queue- * @throws NoSuchElementException- * @throws KeeperException- * @throws InterruptedException*/public byte[] take() throws KeeperException, InterruptedException {TreeMap<Long,String> orderedChildren;@@ -226,7 +217,6 @@ public class DistributedQueue {/*** Inserts data into queue.*- * @param data* @return true if data was successfully added*/public boolean offer(byte[] data) throws KeeperException,@@ -254,8 +244,6 @@ public class DistributedQueue {* empty.** @return data at the first element of the queue, or null.- * @throws KeeperException- * @throws InterruptedException*/public byte[] peek() throws KeeperException, InterruptedException {try {@@ -270,8 +258,6 @@ public class DistributedQueue {* empty.** @return data at the first element of the queue, or null.- * @throws KeeperException- * @throws InterruptedException*/public byte[] peek(boolean block) throws KeeperException, InterruptedException {if (!block) {@@ -309,8 +295,6 @@ public class DistributedQueue {* queue is empty.** @return Head of the queue or null.- * @throws KeeperException- * @throws InterruptedException*/public byte[] poll() throws KeeperException, InterruptedException {try {diff --git a/solr/core/src/java/org/apache/solr/cloud/LeaderElector.java b/solr/core/src/java/org/apache/solr/cloud/LeaderElector.javaindex 5b3e7187dea..4d3a016091b 100644--- a/solr/core/src/java/org/apache/solr/cloud/LeaderElector.java+++ b/solr/core/src/java/org/apache/solr/cloud/LeaderElector.java@@ -75,13 +75,7 @@ public class LeaderElector {* watching the candidate that is in line before this one - if it goes down, check* if this candidate is the leader again.*- * @param seq- * @param context* @param replacement has someone else been the leader already?- * @throws KeeperException- * @throws InterruptedException- * @throws IOException- * @throws UnsupportedEncodingException*/private void checkIfIamLeader(final int seq, final ElectionContext context, boolean replacement) throws KeeperException,InterruptedException, IOException {@@ -161,7 +155,6 @@ public class LeaderElector {/*** Returns int given String of form n_0000000001 or n_0000000003, etc.*- * @param nStringSequence* @return sequence number*/private int getSeq(String nStringSequence) {@@ -208,12 +201,7 @@ public class LeaderElector {* node that is watched goes down, check if we are the new lowest node, else* watch the next lowest numbered node.*- * @param context* @return sequential node number- * @throws KeeperException- * @throws InterruptedException- * @throws IOException- * @throws UnsupportedEncodingException*/public int joinElection(ElectionContext context) throws KeeperException, InterruptedException, IOException {final String shardsElectZkPath = context.electionPath + LeaderElector.ELECTION_NODE;@@ -278,10 +266,6 @@ public class LeaderElector {/*** Set up any ZooKeeper nodes needed for leader election.- *- * @param context- * @throws InterruptedException- * @throws KeeperException*/public void setup(final ElectionContext context) throws InterruptedException,KeeperException {@@ -292,8 +276,6 @@ public class LeaderElector {/*** Sort n string sequence list.- *- * @param seqs*/private void sortSeqs(List<String> seqs) {Collections.sort(seqs, new Comparator<String>() {diff --git a/solr/core/src/java/org/apache/solr/cloud/SolrZkServer.java b/solr/core/src/java/org/apache/solr/cloud/SolrZkServer.javaindex 7414b899ef0..df541972c14 100644--- a/solr/core/src/java/org/apache/solr/cloud/SolrZkServer.java+++ b/solr/core/src/java/org/apache/solr/cloud/SolrZkServer.java@@ -321,8 +321,6 @@ class SolrZkServerProps extends QuorumPeerConfig {/*** Parse config from a Properties.* @param zkProp Properties to parse from.- * @throws java.io.IOException- * @throws ConfigException*/@Overridepublic void parseProperties(Properties zkProp)diff --git a/solr/core/src/java/org/apache/solr/cloud/ZkCLI.java b/solr/core/src/java/org/apache/solr/cloud/ZkCLI.javaindex 747b083059a..a09c50f9d01 100644--- a/solr/core/src/java/org/apache/solr/cloud/ZkCLI.java+++ b/solr/core/src/java/org/apache/solr/cloud/ZkCLI.java@@ -73,14 +73,6 @@ public class ZkCLI {** If you also pass a solrPort, it will be used to start an embedded zk useful* for single machine, multi node tests.- *- * @param args- * @throws IOException- * @throws TimeoutException- * @throws InterruptedException- * @throws SAXException- * @throws ParserConfigurationException- * @throws KeeperException*/public static void main(String[] args) throws InterruptedException,TimeoutException, IOException, ParserConfigurationException,diff --git a/solr/core/src/java/org/apache/solr/cloud/ZkController.java b/solr/core/src/java/org/apache/solr/cloud/ZkController.javaindex b1b0c171394..0ccab0e6b72 100644--- a/solr/core/src/java/org/apache/solr/cloud/ZkController.java+++ b/solr/core/src/java/org/apache/solr/cloud/ZkController.java@@ -138,19 +138,6 @@ public final class ZkController {private int clientTimeout;- /**- * @param cc- * @param zkServerAddress- * @param zkClientTimeout- * @param zkClientConnectTimeout- * @param localHost- * @param locaHostPort- * @param localHostContext- * @param registerOnReconnect- * @throws InterruptedException- * @throws TimeoutException- * @throws IOException- */public ZkController(final CoreContainer cc, String zkServerAddress, int zkClientTimeout, int zkClientConnectTimeout, String localHost, String locaHostPort,String localHostContext, final CurrentCoreDescriptorProvider registerOnReconnect) throws InterruptedException,TimeoutException, IOException {@@ -158,20 +145,6 @@ public final class ZkController {}- /**- * @param cc- * @param zkServerAddress- * @param zkClientTimeout- * @param zkClientConnectTimeout- * @param localHost- * @param locaHostPort- * @param localHostContext- * @param leaderVoteWait- * @param registerOnReconnect- * @throws InterruptedException- * @throws TimeoutException- * @throws IOException- */public ZkController(final CoreContainer cc, String zkServerAddress, int zkClientTimeout, int zkClientConnectTimeout, String localHost, String locaHostPort,String localHostContext, String leaderVoteWait, final CurrentCoreDescriptorProvider registerOnReconnect) throws InterruptedException,TimeoutException, IOException {@@ -347,11 +320,7 @@ public final class ZkController {}/**- * @param collection- * @param fileName- * @return true if config file exists- * @throws KeeperException- * @throws InterruptedException+ * Returns true if config file exists*/public boolean configFileExists(String collection, String fileName)throws KeeperException, InterruptedException {@@ -367,11 +336,7 @@ public final class ZkController {}/**- * @param zkConfigName- * @param fileName- * @return config file data (in bytes)- * @throws KeeperException- * @throws InterruptedException+ * Returns config file data (in bytes)*/public byte[] getConfigFileData(String zkConfigName, String fileName)throws KeeperException, InterruptedException {@@ -521,10 +486,7 @@ public final class ZkController {}/**- * @param path- * @return true if the path exists- * @throws KeeperException- * @throws InterruptedException+ * Returns true if the path exists*/public boolean pathExists(String path) throws KeeperException,InterruptedException {@@ -532,10 +494,7 @@ public final class ZkController {}/**- * @param collection- * @return config value- * @throws KeeperException- * @throws InterruptedException+ * Returns config value*/public String readConfigName(String collection) throws KeeperException,InterruptedException {@@ -567,10 +526,7 @@ public final class ZkController {/*** Register shard with ZooKeeper.*- * @param coreName- * @param desc* @return the shardId for the SolrCore- * @throws Exception*/public String register(String coreName, final CoreDescriptor desc) throws Exception {return register(coreName, desc, false, false);@@ -580,12 +536,7 @@ public final class ZkController {/*** Register shard with ZooKeeper.*- * @param coreName- * @param desc- * @param recoverReloadedCores- * @param afterExpiration* @return the shardId for the SolrCore- * @throws Exception*/public String register(String coreName, final CoreDescriptor desc, boolean recoverReloadedCores, boolean afterExpiration) throws Exception {final String baseUrl = getBaseUrl();@@ -725,10 +676,7 @@ public final class ZkController {/*** Get leader props directly from zk nodes.*- * @param collection- * @param slice* @return leader props- * @throws InterruptedException*/public ZkCoreNodeProps getLeaderProps(final String collection,final String slice, boolean failImmediatelyOnExpiration) throws InterruptedException {@@ -787,18 +735,7 @@ public final class ZkController {/**- * @param coreName- * @param desc- * @param recoverReloadedCores- * @param isLeader- * @param cloudDesc- * @param collection- * @param shardZkNodeName- * @param shardId- * @param leaderProps- * @param core- * @param cc- * @return whether or not a recovery was started+ * Returns whether or not a recovery was started*/private boolean checkRecovery(String coreName, final CoreDescriptor desc,boolean recoverReloadedCores, final boolean isLeader,@@ -839,10 +776,6 @@ public final class ZkController {/*** Publish core state to overseer.- * @param cd- * @param state- * @throws KeeperException- * @throws InterruptedException*/public void publish(final CoreDescriptor cd, final String state, boolean updateLastState) throws KeeperException, InterruptedException {//System.out.println(Thread.currentThread().getStackTrace()[3]);@@ -880,12 +813,6 @@ public final class ZkController {return true;}- /**- * @param coreName- * @param cloudDesc- * @throws KeeperException- * @throws InterruptedException- */public void unregister(String coreName, CloudDescriptor cloudDesc)throws InterruptedException, KeeperException {ZkNodeProps m = new ZkNodeProps(Overseer.QUEUE_OPERATION,@@ -909,24 +836,10 @@ public final class ZkController {overseerJobQueue.offer(ZkStateReader.toJSON(m));}- /**- * @param dir- * @param zkPath- * @throws IOException- * @throws KeeperException- * @throws InterruptedException- */public void uploadToZK(File dir, String zkPath) throws IOException, KeeperException, InterruptedException {uploadToZK(zkClient, dir, zkPath);}- /**- * @param dir- * @param configName- * @throws IOException- * @throws KeeperException- * @throws InterruptedException- */public void uploadConfigDir(File dir, String configName) throws IOException, KeeperException, InterruptedException {uploadToZK(zkClient, dir, ZkController.CONFIGS_ZKNODE + "/" + configName);}@@ -1258,10 +1171,6 @@ public final class ZkController {/*** If in SolrCloud mode, upload config sets for each SolrCore in solr.xml.- *- * @throws IOException- * @throws KeeperException- * @throws InterruptedException*/public static void bootstrapConf(SolrZkClient zkClient, Config cfg, String solrHome) throws IOException,KeeperException, InterruptedException {diff --git a/solr/core/src/java/org/apache/solr/core/CloseHook.java b/solr/core/src/java/org/apache/solr/core/CloseHook.javaindex 7431c1fd1fe..5cdaff28541 100644--- a/solr/core/src/java/org/apache/solr/core/CloseHook.java+++ b/solr/core/src/java/org/apache/solr/core/CloseHook.java@@ -50,8 +50,6 @@ public abstract class CloseHook {* <b>Important:</b> Keep the method implementation as short as possible. If it were to use any heavy i/o , network connections -* it might be a better idea to launch in a separate Thread so as to not to block the process of* shutting down a given SolrCore instance.- *- * @param core*/public abstract void postClose(SolrCore core);}diff --git a/solr/core/src/java/org/apache/solr/core/Config.java b/solr/core/src/java/org/apache/solr/core/Config.javaindex a85f6443298..1fbc48cac1d 100644--- a/solr/core/src/java/org/apache/solr/core/Config.java+++ b/solr/core/src/java/org/apache/solr/core/Config.java@@ -61,11 +61,6 @@ public class Config {/*** Builds a config from a resource name with no xpath prefix.- * @param loader- * @param name- * @throws javax.xml.parsers.ParserConfigurationException- * @throws java.io.IOException- * @throws org.xml.sax.SAXException*/public Config(SolrResourceLoader loader, String name) throws ParserConfigurationException, IOException, SAXException{@@ -92,9 +87,6 @@ public class Config {* @param name the resource name used if the input stream 'is' is null* @param is the resource as a SAX InputSource* @param prefix an optional prefix that will be preprended to all non-absolute xpath expressions- * @throws javax.xml.parsers.ParserConfigurationException- * @throws java.io.IOException- * @throws org.xml.sax.SAXException*/public Config(SolrResourceLoader loader, String name, InputSource is, String prefix, boolean subProps) throws ParserConfigurationException, IOException, SAXException{diff --git a/solr/core/src/java/org/apache/solr/core/CoreContainer.java b/solr/core/src/java/org/apache/solr/core/CoreContainer.javaindex c8f4e8aacb6..e87aef491f8 100644--- a/solr/core/src/java/org/apache/solr/core/CoreContainer.java+++ b/solr/core/src/java/org/apache/solr/core/CoreContainer.java@@ -162,12 +162,6 @@ public class CoreContainer/*** Initalize CoreContainer directly from the constructor- *- * @param dir- * @param configFile- * @throws ParserConfigurationException- * @throws IOException- * @throws SAXException*/public CoreContainer(String dir, File configFile) throws ParserConfigurationException, IOException, SAXException{@@ -356,9 +350,6 @@ public class CoreContainer* Load a config file listing the available solr cores.* @param dir the home directory of all resources.* @param configFile the configuration file- * @throws javax.xml.parsers.ParserConfigurationException- * @throws java.io.IOException- * @throws org.xml.sax.SAXException*/public void load(String dir, File configFile ) throws ParserConfigurationException, IOException, SAXException {this.configFile = configFile;@@ -370,9 +361,6 @@ public class CoreContainer** @param dir the home directory of all resources.* @param cfgis the configuration file InputStream- * @throws ParserConfigurationException- * @throws IOException- * @throws SAXException*/public void load(String dir, InputSource cfgis)throws ParserConfigurationException, IOException, SAXException {@@ -761,9 +749,6 @@ public class CoreContainer** @param dcore a core descriptor* @return the newly created core- * @throws javax.xml.parsers.ParserConfigurationException- * @throws java.io.IOException- * @throws org.xml.sax.SAXException*/public SolrCore create(CoreDescriptor dcore) throws ParserConfigurationException, IOException, SAXException {@@ -969,9 +954,6 @@ public class CoreContainer* and processed by the old core** @param name the name of the SolrCore to reload- * @throws ParserConfigurationException- * @throws IOException- * @throws SAXException*/public void reload(String name) throws ParserConfigurationException, IOException, SAXException {@@ -1068,8 +1050,6 @@ public class CoreContainer/*** Swaps two SolrCore descriptors.- * @param n0- * @param n1*/public void swap(String n0, String n1) {if( n0 == null || n1 == null ) {@@ -1197,7 +1177,6 @@ public class CoreContainer* declare an alternate way of accessing named cores.* This can also be used in a pseudo single-core environment so admins can prepare* a new version before swapping.- * @param path*/public void setManagementPath(String path) {this.managementPath = path;diff --git a/solr/core/src/java/org/apache/solr/core/CoreDescriptor.java b/solr/core/src/java/org/apache/solr/core/CoreDescriptor.javaindex 27ba1126fd6..e651540fbda 100644--- a/solr/core/src/java/org/apache/solr/core/CoreDescriptor.java+++ b/solr/core/src/java/org/apache/solr/core/CoreDescriptor.java@@ -176,8 +176,6 @@ public class CoreDescriptor {* Properties instance passed into this method. This means that the Properties instance* set to this method will have different (less) key/value pairs than the Properties* instance returned by #getCoreProperties method.- *- * @param coreProperties*/public void setCoreProperties(Properties coreProperties) {if (this.coreProperties == null) {diff --git a/solr/core/src/java/org/apache/solr/core/DirectoryFactory.java b/solr/core/src/java/org/apache/solr/core/DirectoryFactory.javaindex e40e41a0e21..f7b5e90a36b 100644--- a/solr/core/src/java/org/apache/solr/core/DirectoryFactory.java+++ b/solr/core/src/java/org/apache/solr/core/DirectoryFactory.java@@ -36,30 +36,26 @@ public abstract class DirectoryFactory implements NamedListInitializedPlugin,* hits 0, it can be closed. On shutdown all directories will be closed* whether this has been called or not. This is simply to allow early cleanup.*- * @param directory- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public abstract void doneWithDirectory(Directory directory) throws IOException;/*** Adds a close listener for a Directory.- *- * @param dir- * @param closeListener*/public abstract void addCloseListener(Directory dir, CloseListener closeListener);/*** Close the this and all of the Directories it contains.*- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public abstract void close() throws IOException;/*** Creates a new Directory for a given path.*- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/protected abstract Directory create(String path) throws IOException;@@ -73,7 +69,7 @@ public abstract class DirectoryFactory implements NamedListInitializedPlugin,* Returns the Directory for a given path, using the specified rawLockType.* Will return the same Directory instance for the same path.*- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public abstract Directory get(String path, String rawLockType)throws IOException;@@ -85,7 +81,7 @@ public abstract class DirectoryFactory implements NamedListInitializedPlugin,* {@link #doneWithDirectory(Directory)} in this case - the old Directory* will be closed when it's ref count hits 0.*- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public abstract Directory get(String path, String rawLockType,boolean forceNew) throws IOException;@@ -101,7 +97,7 @@ public abstract class DirectoryFactory implements NamedListInitializedPlugin,* Releases the Directory so that it may be closed when it is no longer* referenced.*- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public abstract void release(Directory directory) throws IOException;diff --git a/solr/core/src/java/org/apache/solr/core/IndexReaderFactory.java b/solr/core/src/java/org/apache/solr/core/IndexReaderFactory.javaindex c7c8143686b..c04578a98e0 100644--- a/solr/core/src/java/org/apache/solr/core/IndexReaderFactory.java+++ b/solr/core/src/java/org/apache/solr/core/IndexReaderFactory.java@@ -63,7 +63,7 @@ public abstract class IndexReaderFactory implements NamedListInitializedPlugin {* {@link SolrCore#getCoreDescriptor()}, {@link SolrCore#getSchema()} and* {@link SolrCore#getSolrConfig()} are valid.* @return An IndexReader instance- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public abstract DirectoryReader newReader(Directory indexDir, SolrCore core)throws IOException;diff --git a/solr/core/src/java/org/apache/solr/core/SolrConfig.java b/solr/core/src/java/org/apache/solr/core/SolrConfig.javaindex e68f904a543..beab37f03b7 100644--- a/solr/core/src/java/org/apache/solr/core/SolrConfig.java+++ b/solr/core/src/java/org/apache/solr/core/SolrConfig.java@@ -404,7 +404,6 @@ public class SolrConfig extends Config {public final boolean openSearcher; // is opening a new searcher part of hard autocommit?/**- * @param className* @param autoCommmitMaxDocs set -1 as default* @param autoCommmitMaxTime set -1 as default* @param commitIntervalLowerBound set -1 as defaultdiff --git a/solr/core/src/java/org/apache/solr/core/SolrCore.java b/solr/core/src/java/org/apache/solr/core/SolrCore.javaindex 082e7d8f71f..b366b3dda13 100644--- a/solr/core/src/java/org/apache/solr/core/SolrCore.java+++ b/solr/core/src/java/org/apache/solr/core/SolrCore.java@@ -556,7 +556,6 @@ public final class SolrCore implements SolrInfoMBean {* Creates a new core and register it in the list of cores.* If a core with the same name already exists, it will be stopped and replaced by this one.*- * @param name* @param dataDir the index directory* @param config a solr config instance* @param schema a solr schema instance@@ -573,7 +572,6 @@ public final class SolrCore implements SolrInfoMBean {*@param dataDir the index directory*@param config a solr config instance*@param schema a solr schema instance- *@param updateHandler**@since solr 1.3*/diff --git a/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java b/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.javaindex 9595893c583..2d5d8a11fb2 100644--- a/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java+++ b/solr/core/src/java/org/apache/solr/core/SolrResourceLoader.java@@ -324,10 +324,9 @@ public class SolrResourceLoader implements ResourceLoader* A comment line is any line that starts with the character "#"* </p>*- * @param resource* @return a list of non-blank non-comment lines with whitespace trimmed* from front and back.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public List<String> getLines(String resource) throws IOException {return getLines(resource, UTF_8);@@ -342,9 +341,8 @@ public class SolrResourceLoader implements ResourceLoader* </p>** @param resource the file to be read- * @param encoding* @return a list of non-blank non-comment lines with whitespace trimmed- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public List<String> getLines(String resource,String encoding) throws IOException {diff --git a/solr/core/src/java/org/apache/solr/core/SolrXMLSerializer.java b/solr/core/src/java/org/apache/solr/core/SolrXMLSerializer.javaindex 484fe427826..a413997ab6b 100644--- a/solr/core/src/java/org/apache/solr/core/SolrXMLSerializer.java+++ b/solr/core/src/java/org/apache/solr/core/SolrXMLSerializer.java@@ -45,7 +45,7 @@ public class SolrXMLSerializer {/*** @param w* Writer to use- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/void persist(Writer w, SolrXMLDef solrXMLDef) throws IOException {w.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");diff --git a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java b/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.javaindex 7e0271b7a50..46fb3c8b46b 100644--- a/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/ReplicationHandler.java@@ -568,8 +568,6 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw/*** Used for showing statistics and progress information.- *- * @param showSlaveDetails*/private NamedList<Object> getReplicationDetails(boolean showSlaveDetails) {NamedList<Object> details = new SimpleOrderedMap<Object>();diff --git a/solr/core/src/java/org/apache/solr/handler/SnapPuller.java b/solr/core/src/java/org/apache/solr/handler/SnapPuller.javaindex 1f566293e53..955253305ef 100644--- a/solr/core/src/java/org/apache/solr/handler/SnapPuller.java+++ b/solr/core/src/java/org/apache/solr/handler/SnapPuller.java@@ -422,8 +422,6 @@ public class SnapPuller {/*** terminate the fsync service and wait for all the tasks to complete. If it is already terminated- *- * @throws Exception*/private void terminateAndWaitFsyncService() throws Exception {if (fsyncService.isTerminated()) return;diff --git a/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java b/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.javaindex d38685dba6d..f274329fdac 100644--- a/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java@@ -433,9 +433,6 @@ public class CoreAdminHandler extends RequestHandlerBase {/*** Handle 'CREATE' action.*- * @param req- * @param rsp- ** @return true if a modification has resulted that requires persistance* of the CoreContainer configuration.*@@ -530,13 +527,8 @@ public class CoreAdminHandler extends RequestHandlerBase {/*** Handle "RENAME" Action*- * @param req- * @param rsp- *- * @return true if a modification has resulted that requires persistance+ * @return true if a modification has resulted that requires persistence* of the CoreContainer configuration.- *- * @throws SolrException*/protected boolean handleRenameAction(SolrQueryRequest req, SolrQueryResponse rsp) throws SolrException {SolrParams params = req.getParams();@@ -556,9 +548,6 @@ public class CoreAdminHandler extends RequestHandlerBase {/*** Handle "ALIAS" action*- * @param req- * @param rsp- ** @return true if a modification has resulted that requires persistance* of the CoreContainer configuration.*/@@ -584,9 +573,6 @@ public class CoreAdminHandler extends RequestHandlerBase {/*** Handle "UNLOAD" Action*- * @param req- * @param rsp- ** @return true if a modification has resulted that requires persistance* of the CoreContainer configuration.*/@@ -691,9 +677,6 @@ public class CoreAdminHandler extends RequestHandlerBase {/*** Handle "STATUS" action*- * @param req- * @param rsp- ** @return true if a modification has resulted that requires persistance* of the CoreContainer configuration.*/@@ -731,13 +714,8 @@ public class CoreAdminHandler extends RequestHandlerBase {/*** Handler "PERSIST" action*- * @param req- * @param rsp- *- * @return true if a modification has resulted that requires persistance+ * @return true if a modification has resulted that requires persistence* of the CoreContainer configuration.- *- * @throws SolrException*/protected boolean handlePersistAction(SolrQueryRequest req, SolrQueryResponse rsp)throws SolrException {@@ -760,10 +738,7 @@ public class CoreAdminHandler extends RequestHandlerBase {/*** Handler "RELOAD" action*- * @param req- * @param rsp- *- * @return true if a modification has resulted that requires persistance+ * @return true if a modification has resulted that requires persistence* of the CoreContainer configuration.*/protected boolean handleReloadAction(SolrQueryRequest req, SolrQueryResponse rsp) {@@ -780,10 +755,7 @@ public class CoreAdminHandler extends RequestHandlerBase {/*** Handle "SWAP" action*- * @param req- * @param rsp- *- * @return true if a modification has resulted that requires persistance+ * @return true if a modification has resulted that requires persistence* of the CoreContainer configuration.*/protected boolean handleSwapAction(SolrQueryRequest req, SolrQueryResponse rsp) {diff --git a/solr/core/src/java/org/apache/solr/handler/component/FacetComponent.java b/solr/core/src/java/org/apache/solr/handler/component/FacetComponent.javaindex 090cd057c9c..a7d79e71d90 100644--- a/solr/core/src/java/org/apache/solr/handler/component/FacetComponent.java+++ b/solr/core/src/java/org/apache/solr/handler/component/FacetComponent.java@@ -72,7 +72,6 @@ public class FacetComponent extends SearchComponent/*** Actually run the query- * @param rb*/@Overridepublic void process(ResponseBuilder rb) throws IOExceptiondiff --git a/solr/core/src/java/org/apache/solr/handler/component/QueryElevationComponent.java b/solr/core/src/java/org/apache/solr/handler/component/QueryElevationComponent.javaindex fd9931886b1..401fe1d2183 100644--- a/solr/core/src/java/org/apache/solr/handler/component/QueryElevationComponent.java+++ b/solr/core/src/java/org/apache/solr/handler/component/QueryElevationComponent.java@@ -296,7 +296,7 @@ public class QueryElevationComponent extends SearchComponent implements SolrCore/*** Helpful for testing without loading config.xml*- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/void setTopQueryResults(IndexReader reader, String query, String[] ids, String[] ex) throws IOException {if (ids == null) {diff --git a/solr/core/src/java/org/apache/solr/handler/component/SearchComponent.java b/solr/core/src/java/org/apache/solr/handler/component/SearchComponent.javaindex 378af85314e..71255f698a3 100644--- a/solr/core/src/java/org/apache/solr/handler/component/SearchComponent.java+++ b/solr/core/src/java/org/apache/solr/handler/component/SearchComponent.java@@ -39,14 +39,14 @@ public abstract class SearchComponent implements SolrInfoMBean, NamedListInitial** The place to do initialization that is request dependent.* @param rb The {@link org.apache.solr.handler.component.ResponseBuilder}- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public abstract void prepare(ResponseBuilder rb) throws IOException;/*** Process the request for this component* @param rb The {@link ResponseBuilder}- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public abstract void process(ResponseBuilder rb) throws IOException;diff --git a/solr/core/src/java/org/apache/solr/highlight/DefaultSolrHighlighter.java b/solr/core/src/java/org/apache/solr/highlight/DefaultSolrHighlighter.javaindex e4d9fc34f34..8f57ad9e3d5 100644--- a/solr/core/src/java/org/apache/solr/highlight/DefaultSolrHighlighter.java+++ b/solr/core/src/java/org/apache/solr/highlight/DefaultSolrHighlighter.java@@ -166,7 +166,7 @@ public class DefaultSolrHighlighter extends SolrHighlighter implements PluginInf* @param fieldName The name of the field* @param request The current SolrQueryRequest* @param tokenStream document text CachingTokenStream- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/protected Highlighter getPhraseHighlighter(Query query, String fieldName, SolrQueryRequest request, CachingTokenFilter tokenStream) throws IOException {SolrParams params = request.getParams();diff --git a/solr/core/src/java/org/apache/solr/internal/csv/CSVStrategy.java b/solr/core/src/java/org/apache/solr/internal/csv/CSVStrategy.javaindex a30a7bea137..c2dd0d3a870 100644--- a/solr/core/src/java/org/apache/solr/internal/csv/CSVStrategy.java+++ b/solr/core/src/java/org/apache/solr/internal/csv/CSVStrategy.java@@ -89,7 +89,7 @@ public class CSVStrategy implements Cloneable, Serializable {setIgnoreEmptyLines(ignoreEmptyLines);}- /** @deprecated */+ /** @deprecated Use {@link #CSVStrategy(char, char, char, char, boolean, boolean, boolean, boolean)} */public CSVStrategy(char delimiter,char encapsulator,diff --git a/solr/core/src/java/org/apache/solr/internal/csv/CharBuffer.java b/solr/core/src/java/org/apache/solr/internal/csv/CharBuffer.javaindex c61732c8102..3db97013871 100644--- a/solr/core/src/java/org/apache/solr/internal/csv/CharBuffer.java+++ b/solr/core/src/java/org/apache/solr/internal/csv/CharBuffer.java@@ -207,7 +207,6 @@ public class CharBuffer {/*** Copies the data into a new array of at least <code>capacity</code> size.- * @param capacity*/public void provideCapacity(final int capacity) {if (c.length >= capacity) {diff --git a/solr/core/src/java/org/apache/solr/internal/csv/ExtendedBufferedReader.java b/solr/core/src/java/org/apache/solr/internal/csv/ExtendedBufferedReader.javaindex 3b2ca544405..abc1c84842d 100644--- a/solr/core/src/java/org/apache/solr/internal/csv/ExtendedBufferedReader.java+++ b/solr/core/src/java/org/apache/solr/internal/csv/ExtendedBufferedReader.java@@ -155,7 +155,7 @@ class ExtendedBufferedReader extends BufferedReader {** @param c the character to read up to* @return the string up to the character <code>c</code>- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public String readUntil(char c) throws IOException {if (lookaheadChar == UNDEFINED) {@@ -253,10 +253,8 @@ class ExtendedBufferedReader extends BufferedReader {/*** Skips all chars in the input until (but excluding) the given char*- * @param c* @return counter- * @throws IllegalArgumentException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public long skipUntil(char c) throws IllegalArgumentException, IOException {if (lookaheadChar == UNDEFINED) {diff --git a/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfig.java b/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfig.javaindex 8ee5a0a1722..767c9b80370 100644--- a/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfig.java+++ b/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfig.java@@ -275,7 +275,6 @@ public class CSVConfig {/*** Specify if the end of the line needs to be trimmed. Defaults to false.- * @param endTrimmed*/public void setEndTrimmed(boolean endTrimmed) {this.endTrimmed = endTrimmed;diff --git a/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfigGuesser.java b/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfigGuesser.javaindex bbff872f182..3f8096c63a4 100644--- a/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfigGuesser.java+++ b/solr/core/src/java/org/apache/solr/internal/csv/writer/CSVConfigGuesser.java@@ -116,7 +116,6 @@ public class CSVConfigGuesser {/*** Guess if this file is fixedwidth.* Just basing the fact on all lines being of the same length- * @param lines*/protected void guessFixedWidth(String[] lines) {int lastLength = 0;diff --git a/solr/core/src/java/org/apache/solr/request/UnInvertedField.java b/solr/core/src/java/org/apache/solr/request/UnInvertedField.javaindex 6a691f9d8a9..c73c2c91dde 100755--- a/solr/core/src/java/org/apache/solr/request/UnInvertedField.java+++ b/solr/core/src/java/org/apache/solr/request/UnInvertedField.java@@ -456,7 +456,7 @@ public class UnInvertedField extends DocTermOrds {* @param baseDocs The {@link org.apache.solr.search.DocSet} to gather the stats on* @param facet One or more fields to facet on.* @return The {@link org.apache.solr.handler.component.StatsValues} collected- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public StatsValues getStats(SolrIndexSearcher searcher, DocSet baseDocs, String[] facet) throws IOException {//this function is ripped off nearly wholesale from the getCounts function to usediff --git a/solr/core/src/java/org/apache/solr/response/BinaryResponseWriter.java b/solr/core/src/java/org/apache/solr/response/BinaryResponseWriter.javaindex f38a2bdd14c..0c6668cdef5 100755--- a/solr/core/src/java/org/apache/solr/response/BinaryResponseWriter.java+++ b/solr/core/src/java/org/apache/solr/response/BinaryResponseWriter.java@@ -229,9 +229,6 @@ public class BinaryResponseWriter implements BinaryQueryResponseWriter {/*** TODO -- there may be a way to do this without marshal at all...*- * @param req- * @param rsp- ** @return a response object equivalent to what you get from the XML/JSON/javabin parser. Documents become* SolrDocuments, DocList becomes SolrDocumentList etc.*diff --git a/solr/core/src/java/org/apache/solr/response/transform/DocTransformer.java b/solr/core/src/java/org/apache/solr/response/transform/DocTransformer.javaindex 85d775fccc0..bcfba99e8ca 100644--- a/solr/core/src/java/org/apache/solr/response/transform/DocTransformer.java+++ b/solr/core/src/java/org/apache/solr/response/transform/DocTransformer.java@@ -53,7 +53,7 @@ public abstract class DocTransformer** @param doc The document to alter* @param docid The Lucene internal doc id- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public abstract void transform(SolrDocument doc, int docid) throws IOException;diff --git a/solr/core/src/java/org/apache/solr/schema/ExchangeRateProvider.java b/solr/core/src/java/org/apache/solr/schema/ExchangeRateProvider.javaindex cc558f3c1d8..b0745e91ebf 100644--- a/solr/core/src/java/org/apache/solr/schema/ExchangeRateProvider.java+++ b/solr/core/src/java/org/apache/solr/schema/ExchangeRateProvider.java@@ -28,9 +28,7 @@ import org.apache.solr.common.SolrException;public interface ExchangeRateProvider {/*** Get the exchange rate betwen the two given currencies- * @param sourceCurrencyCode- * @param targetCurrencyCode- * @return the exhange rate as a double+ * @return the exchange rate as a double* @throws SolrException if the rate is not defined in the provider*/public double getExchangeRate(String sourceCurrencyCode, String targetCurrencyCode) throws SolrException;diff --git a/solr/core/src/java/org/apache/solr/schema/FieldType.java b/solr/core/src/java/org/apache/solr/schema/FieldType.javaindex e0f138d7631..abe448a23c0 100644--- a/solr/core/src/java/org/apache/solr/schema/FieldType.java+++ b/solr/core/src/java/org/apache/solr/schema/FieldType.java@@ -568,7 +568,6 @@ public abstract class FieldType extends FieldProperties {* Sub-classes should override this method to provide their own range query implementation. They should strive to* handle nulls in part1 and/or part2 as well as unequal minInclusive and maxInclusive parameters gracefully.*- * @param parser* @param field the schema field* @param part1 the lower boundary of the range, nulls are allowed.* @param part2 the upper boundary of the range, nulls are alloweddiff --git a/solr/core/src/java/org/apache/solr/schema/IndexSchema.java b/solr/core/src/java/org/apache/solr/schema/IndexSchema.javaindex db6f8a56f82..bf5e3361718 100644--- a/solr/core/src/java/org/apache/solr/schema/IndexSchema.java+++ b/solr/core/src/java/org/apache/solr/schema/IndexSchema.java@@ -892,7 +892,6 @@ public final class IndexSchema {* not as a result of a copyField declaration with a wildcard? We* consider it explicitly defined if it matches a field or dynamicField* declaration.- * @param fieldName* @return true if explicitly declared in the schema.*/public boolean hasExplicitField(String fieldName) {@@ -909,7 +908,6 @@ public final class IndexSchema {/*** Is the specified field dynamic or not.- * @param fieldName* @return true if the specified field is dynamic*/public boolean isDynamicField(String fieldName) {@@ -1047,7 +1045,6 @@ public final class IndexSchema {/*** Get all copy fields, both the static and the dynamic ones.- * @param destField* @return Array of fields copied into this field*/@@ -1070,7 +1067,6 @@ public final class IndexSchema {/*** Get all copy fields for a specified source field, both static* and dynamic ones.- * @param sourceField* @return List of CopyFields to copy to.* @since solr 1.4*/@@ -1103,7 +1099,6 @@ public final class IndexSchema {/*** Is the given field name a wildcard? I.e. does it begin or end with *?- * @param name* @return true/false*/private static boolean isWildCard(String name) {diff --git a/solr/core/src/java/org/apache/solr/schema/PreAnalyzedField.java b/solr/core/src/java/org/apache/solr/schema/PreAnalyzedField.javaindex 41fcd13785f..ae7234eec73 100644--- a/solr/core/src/java/org/apache/solr/schema/PreAnalyzedField.java+++ b/solr/core/src/java/org/apache/solr/schema/PreAnalyzedField.java@@ -123,7 +123,7 @@ public class PreAnalyzedField extends FieldType {* class.* @param f field to convert* @return string that is compatible with the serialization format- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public String toFormattedString(Field f) throws IOException {return parser.toFormattedString(f);@@ -155,7 +155,7 @@ public class PreAnalyzedField extends FieldType {* Format a field so that the resulting String is valid for parsing with {@link #parse(Reader, AttributeSource)}.* @param f field instance* @return formatted string- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public String toFormattedString(Field f) throws IOException;}diff --git a/solr/core/src/java/org/apache/solr/search/ExtendedDismaxQParserPlugin.java b/solr/core/src/java/org/apache/solr/search/ExtendedDismaxQParserPlugin.javaindex c2ecc85eb94..12692dfa1bd 100755--- a/solr/core/src/java/org/apache/solr/search/ExtendedDismaxQParserPlugin.java+++ b/solr/core/src/java/org/apache/solr/search/ExtendedDismaxQParserPlugin.java@@ -413,9 +413,7 @@ class ExtendedDismaxQParser extends QParser {}/**- * Extracts all the alised fields from the requests and adds them to up- * @param up- * @param tiebreaker+ * Extracts all the aliased fields from the requests and adds them to up*/private void addAliasesFromRequest(ExtendedSolrQueryParser up, float tiebreaker) {Iterator<String> it = solrParams.getParameterNamesIterator();@@ -953,7 +951,6 @@ class ExtendedDismaxQParser extends QParser {/*** Returns the aliases found for a field.* Returns null if there are no aliases for the field- * @param field* @return Alias*/public Alias getAlias(String field) {diff --git a/solr/core/src/java/org/apache/solr/search/FunctionQParser.java b/solr/core/src/java/org/apache/solr/search/FunctionQParser.javaindex cf6443a62c5..0f0adc03559 100755--- a/solr/core/src/java/org/apache/solr/search/FunctionQParser.java+++ b/solr/core/src/java/org/apache/solr/search/FunctionQParser.java@@ -106,7 +106,6 @@ public class FunctionQParser extends QParser {* Are there more arguments in the argument list being parsed?** @return whether more args exist- * @throws ParseException*/public boolean hasMoreArguments() throws ParseException {int ch = sp.peek();@@ -114,10 +113,8 @@ public class FunctionQParser extends QParser {return (! (ch == 0 || ch == ')') );}- /**+ /** TODO: Doc- *- * @throws ParseException*/public String parseId() throws ParseException {String value = parseArg();@@ -129,7 +126,6 @@ public class FunctionQParser extends QParser {* Parse a float.** @return Float- * @throws ParseException*/public Float parseFloat() throws ParseException {String str = parseArg();@@ -141,7 +137,6 @@ public class FunctionQParser extends QParser {/*** Parse a Double* @return double- * @throws ParseException*/public double parseDouble() throws ParseException {String str = parseArg();@@ -153,7 +148,6 @@ public class FunctionQParser extends QParser {/*** Parse an integer* @return An int- * @throws ParseException*/public int parseInt() throws ParseException {String str = parseArg();@@ -214,7 +208,6 @@ public class FunctionQParser extends QParser {* to a ValueSource.** @return List<ValueSource>- * @throws ParseException*/public List<ValueSource> parseValueSourceList() throws ParseException {List<ValueSource> sources = new ArrayList<ValueSource>(3);@@ -226,18 +219,14 @@ public class FunctionQParser extends QParser {/*** Parse an individual ValueSource.- *- * @throws ParseException*/public ValueSource parseValueSource() throws ParseException {/* consume the delimiter afterward for an external call to parseValueSource */return parseValueSource(true);}- /**+ /** TODO: Doc- *- * @throws ParseException*/public Query parseNestedQuery() throws ParseException {Query nestedQuery;@@ -286,7 +275,6 @@ public class FunctionQParser extends QParser {* Parse an individual value source.** @param doConsumeDelimiter whether to consume a delimiter following the ValueSource- * @throws ParseException*/protected ValueSource parseValueSource(boolean doConsumeDelimiter) throws ParseException {ValueSource valueSource;@@ -390,7 +378,6 @@ public class FunctionQParser extends QParser {* Only consumes if more arguments should exist (no ending parens or end of string).** @return whether a delimiter was consumed- * @throws ParseException*/protected boolean consumeArgumentDelimiter() throws ParseException {/* if a list of args is ending, don't expect the comma */diff --git a/solr/core/src/java/org/apache/solr/search/Grouping.java b/solr/core/src/java/org/apache/solr/search/Grouping.javaindex c735dad3cd4..23599e3b6d7 100755--- a/solr/core/src/java/org/apache/solr/search/Grouping.java+++ b/solr/core/src/java/org/apache/solr/search/Grouping.java@@ -97,9 +97,6 @@ public class Grouping {public DocList mainResult; // output if one of the grouping commands should be used as the main result./**- * @param searcher- * @param qr- * @param cmd* @param cacheSecondPassSearch Whether to cache the documents and scores from the first pass search for the second* pass search.* @param maxDocsPercentageToCache The maximum number of documents in a percentage relative from maxdocdiff --git a/solr/core/src/java/org/apache/solr/search/QParser.java b/solr/core/src/java/org/apache/solr/search/QParser.javaindex 2eb3fe7c957..71f375a0f4e 100755--- a/solr/core/src/java/org/apache/solr/search/QParser.java+++ b/solr/core/src/java/org/apache/solr/search/QParser.java@@ -137,8 +137,6 @@ public abstract class QParser {/*** Returns the resulting query from this QParser, calling parse() only the* first time and caching the Query result.- *- * @throws ParseException*/public Query getQuery() throws ParseException {if (query==null) {diff --git a/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java b/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.javaindex c2d1445dc20..9fc411950d4 100644--- a/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java+++ b/solr/core/src/java/org/apache/solr/search/SolrIndexSearcher.java@@ -585,7 +585,6 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn* Returns -1 if no document was found.* This method is primarily intended for clients that want to fetch* documents using a unique identifier."- * @param t* @return the first document number containing the term*/public int getFirstMatch(Term t) throws IOException {@@ -1032,7 +1031,6 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn* If the answer was not cached, it may have been inserted into the cache as a result of this call.* <p>*- * @param query* @param filter may be null* @return DocSet meeting the specified criteria, should <b>not</b> be modified by the caller.*/@@ -1077,13 +1075,12 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn* <p>* FUTURE: The returned DocList may be retrieved from a cache.*- * @param query* @param filter may be null* @param lsort criteria by which to sort (if null, query relevance is used)* @param offset offset into the list of documents to return* @param len maximum number of documents to return* @return DocList meeting the specified criteria, should <b>not</b> be modified by the caller.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public DocList getDocList(Query query, Query filter, Sort lsort, int offset, int len) throws IOException {QueryCommand qc = new QueryCommand();@@ -1107,13 +1104,12 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn* <p>* FUTURE: The returned DocList may be retrieved from a cache.*- * @param query* @param filterList may be null* @param lsort criteria by which to sort (if null, query relevance is used)* @param offset offset into the list of documents to return* @param len maximum number of documents to return* @return DocList meeting the specified criteria, should <b>not</b> be modified by the caller.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public DocList getDocList(Query query, List<Query> filterList, Sort lsort, int offset, int len, int flags) throws IOException {QueryCommand qc = new QueryCommand();@@ -1554,13 +1550,12 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn* and sorted by <code>sort</code>.* FUTURE: The returned DocList may be retrieved from a cache.*- * @param query* @param filter may be null* @param lsort criteria by which to sort (if null, query relevance is used)* @param offset offset into the list of documents to return* @param len maximum number of documents to return* @return DocList meeting the specified criteria, should <b>not</b> be modified by the caller.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public DocList getDocList(Query query, DocSet filter, Sort lsort, int offset, int len) throws IOException {QueryCommand qc = new QueryCommand();@@ -1586,13 +1581,12 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn* <p>* The DocList and DocSet returned should <b>not</b> be modified.*- * @param query* @param filter may be null* @param lsort criteria by which to sort (if null, query relevance is used)* @param offset offset into the list of documents to return* @param len maximum number of documents to return* @return DocListAndSet meeting the specified criteria, should <b>not</b> be modified by the caller.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public DocListAndSet getDocListAndSet(Query query, Query filter, Sort lsort, int offset, int len) throws IOException {QueryCommand qc = new QueryCommand();@@ -1619,14 +1613,13 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn* <p>* The DocList and DocSet returned should <b>not</b> be modified.*- * @param query* @param filter may be null* @param lsort criteria by which to sort (if null, query relevance is used)* @param offset offset into the list of documents to return* @param len maximum number of documents to return* @param flags user supplied flags for the result set* @return DocListAndSet meeting the specified criteria, should <b>not</b> be modified by the caller.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public DocListAndSet getDocListAndSet(Query query, Query filter, Sort lsort, int offset, int len, int flags) throws IOException {QueryCommand qc = new QueryCommand();@@ -1657,13 +1650,12 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn* <p>* The DocList and DocSet returned should <b>not</b> be modified.*- * @param query* @param filterList may be null* @param lsort criteria by which to sort (if null, query relevance is used)* @param offset offset into the list of documents to return* @param len maximum number of documents to return* @return DocListAndSet meeting the specified criteria, should <b>not</b> be modified by the caller.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public DocListAndSet getDocListAndSet(Query query, List<Query> filterList, Sort lsort, int offset, int len) throws IOException {QueryCommand qc = new QueryCommand();@@ -1692,14 +1684,13 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn* <p>* The DocList and DocSet returned should <b>not</b> be modified.*- * @param query* @param filterList may be null* @param lsort criteria by which to sort (if null, query relevance is used)* @param offset offset into the list of documents to return* @param len maximum number of documents to return* @param flags user supplied flags for the result set* @return DocListAndSet meeting the specified criteria, should <b>not</b> be modified by the caller.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public DocListAndSet getDocListAndSet(Query query, List<Query> filterList, Sort lsort, int offset, int len, int flags) throws IOException {QueryCommand qc = new QueryCommand();@@ -1722,13 +1713,12 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn* <p>* FUTURE: The returned DocList may be retrieved from a cache.*- * @param query* @param filter may be null* @param lsort criteria by which to sort (if null, query relevance is used)* @param offset offset into the list of documents to return* @param len maximum number of documents to return* @return DocListAndSet meeting the specified criteria, should <b>not</b> be modified by the caller.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public DocListAndSet getDocListAndSet(Query query, DocSet filter, Sort lsort, int offset, int len) throws IOException {QueryCommand qc = new QueryCommand();@@ -1755,14 +1745,13 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn* <p>* The DocList and DocSet returned should <b>not</b> be modified.*- * @param query* @param filter may be null* @param lsort criteria by which to sort (if null, query relevance is used)* @param offset offset into the list of documents to return* @param len maximum number of documents to return* @param flags user supplied flags for the result set* @return DocListAndSet meeting the specified criteria, should <b>not</b> be modified by the caller.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public DocListAndSet getDocListAndSet(Query query, DocSet filter, Sort lsort, int offset, int len, int flags) throws IOException {QueryCommand qc = new QueryCommand();@@ -1826,10 +1815,8 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn* <p>* This method is cache-aware and may check as well as modify the cache.*- * @param a- * @param b- * @return the numer of documents in the intersection between <code>a</code> and <code>b</code>.- * @throws IOException+ * @return the number of documents in the intersection between <code>a</code> and <code>b</code>.+ * @throws IOException If there is a low-level I/O error.*/public int numDocs(Query a, DocSet b) throws IOException {// Negative query if absolute value different from original@@ -1860,10 +1847,8 @@ public class SolrIndexSearcher extends IndexSearcher implements Closeable,SolrIn* <p>* This method is cache-aware and may check as well as modify the cache.*- * @param a- * @param b- * @return the numer of documents in the intersection between <code>a</code> and <code>b</code>.- * @throws IOException+ * @return the number of documents in the intersection between <code>a</code> and <code>b</code>.+ * @throws IOException If there is a low-level I/O error.*/public int numDocs(Query a, Query b) throws IOException {Query absA = QueryUtils.getAbs(a);diff --git a/solr/core/src/java/org/apache/solr/search/ValueSourceParser.java b/solr/core/src/java/org/apache/solr/search/ValueSourceParser.javaindex 68e7a882188..c1374e9e9c3 100755--- a/solr/core/src/java/org/apache/solr/search/ValueSourceParser.java+++ b/solr/core/src/java/org/apache/solr/search/ValueSourceParser.java@@ -60,9 +60,6 @@ public abstract class ValueSourceParser implements NamedListInitializedPlugin {/*** Parse the user input into a ValueSource.- *- * @param fp- * @throws ParseException*/public abstract ValueSource parse(FunctionQParser fp) throws ParseException;diff --git a/solr/core/src/java/org/apache/solr/search/function/distance/HaversineFunction.java b/solr/core/src/java/org/apache/solr/search/function/distance/HaversineFunction.javaindex c5013d36cc5..7484a2a6ddb 100644--- a/solr/core/src/java/org/apache/solr/search/function/distance/HaversineFunction.java+++ b/solr/core/src/java/org/apache/solr/search/function/distance/HaversineFunction.java@@ -66,8 +66,6 @@ public class HaversineFunction extends ValueSource {/*** @param doc The doc to score- * @param p1DV- * @param p2DV* @return The haversine distance formula*/protected double distance(int doc, FunctionValues p1DV, FunctionValues p2DV) {diff --git a/solr/core/src/java/org/apache/solr/search/function/distance/StringDistanceFunction.java b/solr/core/src/java/org/apache/solr/search/function/distance/StringDistanceFunction.javaindex ef5dc407434..f0bd4903fe8 100644--- a/solr/core/src/java/org/apache/solr/search/function/distance/StringDistanceFunction.java+++ b/solr/core/src/java/org/apache/solr/search/function/distance/StringDistanceFunction.java@@ -35,11 +35,6 @@ public class StringDistanceFunction extends ValueSource {protected ValueSource str1, str2;protected StringDistance dist;- /**- * @param str1- * @param str2- * @param measure- */public StringDistanceFunction(ValueSource str1, ValueSource str2, StringDistance measure) {this.str1 = str1;this.str2 = str2;diff --git a/solr/core/src/java/org/apache/solr/servlet/cache/HttpCacheHeaderUtil.java b/solr/core/src/java/org/apache/solr/servlet/cache/HttpCacheHeaderUtil.javaindex 2643682429f..1e6b6b853f8 100644--- a/solr/core/src/java/org/apache/solr/servlet/cache/HttpCacheHeaderUtil.java+++ b/solr/core/src/java/org/apache/solr/servlet/cache/HttpCacheHeaderUtil.java@@ -91,7 +91,6 @@ public final class HttpCacheHeaderUtil {/*** Calculates a tag for the ETag header.*- * @param solrReq* @return a tag*/public static String calcEtag(final SolrQueryRequest solrReq) {@@ -139,7 +138,6 @@ public final class HttpCacheHeaderUtil {/*** Calculate the appropriate last-modified time for Solr relative the current request.*- * @param solrReq* @return the timestamp to use as a last modified time.*/public static long calcLastModified(final SolrQueryRequest solrReq) {diff --git a/solr/core/src/java/org/apache/solr/spelling/AbstractLuceneSpellChecker.java b/solr/core/src/java/org/apache/solr/spelling/AbstractLuceneSpellChecker.javaindex eac1af9eb93..238673e7a34 100644--- a/solr/core/src/java/org/apache/solr/spelling/AbstractLuceneSpellChecker.java+++ b/solr/core/src/java/org/apache/solr/spelling/AbstractLuceneSpellChecker.java@@ -224,7 +224,7 @@ public abstract class AbstractLuceneSpellChecker extends SolrSpellChecker {/*** Initialize the {@link #index} variable based on the {@link #indexDir}. Does not actually create the spelling index.*- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/protected void initIndex() throws IOException {if (indexDir != null) {diff --git a/solr/core/src/java/org/apache/solr/spelling/PossibilityIterator.java b/solr/core/src/java/org/apache/solr/spelling/PossibilityIterator.javaindex 54f5780f523..c56d427c50f 100644--- a/solr/core/src/java/org/apache/solr/spelling/PossibilityIterator.java+++ b/solr/core/src/java/org/apache/solr/spelling/PossibilityIterator.java@@ -63,8 +63,6 @@ public class PossibilityIterator implements* We assume here that the passed-in inner LinkedHashMaps are already sorted* in order of "Best Possible Correction".* </p>- *- * @param suggestions*/public PossibilityIterator(Map<Token,LinkedHashMap<String,Integer>> suggestions,diff --git a/solr/core/src/java/org/apache/solr/spelling/QueryConverter.java b/solr/core/src/java/org/apache/solr/spelling/QueryConverter.javaindex 03ca029cf16..1cd265f8ec7 100644--- a/solr/core/src/java/org/apache/solr/spelling/QueryConverter.java+++ b/solr/core/src/java/org/apache/solr/spelling/QueryConverter.java@@ -81,8 +81,7 @@ public abstract class QueryConverter implements NamedListInitializedPlugin {}/**- * @param original- * @return The Collection of {@link org.apache.lucene.analysis.Token}s for+ * Returns the Collection of {@link org.apache.lucene.analysis.Token}s for* the query. Offsets on the Token should correspond to the correct* offset in the origQuery*/@@ -90,8 +89,6 @@ public abstract class QueryConverter implements NamedListInitializedPlugin {/*** Set the analyzer to use. Must be set before any calls to convert.- *- * @param analyzer*/public void setAnalyzer(Analyzer analyzer) {this.analyzer = analyzer;diff --git a/solr/core/src/java/org/apache/solr/spelling/SolrSpellChecker.java b/solr/core/src/java/org/apache/solr/spelling/SolrSpellChecker.javaindex b369dedcf61..baf03a3f090 100644--- a/solr/core/src/java/org/apache/solr/spelling/SolrSpellChecker.java+++ b/solr/core/src/java/org/apache/solr/spelling/SolrSpellChecker.java@@ -78,11 +78,6 @@ public abstract class SolrSpellChecker {}/*** Integrate spelling suggestions from the various shards in a distributed environment.- *- * @param mergeData- * @param numSug- * @param count- * @param extendedResults*/public SpellingResult mergeSuggestions(SpellCheckMergeData mergeData, int numSug, int count, boolean extendedResults) {float min = 0.5f;@@ -160,7 +155,7 @@ public abstract class SolrSpellChecker {/*** Reloads the index. Useful if an external process is responsible for building the spell checker.*- * @throws java.io.IOException+ * @throws IOException If there is a low-level I/O error.*/public abstract void reload(SolrCore core, SolrIndexSearcher searcher) throws IOException;diff --git a/solr/core/src/java/org/apache/solr/update/PeerSync.java b/solr/core/src/java/org/apache/solr/update/PeerSync.javaindex d317f26a95b..4dd040fa575 100644--- a/solr/core/src/java/org/apache/solr/update/PeerSync.java+++ b/solr/core/src/java/org/apache/solr/update/PeerSync.java@@ -131,12 +131,6 @@ public class PeerSync {this(core, replicas, nUpdates, false);}- /**- *- * @param core- * @param replicas- * @param nUpdates- */public PeerSync(SolrCore core, List<String> replicas, int nUpdates, boolean cantReachIsSuccess) {this.replicas = replicas;this.nUpdates = nUpdates;diff --git a/solr/core/src/java/org/apache/solr/update/SolrCoreState.java b/solr/core/src/java/org/apache/solr/update/SolrCoreState.javaindex 398a407bc72..82ba3cd1ce9 100644--- a/solr/core/src/java/org/apache/solr/update/SolrCoreState.java+++ b/solr/core/src/java/org/apache/solr/update/SolrCoreState.java@@ -41,9 +41,8 @@ public abstract class SolrCoreState {* Force the creation of a new IndexWriter using the settings from the given* SolrCore.*- * @param core* @param rollback close IndexWriter if false, else rollback- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public abstract void newIndexWriter(SolrCore core, boolean rollback) throws IOException;@@ -51,7 +50,7 @@ public abstract class SolrCoreState {* Get the current IndexWriter. If a new IndexWriter must be created, use the* settings from the given {@link SolrCore}.*- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public abstract RefCounted<IndexWriter> getIndexWriter(SolrCore core) throws IOException;@@ -60,7 +59,7 @@ public abstract class SolrCoreState {* references hits 0, the state will close. If an optional closer is* passed, that will be used to close the writer.*- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public abstract void decref(IndexWriterCloser closer) throws IOException;@@ -73,8 +72,7 @@ public abstract class SolrCoreState {* Rollback the current IndexWriter. When creating the new IndexWriter use the* settings from the given {@link SolrCore}.*- * @param core- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public abstract void rollbackIndexWriter(SolrCore core) throws IOException;diff --git a/solr/core/src/java/org/apache/solr/update/TransactionLog.java b/solr/core/src/java/org/apache/solr/update/TransactionLog.javaindex 39ef39d6fc5..8d5f0e7ddfd 100644--- a/solr/core/src/java/org/apache/solr/update/TransactionLog.java+++ b/solr/core/src/java/org/apache/solr/update/TransactionLog.java@@ -585,7 +585,7 @@ public class TransactionLog {/** Returns the next object from the log, or null if none available.** @return The log record, or null if EOF- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public Object next() throws IOException, InterruptedException {long pos = fis.position();@@ -674,7 +674,7 @@ public class TransactionLog {/** Returns the next object from the log, or null if none available.** @return The log record, or null if EOF- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public Object next() throws IOException {if (prevPos <= 0) return null;diff --git a/solr/core/src/java/org/apache/solr/update/UpdateHandler.java b/solr/core/src/java/org/apache/solr/update/UpdateHandler.javaindex 2f7dc1c437f..f454929fd56 100644--- a/solr/core/src/java/org/apache/solr/update/UpdateHandler.java+++ b/solr/core/src/java/org/apache/solr/update/UpdateHandler.java@@ -129,7 +129,7 @@ public abstract class UpdateHandler implements SolrInfoMBean {** @param rollback IndexWriter if true else close*- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public abstract void newIndexWriter(boolean rollback) throws IOException;diff --git a/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java b/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.javaindex 33eaa0f3141..48e79466c43 100644--- a/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java+++ b/solr/core/src/java/org/apache/solr/update/processor/DistributedUpdateProcessor.java@@ -437,9 +437,8 @@ public class DistributedUpdateProcessor extends UpdateRequestProcessor {}/**- * @param cmd* @return whether or not to drop this cmd- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/private boolean versionAdd(AddUpdateCommand cmd) throws IOException {BytesRef idBytes = cmd.getIndexedId();diff --git a/solr/core/src/java/org/apache/solr/util/SimplePostTool.java b/solr/core/src/java/org/apache/solr/util/SimplePostTool.javaindex edf8f67e904..82010d7b4df 100644--- a/solr/core/src/java/org/apache/solr/util/SimplePostTool.java+++ b/solr/core/src/java/org/apache/solr/util/SimplePostTool.java@@ -585,7 +585,7 @@ public class SimplePostTool {* Reads an input stream into a byte array* @param is the input stream* @return the byte array- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/protected byte[] inputStreamToByteArray(InputStream is) throws IOException {ByteArrayOutputStream bos = new ByteArrayOutputStream();@@ -761,7 +761,6 @@ public class SimplePostTool {* @param url the URL* @param append the path to append* @return the final URL version- * @throws MalformedURLException*/protected static URL appendUrlPath(URL url, String append) throws MalformedURLException {return new URL(url.getProtocol() + "://" + url.getAuthority() + url.getPath() + append + (url.getQuery() != null ? "?"+url.getQuery() : ""));diff --git a/solr/core/src/java/org/apache/solr/util/xslt/TransformerProvider.java b/solr/core/src/java/org/apache/solr/util/xslt/TransformerProvider.javaindex 686d2d3bf1f..527d15e65fd 100644--- a/solr/core/src/java/org/apache/solr/util/xslt/TransformerProvider.java+++ b/solr/core/src/java/org/apache/solr/util/xslt/TransformerProvider.java@@ -64,7 +64,7 @@ public class TransformerProvider {}/** Return a new Transformer, possibly created from our cached Templates object- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public synchronized Transformer getTransformer(SolrConfig solrConfig, String filename,int cacheLifetimeSeconds) throws IOException {// For now, the Templates are blindly reloaded once cacheExpires is over.diff --git a/solr/core/src/test/org/apache/solr/core/AlternateDirectoryTest.java b/solr/core/src/test/org/apache/solr/core/AlternateDirectoryTest.javaindex 5cfa9bcdd69..5dd62ae0c34 100755--- a/solr/core/src/test/org/apache/solr/core/AlternateDirectoryTest.java+++ b/solr/core/src/test/org/apache/solr/core/AlternateDirectoryTest.java@@ -33,8 +33,6 @@ public class AlternateDirectoryTest extends SolrTestCaseJ4 {/*** Simple test to ensure that alternate IndexReaderFactory is being used.- *- * @throws Exception*/@Testpublic void testAltDirectoryUsed() throws Exception {diff --git a/solr/core/src/test/org/apache/solr/core/IndexReaderFactoryTest.java b/solr/core/src/test/org/apache/solr/core/IndexReaderFactoryTest.javaindex c4daa5dd820..b5ac80162ec 100644--- a/solr/core/src/test/org/apache/solr/core/IndexReaderFactoryTest.java+++ b/solr/core/src/test/org/apache/solr/core/IndexReaderFactoryTest.java@@ -32,8 +32,6 @@ public class IndexReaderFactoryTest extends AbstractSolrTestCase {/*** Simple test to ensure that alternate IndexReaderFactory is being used.- *- * @throws Exception*/public void testAltReaderUsed() throws Exception {IndexReaderFactory readerFactory = h.getCore().getIndexReaderFactory();diff --git a/solr/core/src/test/org/apache/solr/spelling/FileBasedSpellCheckerTest.java b/solr/core/src/test/org/apache/solr/spelling/FileBasedSpellCheckerTest.javaindex 616b0f0b4ce..dc8ba81e3a3 100644--- a/solr/core/src/test/org/apache/solr/spelling/FileBasedSpellCheckerTest.java+++ b/solr/core/src/test/org/apache/solr/spelling/FileBasedSpellCheckerTest.java@@ -138,7 +138,6 @@ public class FileBasedSpellCheckerTest extends SolrTestCaseJ4 {/*** No indexDir location set- * @throws Exception*/@Testpublic void testRAMDirectory() throws Exception {diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java b/solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.javaindex 5f2a1c4af7f..4bda6bd7579 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java@@ -742,11 +742,8 @@ public class SolrQuery extends ModifiableSolrParams}/**- * @see ModifiableSolrParams#set(String,String[])- * @param name- * @param values- ** @return this+ * @see ModifiableSolrParams#set(String,String[])*/public SolrQuery setParam(String name, String ... values) {this.set(name, values);@@ -754,10 +751,8 @@ public class SolrQuery extends ModifiableSolrParams}/**- * @see org.apache.solr.common.params.ModifiableSolrParams#set(String, boolean)- * @param name- * @param value* @return this+ * @see org.apache.solr.common.params.ModifiableSolrParams#set(String, boolean)*/public SolrQuery setParam(String name, boolean value) {this.set(name, value);diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/SolrServer.java b/solr/solrj/src/java/org/apache/solr/client/solrj/SolrServer.javaindex e4fc893ab5d..dcb0c83835d 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/SolrServer.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/SolrServer.java@@ -48,8 +48,7 @@ public abstract class SolrServer implements Serializable/*** Adds a collection of documents* @param docs the collection of documents- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public UpdateResponse add(Collection<SolrInputDocument> docs) throws SolrServerException, IOException {return add(docs, -1);@@ -59,8 +58,7 @@ public abstract class SolrServer implements Serializable* Adds a collection of documents, specifying max time before they become committed* @param docs the collection of documents* @param commitWithinMs max time (in ms) before a commit will happen- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.* @since solr 3.5*/public UpdateResponse add(Collection<SolrInputDocument> docs, int commitWithinMs) throws SolrServerException, IOException {@@ -73,8 +71,7 @@ public abstract class SolrServer implements Serializable/*** Adds a collection of beans* @param beans the collection of beans- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public UpdateResponse addBeans(Collection<?> beans ) throws SolrServerException, IOException {return addBeans(beans, -1);@@ -84,8 +81,7 @@ public abstract class SolrServer implements Serializable* Adds a collection of beans specifying max time before they become committed* @param beans the collection of beans* @param commitWithinMs max time (in ms) before a commit will happen- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.* @since solr 3.5*/public UpdateResponse addBeans(Collection<?> beans, int commitWithinMs) throws SolrServerException, IOException {@@ -100,8 +96,7 @@ public abstract class SolrServer implements Serializable/*** Adds a single document* @param doc the input document- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public UpdateResponse add(SolrInputDocument doc ) throws SolrServerException, IOException {return add(doc, -1);@@ -111,8 +106,7 @@ public abstract class SolrServer implements Serializable* Adds a single document specifying max time before it becomes committed* @param doc the input document* @param commitWithinMs max time (in ms) before a commit will happen- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.* @since solr 3.5*/public UpdateResponse add(SolrInputDocument doc, int commitWithinMs) throws SolrServerException, IOException {@@ -125,8 +119,7 @@ public abstract class SolrServer implements Serializable/*** Adds a single bean* @param obj the input bean- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public UpdateResponse addBean(Object obj) throws IOException, SolrServerException {return addBean(obj, -1);@@ -136,8 +129,7 @@ public abstract class SolrServer implements Serializable* Adds a single bean specifying max time before it becomes committed* @param obj the input bean* @param commitWithinMs max time (in ms) before a commit will happen- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.* @since solr 3.5*/public UpdateResponse addBean(Object obj, int commitWithinMs) throws IOException, SolrServerException {@@ -148,8 +140,7 @@ public abstract class SolrServer implements Serializable* Performs an explicit commit, causing pending documents to be committed for indexing* <p>* waitFlush=true and waitSearcher=true to be inline with the defaults for plain HTTP access- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public UpdateResponse commit( ) throws SolrServerException, IOException {return commit(true, true);@@ -161,8 +152,7 @@ public abstract class SolrServer implements Serializable* waitFlush=true and waitSearcher=true to be inline with the defaults for plain HTTP access* <p>* Note: In most cases it is not required to do explicit optimize- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public UpdateResponse optimize( ) throws SolrServerException, IOException {return optimize(true, true, 1);@@ -172,8 +162,7 @@ public abstract class SolrServer implements Serializable* Performs an explicit commit, causing pending documents to be committed for indexing* @param waitFlush block until index changes are flushed to disk* @param waitSearcher block until a new searcher is opened and registered as the main query searcher, making the changes visible- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public UpdateResponse commit( boolean waitFlush, boolean waitSearcher ) throws SolrServerException, IOException {return new UpdateRequest().setAction( UpdateRequest.ACTION.COMMIT, waitFlush, waitSearcher ).process( this );@@ -184,8 +173,7 @@ public abstract class SolrServer implements Serializable* @param waitFlush block until index changes are flushed to disk* @param waitSearcher block until a new searcher is opened and registered as the main query searcher, making the changes visible* @param softCommit makes index changes visible while neither fsync-ing index files nor writing a new index descriptor- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public UpdateResponse commit( boolean waitFlush, boolean waitSearcher, boolean softCommit ) throws SolrServerException, IOException {return new UpdateRequest().setAction( UpdateRequest.ACTION.COMMIT, waitFlush, waitSearcher, softCommit ).process( this );@@ -197,8 +185,7 @@ public abstract class SolrServer implements Serializable* Note: In most cases it is not required to do explicit optimize* @param waitFlush block until index changes are flushed to disk* @param waitSearcher block until a new searcher is opened and registered as the main query searcher, making the changes visible- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public UpdateResponse optimize( boolean waitFlush, boolean waitSearcher ) throws SolrServerException, IOException {return optimize(waitFlush, waitSearcher, 1);@@ -211,8 +198,7 @@ public abstract class SolrServer implements Serializable* @param waitFlush block until index changes are flushed to disk* @param waitSearcher block until a new searcher is opened and registered as the main query searcher, making the changes visible* @param maxSegments optimizes down to at most this number of segments- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public UpdateResponse optimize(boolean waitFlush, boolean waitSearcher, int maxSegments ) throws SolrServerException, IOException {return new UpdateRequest().setAction( UpdateRequest.ACTION.OPTIMIZE, waitFlush, waitSearcher, maxSegments ).process( this );@@ -224,8 +210,7 @@ public abstract class SolrServer implements Serializable* Note that this is not a true rollback as in databases. Content you have previously* added may have been committed due to autoCommit, buffer full, other client performing* a commit etc.- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public UpdateResponse rollback() throws SolrServerException, IOException {return new UpdateRequest().rollback().process( this );@@ -234,8 +219,7 @@ public abstract class SolrServer implements Serializable/*** Deletes a single document by unique ID* @param id the ID of the document to delete- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public UpdateResponse deleteById(String id) throws SolrServerException, IOException {return deleteById(id, -1);@@ -245,8 +229,7 @@ public abstract class SolrServer implements Serializable* Deletes a single document by unique ID, specifying max time before commit* @param id the ID of the document to delete* @param commitWithinMs max time (in ms) before a commit will happen- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.* @since 3.6*/public UpdateResponse deleteById(String id, int commitWithinMs) throws SolrServerException, IOException {@@ -259,8 +242,7 @@ public abstract class SolrServer implements Serializable/*** Deletes a list of documents by unique ID* @param ids the list of document IDs to delete- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public UpdateResponse deleteById(List<String> ids) throws SolrServerException, IOException {return deleteById(ids, -1);@@ -270,8 +252,7 @@ public abstract class SolrServer implements Serializable* Deletes a list of documents by unique ID, specifying max time before commit* @param ids the list of document IDs to delete* @param commitWithinMs max time (in ms) before a commit will happen- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.* @since 3.6*/public UpdateResponse deleteById(List<String> ids, int commitWithinMs) throws SolrServerException, IOException {@@ -284,8 +265,7 @@ public abstract class SolrServer implements Serializable/*** Deletes documents from the index based on a query* @param query the query expressing what documents to delete- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public UpdateResponse deleteByQuery(String query) throws SolrServerException, IOException {return deleteByQuery(query, -1);@@ -295,8 +275,7 @@ public abstract class SolrServer implements Serializable* Deletes documents from the index based on a query, specifying max time before commit* @param query the query expressing what documents to delete* @param commitWithinMs max time (in ms) before a commit will happen- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.* @since 3.6*/public UpdateResponse deleteByQuery(String query, int commitWithinMs) throws SolrServerException, IOException {@@ -308,8 +287,7 @@ public abstract class SolrServer implements Serializable/*** Issues a ping request to check if the server is alive- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public SolrPingResponse ping() throws SolrServerException, IOException {return new SolrPing().process( this );@@ -318,7 +296,6 @@ public abstract class SolrServer implements Serializable/*** Performs a query to the Solr server* @param params an object holding all key/value parameters to send along the request- * @throws SolrServerException*/public QueryResponse query(SolrParams params) throws SolrServerException {return new QueryRequest( params ).process( this );@@ -328,7 +305,6 @@ public abstract class SolrServer implements Serializable* Performs a query to the Solr server* @param params an object holding all key/value parameters to send along the request* @param method specifies the HTTP method to use for the request, such as GET or POST- * @throws SolrServerException*/public QueryResponse query(SolrParams params, METHOD method) throws SolrServerException {return new QueryRequest( params, method ).process( this );diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.javaindex f02521b23cd..98b9de18f0e 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/HttpSolrServer.java@@ -166,8 +166,7 @@ public class HttpSolrServer extends SolrServer {* @param request* The {@link org.apache.solr.client.solrj.SolrRequest} to process* @return The {@link org.apache.solr.common.util.NamedList} result- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.** @see #request(org.apache.solr.client.solrj.SolrRequest,* org.apache.solr.client.solrj.ResponseParser)diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBHttpSolrServer.java b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBHttpSolrServer.javaindex bc124d9ea53..6b6b8cb47e1 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBHttpSolrServer.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/impl/LBHttpSolrServer.java@@ -230,8 +230,7 @@ public class LBHttpSolrServer extends SolrServer {** @return the result of the request*- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public Rsp request(Req req) throws SolrServerException, IOException {Rsp rsp = new Rsp();@@ -419,8 +418,7 @@ public class LBHttpSolrServer extends SolrServer {** @return response*- * @throws SolrServerException- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/@Overridepublic NamedList<Object> request(final SolrRequest request)diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/util/ClientUtils.java b/solr/solrj/src/java/org/apache/solr/client/solrj/util/ClientUtils.javaindex a024e068893..1cfdc6cf37e 100644--- a/solr/solrj/src/java/org/apache/solr/client/solrj/util/ClientUtils.java+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/util/ClientUtils.java@@ -163,7 +163,6 @@ public class ClientUtils/*** Returns a formatter that can be use by the current thread if needed to* convert Date objects to the Internal representation.- * @throws ParseException** @deprecated Use {@link org.apache.solr.common.util.DateUtil#parseDate(String)}*/diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java b/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.javaindex 8c541e442df..ba20e0c4b49 100644--- a/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java@@ -59,9 +59,6 @@ public class ClusterState implements JSONWriter.Writable {* Use this constr when ClusterState is meant for publication.** hashCode and equals will only depend on liveNodes and not clusterStateVersion.- *- * @param liveNodes- * @param collectionStates*/public ClusterState(Set<String> liveNodes,Map<String, Map<String,Slice>> collectionStates) {@@ -70,10 +67,6 @@ public class ClusterState implements JSONWriter.Writable {/*** Use this constr when ClusterState is meant for consumption.- *- * @param zkClusterStateVersion- * @param liveNodes- * @param collectionStates*/public ClusterState(Integer zkClusterStateVersion, Set<String> liveNodes,Map<String, Map<String,Slice>> collectionStates) {diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/HashPartitioner.java b/solr/solrj/src/java/org/apache/solr/common/cloud/HashPartitioner.javaindex 8741b61e2fa..92610b67e35 100644--- a/solr/solrj/src/java/org/apache/solr/common/cloud/HashPartitioner.java+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/HashPartitioner.java@@ -89,9 +89,7 @@ public class HashPartitioner {}/**- *- * @param partitions- * @return Range for each partition+ * Returns the range for each partition*/public List<Range> partitionRange(int partitions, int min, int max) {assert max >= min;diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.java b/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.javaindex c2227165828..ed7dfbf38ac 100644--- a/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.java+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.java@@ -75,10 +75,6 @@ public class SolrZkClient {private volatile boolean isClosed = false;private ZkClientConnectionStrategy zkClientConnectionStrategy;- /**- * @param zkServerAddress- * @param zkClientTimeout- */public SolrZkClient(String zkServerAddress, int zkClientTimeout) {this(zkServerAddress, zkClientTimeout, new DefaultConnectionStrategy(), null);}@@ -87,24 +83,11 @@ public class SolrZkClient {this(zkServerAddress, zkClientTimeout, new DefaultConnectionStrategy(), onReonnect, zkClientConnectTimeout);}- /**- * @param zkServerAddress- * @param zkClientTimeout- * @param strat- * @param onReconnect- */public SolrZkClient(String zkServerAddress, int zkClientTimeout,ZkClientConnectionStrategy strat, final OnReconnect onReconnect) {this(zkServerAddress, zkClientTimeout, strat, onReconnect, DEFAULT_CLIENT_CONNECT_TIMEOUT);}- /**- * @param zkServerAddress- * @param zkClientTimeout- * @param strat- * @param onReconnect- * @param clientConnectTimeout- */public SolrZkClient(String zkServerAddress, int zkClientTimeout,ZkClientConnectionStrategy strat, final OnReconnect onReconnect, int clientConnectTimeout) {this.zkClientConnectionStrategy = strat;@@ -146,19 +129,12 @@ public class SolrZkClient {}/**- * @return true if client is connected+ * Returns true if client is connected*/public boolean isConnected() {return keeper != null && keeper.getState() == ZooKeeper.States.CONNECTED;}- /**- * @param path- * @param version- * @param retryOnConnLoss- * @throws InterruptedException- * @throws KeeperException- */public void delete(final String path, final int version, boolean retryOnConnLoss)throws InterruptedException, KeeperException {if (retryOnConnLoss) {@@ -185,7 +161,6 @@ public class SolrZkClient {** @param path the node path* @param watcher explicit watcher- * @param retryOnConnLoss* @return the stat of the node of the given path; return null if no such a* node exists.* @throws KeeperException If the server signals an error@@ -207,11 +182,7 @@ public class SolrZkClient {}/**- * @param path- * @return true if path exists- * @param retryOnConnLoss- * @throws KeeperException- * @throws InterruptedException+ * Returns true if path exists*/public Boolean exists(final String path, boolean retryOnConnLoss)throws KeeperException, InterruptedException {@@ -228,14 +199,7 @@ public class SolrZkClient {}/**- * @param path- * @param data- * @param acl- * @param createMode- * @param retryOnConnLoss- * @return path of created node- * @throws KeeperException- * @throws InterruptedException+ * Returns path of created node*/public String create(final String path, final byte data[], final List<ACL> acl,final CreateMode createMode, boolean retryOnConnLoss) throws KeeperException, InterruptedException {@@ -252,12 +216,7 @@ public class SolrZkClient {}/**- * @param path- * @param watcher- * @param retryOnConnLoss- * @return children of the node at the path- * @throws KeeperException- * @throws InterruptedException+ * Returns children of the node at the path*/public List<String> getChildren(final String path, final Watcher watcher, boolean retryOnConnLoss)throws KeeperException, InterruptedException {@@ -274,13 +233,7 @@ public class SolrZkClient {}/**- * @param path- * @param watcher- * @param stat- * @param retryOnConnLoss- * @return node's data- * @throws KeeperException- * @throws InterruptedException+ * Returns node's data*/public byte[] getData(final String path, final Watcher watcher, final Stat stat, boolean retryOnConnLoss)throws KeeperException, InterruptedException {@@ -297,13 +250,7 @@ public class SolrZkClient {}/**- * @param path- * @param data- * @param version- * @param retryOnConnLoss- * @return node's state- * @throws KeeperException- * @throws InterruptedException+ * Returns node's state*/public Stat setData(final String path, final byte data[], final int version, boolean retryOnConnLoss)throws KeeperException, InterruptedException {@@ -320,14 +267,7 @@ public class SolrZkClient {}/**- *- * @param path- * @param data- * @param createMode- * @return path of created node- * @param retryOnConnLoss- * @throws KeeperException- * @throws InterruptedException+ * Returns path of created node*/public String create(final String path, final byte[] data,final CreateMode createMode, boolean retryOnConnLoss) throws KeeperException,@@ -350,11 +290,6 @@ public class SolrZkClient {** e.g. If <code>path=/solr/group/node</code> and none of the nodes, solr,* group, node exist, each will be created.- *- * @param path- * @param retryOnConnLoss- * @throws KeeperException- * @throws InterruptedException*/public void makePath(String path, boolean retryOnConnLoss) throws KeeperException,InterruptedException {@@ -385,11 +320,7 @@ public class SolrZkClient {/*** Creates the path in ZooKeeper, creating each node as necessary.*- * @param path* @param data to set on the last zkNode- * @param retryOnConnLoss- * @throws KeeperException- * @throws InterruptedException*/public void makePath(String path, byte[] data, boolean retryOnConnLoss) throws KeeperException,InterruptedException {@@ -402,12 +333,7 @@ public class SolrZkClient {* e.g. If <code>path=/solr/group/node</code> and none of the nodes, solr,* group, node exist, each will be created.*- * @param path* @param data to set on the last zkNode- * @param createMode- * @param retryOnConnLoss- * @throws KeeperException- * @throws InterruptedException*/public void makePath(String path, byte[] data, CreateMode createMode, boolean retryOnConnLoss)throws KeeperException, InterruptedException {@@ -420,13 +346,7 @@ public class SolrZkClient {* e.g. If <code>path=/solr/group/node</code> and none of the nodes, solr,* group, node exist, each will be created.*- * @param path* @param data to set on the last zkNode- * @param createMode- * @param watcher- * @param retryOnConnLoss- * @throws KeeperException- * @throws InterruptedException*/public void makePath(String path, byte[] data, CreateMode createMode,Watcher watcher, boolean retryOnConnLoss) throws KeeperException, InterruptedException {@@ -443,15 +363,6 @@ public class SolrZkClient {** Note: retryOnConnLoss is only respected for the final node - nodes* before that are always retried on connection loss.- *- * @param path- * @param data- * @param createMode- * @param watcher- * @param failOnExists- * @param retryOnConnLoss- * @throws KeeperException- * @throws InterruptedException*/public void makePath(String path, byte[] data, CreateMode createMode,Watcher watcher, boolean failOnExists, boolean retryOnConnLoss) throws KeeperException, InterruptedException {@@ -520,14 +431,6 @@ public class SolrZkClient {}}- /**- * @param zkPath- * @param createMode- * @param watcher- * @param retryOnConnLoss- * @throws KeeperException- * @throws InterruptedException- */public void makePath(String zkPath, CreateMode createMode, Watcher watcher, boolean retryOnConnLoss)throws KeeperException, InterruptedException {makePath(zkPath, null, createMode, watcher, retryOnConnLoss);@@ -535,12 +438,6 @@ public class SolrZkClient {/*** Write data to ZooKeeper.- *- * @param path- * @param data- * @param retryOnConnLoss- * @throws KeeperException- * @throws InterruptedException*/public void setData(String path, byte[] data, boolean retryOnConnLoss) throws KeeperException,InterruptedException {@@ -552,10 +449,6 @@ public class SolrZkClient {** @param path path to upload file to e.g. /solr/conf/solrconfig.xml* @param file path to file to be uploaded- * @param retryOnConnLoss- * @throws IOException- * @throws KeeperException- * @throws InterruptedException*/public void setData(String path, File file, boolean retryOnConnLoss) throws IOException,KeeperException, InterruptedException {@@ -569,11 +462,6 @@ public class SolrZkClient {/*** Fills string with printout of current ZooKeeper layout.- *- * @param path- * @param indent- * @throws KeeperException- * @throws InterruptedException*/public void printLayout(String path, int indent, StringBuilder string)throws KeeperException, InterruptedException {@@ -619,9 +507,6 @@ public class SolrZkClient {/*** Prints current ZooKeeper layout to stdout.- *- * @throws KeeperException- * @throws InterruptedException*/public void printLayoutToStdOut() throws KeeperException,InterruptedException {@@ -667,9 +552,6 @@ public class SolrZkClient {/*** Allows package private classes to update volatile ZooKeeper.- *- * @param keeper- * @throws InterruptedException*/void updateKeeper(SolrZooKeeper keeper) throws InterruptedException {SolrZooKeeper oldKeeper = this.keeper;diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java b/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.javaindex ae903bebe08..377531bd2a3 100644--- a/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java@@ -53,10 +53,6 @@ public class ZkCmdExecutor {/*** Perform the given operation, retrying if the connection fails- *- * @param operation- * @throws KeeperException- * @throws InterruptedException*/@SuppressWarnings("unchecked")public <T> T retryOperation(ZkOperation operation)@@ -107,7 +103,6 @@ public class ZkCmdExecutor {** @param attemptCount* the number of the attempts performed so far- * @throws InterruptedException*/protected void retryDelay(int attemptCount) throws InterruptedException {if (attemptCount > 0) {diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/ZkOperation.java b/solr/solrj/src/java/org/apache/solr/common/cloud/ZkOperation.javaindex df2e97bc53a..c152956185d 100644--- a/solr/solrj/src/java/org/apache/solr/common/cloud/ZkOperation.java+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/ZkOperation.java@@ -32,8 +32,6 @@ public abstract class ZkOperation {* to ZooKeeper closes during this operation** @return the result of the operation or null- * @throws KeeperException- * @throws InterruptedException*/public abstract Object execute() throws KeeperException, InterruptedException;}diff --git a/solr/solrj/src/java/org/apache/solr/common/util/FastOutputStream.java b/solr/solrj/src/java/org/apache/solr/common/util/FastOutputStream.javaindex 89c3fa6e4a8..7627fd15ea1 100755--- a/solr/solrj/src/java/org/apache/solr/common/util/FastOutputStream.java+++ b/solr/solrj/src/java/org/apache/solr/common/util/FastOutputStream.java@@ -102,7 +102,6 @@ public class FastOutputStream extends OutputStream implements DataOutput {/** reserve at least len bytes at the end of the buffer.* Invalid if len > buffer.length- * @param len*/public void reserve(int len) throws IOException {if (len > (buf.length - pos))diff --git a/solr/solrj/src/java/org/apache/solr/common/util/JavaBinCodec.java b/solr/solrj/src/java/org/apache/solr/common/util/JavaBinCodec.javaindex d22b0b3cda9..b8a8c698ac3 100755--- a/solr/solrj/src/java/org/apache/solr/common/util/JavaBinCodec.java+++ b/solr/solrj/src/java/org/apache/solr/common/util/JavaBinCodec.java@@ -619,10 +619,7 @@ public class JavaBinCodec {* collection/array/map In most of the cases the length can be represented in one byte (length < 127) so it saves 3* bytes/object*- * @param i- * @param out- *- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public static void writeVInt(int i, FastOutputStream out) throws IOException {while ((i & ~0x7F) != 0) {@@ -633,13 +630,9 @@ public class JavaBinCodec {}/**- * The counterpart for the above- *- * @param in- *- * @return the int value+ * The counterpart for {@link #writeVInt(int, FastOutputStream)}*- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public static int readVInt(FastInputStream in) throws IOException {byte b = in.readByte();diff --git a/solr/solrj/src/java/org/apache/solr/common/util/NamedList.java b/solr/solrj/src/java/org/apache/solr/common/util/NamedList.javaindex bfcfa22e39f..f9705d2ec09 100644--- a/solr/solrj/src/java/org/apache/solr/common/util/NamedList.java+++ b/solr/solrj/src/java/org/apache/solr/common/util/NamedList.java@@ -97,7 +97,6 @@ public class NamedList<T> implements Cloneable, Serializable, Iterable<Map.Entry* indexed elements (0,2,4. ..etc) are Strings and odd elements (1,3,5,) are of* the type "T".*- * @param nameValuePairs* @return Modified List as per the above description* @deprecated This a temporary placeholder method until the guts of the class* are actually replaced by List<String, ?>.@@ -273,8 +272,6 @@ public class NamedList<T> implements Cloneable, Serializable, Iterable<Map.Entry** Helper class implementing Map.Entry<String, T> to store the key-value* relationship in NamedList (the keys of which are String-s)- *- * @param <T>*/public static final class NamedListEntry<T> implements Map.Entry<String, T> {diff --git a/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java b/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.javaindex 9ee7df5714c..16f9cd5dd79 100644--- a/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java+++ b/solr/solrj/src/java/org/apache/solr/common/util/StrUtils.java@@ -241,8 +241,6 @@ public class StrUtils {/*** {@link NullPointerException} and {@link SolrException} free version of {@link #parseBool(String)}- * @param s- * @param def* @return parsed boolean value (or def, if s is null or invalid)*/public static boolean parseBool(String s, boolean def) {diff --git a/solr/solrj/src/java/org/apache/solr/common/util/XML.java b/solr/solrj/src/java/org/apache/solr/common/util/XML.javaindex c62ab3b74fe..50a6da26788 100644--- a/solr/solrj/src/java/org/apache/solr/common/util/XML.java+++ b/solr/solrj/src/java/org/apache/solr/common/util/XML.java@@ -71,9 +71,7 @@ public class XML {/**********- * @param str- * @param out- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public static void escapeCharData(String str, Writer out) throws IOException {escape(str, out, chardata_escapes);diff --git a/solr/test-framework/src/java/org/apache/solr/BaseDistributedSearchTestCase.java b/solr/test-framework/src/java/org/apache/solr/BaseDistributedSearchTestCase.javaindex d5f8c377be7..7357ad81f2c 100644--- a/solr/test-framework/src/java/org/apache/solr/BaseDistributedSearchTestCase.java+++ b/solr/test-framework/src/java/org/apache/solr/BaseDistributedSearchTestCase.java@@ -719,8 +719,6 @@ public abstract class BaseDistributedSearchTestCase extends SolrTestCaseJ4 {* causing a spelling index not to get built: both control & shard data would have no results* but because they match the test would pass. This method gives us a chance to ensure something* exists in the control data.- *- * @throws Exception*/public void validateControlData(QueryResponse control) throws Exception {/* no-op */diff --git a/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java b/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.javaindex 82d25756cc0..8007a567799 100644--- a/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java+++ b/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java@@ -280,12 +280,10 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTes/**- * @param numJettys* @param checkCreatedVsState* if true, make sure the number created (numJettys) matches the* number in the cluster state - if you add more jetties this may not* be the case- * @throws Exception*/protected List<JettySolrRunner> createJettys(int numJettys, boolean checkCreatedVsState) throws Exception {List<JettySolrRunner> jettys = new ArrayList<JettySolrRunner>();diff --git a/solr/test-framework/src/java/org/apache/solr/cloud/ZkTestServer.java b/solr/test-framework/src/java/org/apache/solr/cloud/ZkTestServer.javaindex 1845659b606..5986c5f1d60 100644--- a/solr/test-framework/src/java/org/apache/solr/cloud/ZkTestServer.java+++ b/solr/test-framework/src/java/org/apache/solr/cloud/ZkTestServer.java@@ -83,7 +83,7 @@ public class ZkTestServer {/*** Run from a ServerConfig.* @param config ServerConfig to use.- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public void runFromConfig(ServerConfig config) throws IOException {try {@@ -110,7 +110,7 @@ public class ZkTestServer {/*** Shutdown the serving instance- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/protected void shutdown() throws IOException {zooKeeperServer.shutdown();@@ -287,7 +287,7 @@ public class ZkTestServer {* @param host the destination host* @param port the destination port* @param cmd the 4letterword- * @throws IOException+ * @throws IOException If there is a low-level I/O error.*/public static String send4LetterWord(String host, int port, String cmd)throws IOException