Author: ogrisel
Date: Thu Dec  1 13:11:30 2011
New Revision: 1209066

URL: http://svn.apache.org/viewvc?rev=1209066&view=rev
Log:
cosmit

Modified:
    
incubator/stanbol/trunk/enhancer/engines/langid/src/main/java/org/apache/stanbol/enhancer/engines/langid/LangIdEnhancementEngine.java

Modified: 
incubator/stanbol/trunk/enhancer/engines/langid/src/main/java/org/apache/stanbol/enhancer/engines/langid/LangIdEnhancementEngine.java
URL: 
http://svn.apache.org/viewvc/incubator/stanbol/trunk/enhancer/engines/langid/src/main/java/org/apache/stanbol/enhancer/engines/langid/LangIdEnhancementEngine.java?rev=1209066&r1=1209065&r2=1209066&view=diff
==============================================================================
--- 
incubator/stanbol/trunk/enhancer/engines/langid/src/main/java/org/apache/stanbol/enhancer/engines/langid/LangIdEnhancementEngine.java
 (original)
+++ 
incubator/stanbol/trunk/enhancer/engines/langid/src/main/java/org/apache/stanbol/enhancer/engines/langid/LangIdEnhancementEngine.java
 Thu Dec  1 13:11:30 2011
@@ -89,13 +89,15 @@ public class LangIdEnhancementEngine imp
     private int probeLength = PROBE_LENGTH_DEFAULT;
 
     /**
-     * The activate method.
-     *
-     * @param ce the {@link ComponentContext}
+     * Initialize the language identifier model and load the prop length bound 
if
+     * provided as a property.
+     * 
+     * @param ce
+     *            the {@link ComponentContext}
      */
-    protected void activate(@SuppressWarnings("unused") ComponentContext ce) 
throws IOException {
-        String confFile = null;
+    protected void activate(ComponentContext ce) throws IOException {
         if (ce != null) {
+            @SuppressWarnings("unchecked")
             Dictionary<String, String> properties = ce.getProperties();
             String lengthVal = properties.get(PROBE_LENGTH_PROP);
             probeLength = lengthVal == null ? PROBE_LENGTH_DEFAULT : 
Integer.parseInt(lengthVal);
@@ -103,15 +105,6 @@ public class LangIdEnhancementEngine imp
         LanguageIdentifier.initProfiles();
     }
 
-    /**
-     * The deactivate method.
-     *
-     * @param ce the {@link ComponentContext}
-     */
-    protected void deactivate(@SuppressWarnings("unused") ComponentContext ce) 
{
-      
-    }
-
     public int canEnhance(ContentItem ci) throws EngineException {
         String mimeType = ci.getMimeType().split(";", 2)[0];
         if (TEXT_PLAIN_MIMETYPE.equalsIgnoreCase(mimeType)) {


Reply via email to