This is an automated email from the ASF dual-hosted git repository.
suvasude pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-gobblin.git
The following commit(s) were added to refs/heads/master by this push:
new ded6ac1 [GOBBLIN-983] use java string library for string format
ded6ac1 is described below
commit ded6ac1115ff67373daa90b64d33bc63b8a7390b
Author: William Lo <[email protected]>
AuthorDate: Fri Dec 6 15:48:21 2019 -0800
[GOBBLIN-983] use java string library for string format
Closes #2829 from Will-Lo/use-java-string-format
---
.../converter/avro/JsonElementConversionWithAvroSchemaFactory.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git
a/gobblin-core/src/main/java/org/apache/gobblin/converter/avro/JsonElementConversionWithAvroSchemaFactory.java
b/gobblin-core/src/main/java/org/apache/gobblin/converter/avro/JsonElementConversionWithAvroSchemaFactory.java
index 758a123..2e2a253 100644
---
a/gobblin-core/src/main/java/org/apache/gobblin/converter/avro/JsonElementConversionWithAvroSchemaFactory.java
+++
b/gobblin-core/src/main/java/org/apache/gobblin/converter/avro/JsonElementConversionWithAvroSchemaFactory.java
@@ -18,7 +18,6 @@
package org.apache.gobblin.converter.avro;
import com.google.common.base.Preconditions;
-import com.sun.javafx.binding.StringFormatter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@@ -299,7 +298,7 @@ public class JsonElementConversionWithAvroSchemaFactory
extends JsonElementConve
}
} catch (Exception e){}
}
- throw new RuntimeException(StringFormatter.format("Cannot convert %s to
avro using schema %s", value.getAsString(), schemaNode.toString()).toString());
+ throw new RuntimeException(String.format("Cannot convert %s to avro
using schema %s", value.getAsString(), schemaNode.toString()));
}
@Override