Revision: 14883
          http://gate.svn.sourceforge.net/gate/?rev=14883&view=rev
Author:   markagreenwood
Date:     2012-01-05 12:57:46 +0000 (Thu, 05 Jan 2012)
Log Message:
-----------
code formatting to match the rest of mimir

Modified Paths:
--------------
    mimir/trunk/mimir-core/src/gate/mimir/util/NormalizingTermProcessor.java

Modified: 
mimir/trunk/mimir-core/src/gate/mimir/util/NormalizingTermProcessor.java
===================================================================
--- mimir/trunk/mimir-core/src/gate/mimir/util/NormalizingTermProcessor.java    
2012-01-05 12:55:46 UTC (rev 14882)
+++ mimir/trunk/mimir-core/src/gate/mimir/util/NormalizingTermProcessor.java    
2012-01-05 12:57:46 UTC (rev 14883)
@@ -25,51 +25,44 @@
 
 public class NormalizingTermProcessor implements TermProcessor
 {
-       private final static NormalizingTermProcessor INSTANCE = new 
NormalizingTermProcessor();
+  private final static NormalizingTermProcessor INSTANCE = new 
NormalizingTermProcessor();
 
-       public final static TermProcessor getInstance()
-       {
-               return INSTANCE;
-       }
+  public final static TermProcessor getInstance() {
+    return INSTANCE;
+  }
 
-       private NormalizingTermProcessor()
-       {
-               //nothing to do but this method forces people to use the 
getInstance() method;
-       }
+  private NormalizingTermProcessor() {
+    //nothing to do but this method forces people to use the getInstance() 
method;
+  }
 
-       @Override
-       public boolean processTerm(final MutableString term)
-       {
-               if (term == null) return false;
+  @Override
+  public boolean processTerm(final MutableString term) {
+    if (term == null) return false;
 
-               term.toLowerCase();
+    term.toLowerCase();
 
-               
//http://glaforge.appspot.com/article/how-to-remove-accents-from-a-string
-               term.replace(Normalizer.normalize(term, 
Normalizer.Form.NFD).replaceAll("\\p{InCombiningDiacriticalMarks}+", ""));
+    //http://glaforge.appspot.com/article/how-to-remove-accents-from-a-string
+    term.replace(Normalizer.normalize(term, 
Normalizer.Form.NFD).replaceAll("\\p{InCombiningDiacriticalMarks}+", ""));
 
-               return true;
-       }
+    return true;
+  }
 
-       @Override
-       public boolean processPrefix(final MutableString prefix)
-       {
-               return processTerm(prefix);
-       }
+  @Override
+  public boolean processPrefix(final MutableString prefix) {
+    return processTerm(prefix);
+  }
 
-       private Object readResolve()
-       {
-               return INSTANCE;
-       }
+  private Object readResolve() {
+    return INSTANCE;
+  }
 
-       @Override
-       public String toString()
-       {
-               return this.getClass().getName();
-       }
+  @Override
+  public String toString() {
+    return this.getClass().getName();
+  }
 
-       @Override
-       public NormalizingTermProcessor copy()
-       {
-               return this;
-       }
+  @Override
+  public NormalizingTermProcessor copy() {
+    return this;
+  }
 }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to