@@ -89,7 +89,7 @@ public LanguageTranslator(String versionDate, Authenticator authenticator) {
8989 */
9090 public ServiceCall <TranslationResult > translate (TranslateOptions translateOptions ) {
9191 com .ibm .cloud .sdk .core .util .Validator .notNull (translateOptions ,
92- "translateOptions cannot be null" );
92+ "translateOptions cannot be null" );
9393 String [] pathSegments = { "v3/translate" };
9494 RequestBuilder builder = RequestBuilder .post (RequestBuilder .constructHttpUrl (getEndPoint (), pathSegments ));
9595 builder .query ("version" , versionDate );
@@ -99,7 +99,7 @@ public ServiceCall<TranslationResult> translate(TranslateOptions translateOption
9999 }
100100 builder .header ("Accept" , "application/json" );
101101 final JsonObject contentJson = new JsonObject ();
102- contentJson .add ("text" , {{ corePackage } .util .GsonSingleton .getGson ().toJsonTree (translateOptions .text ()));
102+ contentJson .add ("text" , com . ibm . cloud . sdk . core .util .GsonSingleton .getGson ().toJsonTree (translateOptions .text ()));
103103 if (translateOptions .modelId () != null ) {
104104 contentJson .addProperty ("model_id" , translateOptions .modelId ());
105105 }
@@ -110,8 +110,9 @@ public ServiceCall<TranslationResult> translate(TranslateOptions translateOption
110110 contentJson .addProperty ("target" , translateOptions .target ());
111111 }
112112 builder .bodyJson (contentJson );
113- ResponseConverter <TranslationResult > responseConverter =
114- ResponseConverterUtils .getValue (new com .google .gson .reflect .TypeToken <TranslationResult >() { }.getType ());
113+ ResponseConverter <TranslationResult > responseConverter = ResponseConverterUtils .getValue (
114+ new com .google .gson .reflect .TypeToken <TranslationResult >() {
115+ }.getType ());
115116 return createServiceCall (builder .build (), responseConverter );
116117 }
117118
0 commit comments