1717 * Client for the DeepL API. To use the DeepL API, initialize an instance of this class using your
1818 * DeepL Authentication Key as found in your <a href="https://www.deepl.com/pro-account/">DeepL
1919 * account</a>.
20- *
21- * @deprecated Use {@link DeepLClient} instead.
2220 */
23- @ Deprecated
2421public class Translator {
2522 /** Base URL for DeepL API Free accounts. */
2623 private static final String DEEPL_SERVER_URL_FREE = "https://api-free.deepl.com" ;
@@ -40,7 +37,9 @@ public class Translator {
4037 * href="https://www.deepl.com/pro-account/">DeepL account</a>.
4138 * @param options Additional options controlling Translator behaviour.
4239 * @throws IllegalArgumentException If authKey is invalid.
40+ * @deprecated Use {@link DeepLClient} instead.
4341 */
42+ @ Deprecated
4443 public Translator (String authKey , TranslatorOptions options ) throws IllegalArgumentException {
4544 if (authKey == null || authKey .length () == 0 ) {
4645 throw new IllegalArgumentException ("authKey must be a non-empty string" );
@@ -73,7 +72,9 @@ public Translator(String authKey, TranslatorOptions options) throws IllegalArgum
7372 * @param authKey DeepL Authentication Key as found in your <a
7473 * href="https://www.deepl.com/pro-account/">DeepL account</a>.
7574 * @throws IllegalArgumentException If authKey is invalid.
75+ * @deprecated Use {@link DeepLClient} instead.
7676 */
77+ @ Deprecated
7778 public Translator (String authKey ) throws IllegalArgumentException {
7879 this (authKey , new TranslatorOptions ());
7980 }
0 commit comments