summaryrefslogtreecommitdiffstats
path: root/linguistics/src/main/java/com/yahoo/language/detect
diff options
context:
space:
mode:
Diffstat (limited to 'linguistics/src/main/java/com/yahoo/language/detect')
-rw-r--r--linguistics/src/main/java/com/yahoo/language/detect/AbstractDetector.java3
-rw-r--r--linguistics/src/main/java/com/yahoo/language/detect/Detector.java9
2 files changed, 7 insertions, 5 deletions
diff --git a/linguistics/src/main/java/com/yahoo/language/detect/AbstractDetector.java b/linguistics/src/main/java/com/yahoo/language/detect/AbstractDetector.java
index f80f876d248..d457f83c9fd 100644
--- a/linguistics/src/main/java/com/yahoo/language/detect/AbstractDetector.java
+++ b/linguistics/src/main/java/com/yahoo/language/detect/AbstractDetector.java
@@ -6,7 +6,7 @@ import com.yahoo.text.Utf8;
import java.nio.ByteBuffer;
/**
- * @author <a href="mailto:simon@yahoo-inc.com">Simon Thoresen</a>
+ * @author Simon Thoresen
*/
public abstract class AbstractDetector implements Detector {
@@ -22,4 +22,5 @@ public abstract class AbstractDetector implements Detector {
input.get(buf, 0, buf.length);
return detect(buf, 0, buf.length, hint);
}
+
}
diff --git a/linguistics/src/main/java/com/yahoo/language/detect/Detector.java b/linguistics/src/main/java/com/yahoo/language/detect/Detector.java
index 4962d761a5a..c18b41bc890 100644
--- a/linguistics/src/main/java/com/yahoo/language/detect/Detector.java
+++ b/linguistics/src/main/java/com/yahoo/language/detect/Detector.java
@@ -6,7 +6,7 @@ import java.nio.ByteBuffer;
/**
* Abstract superclass of all Detectors used for language and encoding detection.
*
- * @author <a href="mailto:einarmr@yahoo-inc.com">Einar M R Rosenvinge</a>
+ * @author Einar M R Rosenvinge
*/
public interface Detector {
@@ -20,7 +20,7 @@ public interface Detector {
* @return an array of possible language/encoding pairs, sorted by decreasing confidence (possibly empty, but never null)
* @throws DetectionException if detection fails
*/
- public abstract Detection detect(byte[] input, int offset, int length, Hint hint);
+ Detection detect(byte[] input, int offset, int length, Hint hint);
/**
* Detects language and encoding of the supplied ByteBuffer, possibly using a language/encoding hint.
@@ -30,7 +30,7 @@ public interface Detector {
* @return an array of possible language/encoding pairs, sorted by decreasing confidence (possibly empty, but never null)
* @throws DetectionException if detection fails
*/
- public abstract Detection detect(ByteBuffer input, Hint hint);
+ Detection detect(ByteBuffer input, Hint hint);
/**
* Detects language of the supplied String, possibly using a language hint.
@@ -40,5 +40,6 @@ public interface Detector {
* @return an array of possible language/encoding pairs, sorted by decreasing confidence (possibly empty, but never null)
* @throws DetectionException if detection fails
*/
- public abstract Detection detect(String input, Hint hint);
+ Detection detect(String input, Hint hint);
+
}