You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by dw...@apache.org on 2012/04/25 00:30:28 UTC

svn commit: r1330051 - in /lucene/dev/trunk: lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java solr/core/src/java/org/apache/solr/util/TimeZoneUtils.java

Author: dweiss
Date: Tue Apr 24 22:30:27 2012
New Revision: 1330051

URL: http://svn.apache.org/viewvc?rev=1330051&view=rev
Log:
Adding a note about LUCENE-4020 issue. Spelling corrections.

Modified:
    lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/TimeZoneUtils.java

Modified: lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java?rev=1330051&r1=1330050&r2=1330051&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java (original)
+++ lucene/dev/trunk/lucene/test-framework/src/java/org/apache/lucene/util/LuceneTestCase.java Tue Apr 24 22:30:27 2012
@@ -1318,14 +1318,20 @@ public abstract class LuceneTestCase ext
     
     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)]);

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/TimeZoneUtils.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/TimeZoneUtils.java?rev=1330051&r1=1330050&r2=1330051&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/TimeZoneUtils.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/util/TimeZoneUtils.java Tue Apr 24 22:30:27 2012
@@ -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
    */