Skip to content

Apache Lucene open-source search software

Adding a note about LUCENE-4020 issue. Spelling corrections.

Dawid Weiss0f08c5a3f907
diff --git a/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
index a72ad0787a6..17ad41e67b1 100644
--- a/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
+++ b/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
@@ -1318,14 +1318,20 @@ public abstract class LuceneTestCase extends Assert {
return new Field(name, value, newType);
}
-
- /** return a random Locale from the available locales on the system */
+
+ /**
+ * Return a random Locale from the available locales on the system.
+ * @see "https://issues.apache.org/jira/browse/LUCENE-4020"
+ */
public static Locale randomLocale(Random random) {
Locale locales[] = Locale.getAvailableLocales();
return locales[random.nextInt(locales.length)];
}
- /** return a random TimeZone from the available timezones on the system */
+ /**
+ * Return a random TimeZone from the available timezones on the system
+ * @see "https://issues.apache.org/jira/browse/LUCENE-4020"
+ */
public static TimeZone randomTimeZone(Random random) {
String tzIds[] = TimeZone.getAvailableIDs();
return TimeZone.getTimeZone(tzIds[random.nextInt(tzIds.length)]);
diff --git a/solr/core/src/java/org/apache/solr/util/TimeZoneUtils.java b/solr/core/src/java/org/apache/solr/util/TimeZoneUtils.java
index 70e3899942a..5d47491457c 100644
--- a/solr/core/src/java/org/apache/solr/util/TimeZoneUtils.java
+++ b/solr/core/src/java/org/apache/solr/util/TimeZoneUtils.java
@@ -48,17 +48,17 @@ public final class TimeZoneUtils {
/**
* This method is provided as a replacement for TimeZone.getTimeZone but
- * with out the anoying behavior of returning "GMT" for gibberish input.
+ * without the annoying behavior of returning "GMT" for gibberish input.
* <p>
* This method will return null unless the input is either:
* </p>
* <ul>
- * <li>Included in the set of known TimeZone IDs
+ * <li>Included in the set of known TimeZone IDs</li>
* <li>A "CustomID" specified as a numeric offset from "GMT"</li>
* </ul>
*
* @param ID Either a TimeZone ID found in KNOWN_TIMEZONE_IDS, or a "CustomID" specified as a GMT offset.
- * @return A TImeZone object corrisponding to the input, or null if no such TimeZone is supported.
+ * @return A TimeZone object corresponding to the input, or null if no such TimeZone is supported.
* @see #KNOWN_TIMEZONE_IDS
* @see TimeZone
*/