You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by ot...@apache.org on 2004/01/29 13:25:50 UTC

cvs commit: jakarta-lucene/src/demo/org/apache/lucene/demo/html Entities.java Tags.java

otis        2004/01/29 04:25:50

  Modified:    src/demo/org/apache/lucene/demo/html Entities.java Tags.java
  Log:
  - Cleaned up to avoid compiler warnings
  
  Revision  Changes    Path
  1.2       +1 -1      jakarta-lucene/src/demo/org/apache/lucene/demo/html/Entities.java
  
  Index: Entities.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/demo/org/apache/lucene/demo/html/Entities.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Entities.java	26 Jan 2002 15:01:31 -0000	1.1
  +++ Entities.java	29 Jan 2004 12:25:50 -0000	1.2
  @@ -81,7 +81,7 @@
       }
     }
   
  -  static final public String encode(String s) {
  +  public static final String encode(String s) {
       int length = s.length();
       StringBuffer buffer = new StringBuffer(length * 2);
       for (int i = 0; i < length; i++) {
  
  
  
  1.3       +5 -6      jakarta-lucene/src/demo/org/apache/lucene/demo/html/Tags.java
  
  Index: Tags.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/demo/org/apache/lucene/demo/html/Tags.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Tags.java	27 Nov 2003 12:50:21 -0000	1.2
  +++ Tags.java	29 Jan 2004 12:25:50 -0000	1.3
  @@ -52,19 +52,19 @@
    * information on the Apache Software Foundation, please see
    * <http://www.apache.org/>.
    */
  - 
  +
   import java.util.Collections;
   import java.util.HashSet;
   import java.util.Set;
   
   
   public final class Tags {
  -  
  +
     /**
  -   * contains all tags for which whitespaces have to be inserted for proper tokenization 
  +   * contains all tags for which whitespaces have to be inserted for proper tokenization
      */
  -  public final static Set WS_ELEMS = Collections.synchronizedSet(new HashSet());
  -  
  +  public static final Set WS_ELEMS = Collections.synchronizedSet(new HashSet());
  +
     static{
       WS_ELEMS.add("<hr");
       WS_ELEMS.add("<hr/");  // note that "<hr />" does not need to be listed explicitly
  @@ -97,5 +97,4 @@
       WS_ELEMS.add("<h6");
       WS_ELEMS.add("</h6");
     }
  -
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org