Fixed typos
This commit is contained in:
parent
2826baee3b
commit
ac850bbc0b
|
@ -9,7 +9,7 @@ public class BingTranslationServiceProvider implements TranslationService {
|
||||||
|
|
||||||
public String translate(String message, Locale from, Locale to) {
|
public String translate(String message, Locale from, Locale to) {
|
||||||
|
|
||||||
// implementation details
|
// implementation details
|
||||||
return message + " (translated by Bing)";
|
return message + " (translated by Bing)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ public class GoogleTranslationServiceProvider implements TranslationService {
|
||||||
|
|
||||||
public String translate(String message, Locale from, Locale to) {
|
public String translate(String message, Locale from, Locale to) {
|
||||||
|
|
||||||
// implementation details
|
// implementation details
|
||||||
return message + " (translated by Google)";
|
return message + " (translated by Google)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package com.baeldung.autoservice;
|
package com.baeldung.autoservice;
|
||||||
|
|
||||||
import com.baeldung.autoservice.TranslationService;
|
import com.baeldung.autoservice.TranslationService;
|
||||||
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.util.ServiceLoader;
|
import java.util.ServiceLoader;
|
||||||
|
|
Loading…
Reference in New Issue