From fdccd603645485f5a00527c3f2b9e39f051a9645 Mon Sep 17 00:00:00 2001 From: Daniel Jelinski Date: Fri, 21 Jul 2017 13:43:18 +0200 Subject: [PATCH] Fix javadoc errors --- src/main/java/com/optimaize/langdetect/i18n/LdLocale.java | 5 +++-- .../java/com/optimaize/langdetect/ngram/NgramExtractor.java | 2 +- .../java/com/optimaize/langdetect/text/package-info.java | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/optimaize/langdetect/i18n/LdLocale.java b/src/main/java/com/optimaize/langdetect/i18n/LdLocale.java index c084f7b..0948fb2 100644 --- a/src/main/java/com/optimaize/langdetect/i18n/LdLocale.java +++ b/src/main/java/com/optimaize/langdetect/i18n/LdLocale.java @@ -34,8 +34,9 @@ * *

The java.util.Locale cannot be used because it has issues for historical reasons, notably the * script code conversion for Hebrew, Yiddish and Indonesian, and more. If one needs a Locale, - * it is simple to create one based on this object.
- * The ICU ULocale cannot be used because a) it has issues too (for our use case) and b) we're not + * it is simple to create one based on this object.

+ * + *

The ICU ULocale cannot be used because a) it has issues too (for our use case) and b) we're not * using ICU in here [yet].

* *

This class does not perform any modifications on the input. The input is used as is, and the getters diff --git a/src/main/java/com/optimaize/langdetect/ngram/NgramExtractor.java b/src/main/java/com/optimaize/langdetect/ngram/NgramExtractor.java index 09c6beb..bd7249a 100644 --- a/src/main/java/com/optimaize/langdetect/ngram/NgramExtractor.java +++ b/src/main/java/com/optimaize/langdetect/ngram/NgramExtractor.java @@ -77,7 +77,7 @@ public List getGramLengths() { /** * Creates the n-grams for a given text in the order they occur. * - *

Example: extractSortedGrams("Foo bar", 2) => [Fo,oo,o , b,ba,ar]

+ *

Example: extractSortedGrams("Foo bar", 2) => [Fo,oo,o , b,ba,ar]

* * @param text * @return The grams, empty if the input was empty or if none for that gramLength fits. diff --git a/src/main/java/com/optimaize/langdetect/text/package-info.java b/src/main/java/com/optimaize/langdetect/text/package-info.java index 09c0bbb..6e2c376 100644 --- a/src/main/java/com/optimaize/langdetect/text/package-info.java +++ b/src/main/java/com/optimaize/langdetect/text/package-info.java @@ -16,7 +16,7 @@ /** * Provides functionality for concatenating and cleaning text that is used as - * a) learning text to produce {@link com.optimaize.langdetect.LanguageProfile}s + * a) learning text to produce {@link com.optimaize.langdetect.profiles.LanguageProfile}s * b) for the text for which the language is to be guessed. * * @author Fabian Kessler