This is an automated email from the ASF dual-hosted git repository.
blachniet pushed a commit to branch branch-1.9
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/branch-1.9 by this push:
new 6bc9f1e AVRO-2557: Fix Java example user.avsc file address error
(#646)
6bc9f1e is described below
commit 6bc9f1ec33c2b84a0162aa4d0c40c805000b1262
Author: Zezeng Wang <[email protected]>
AuthorDate: Mon Sep 30 00:14:58 2019 +0800
AVRO-2557: Fix Java example user.avsc file address error (#646)
(cherry-picked commit from 410b00ab4af7131f7409d7cd1c2bcc845e103732)
---
doc/examples/java-example/src/main/java/example/GenericMain.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/examples/java-example/src/main/java/example/GenericMain.java
b/doc/examples/java-example/src/main/java/example/GenericMain.java
index 06efdd7..8d051e0 100644
--- a/doc/examples/java-example/src/main/java/example/GenericMain.java
+++ b/doc/examples/java-example/src/main/java/example/GenericMain.java
@@ -34,7 +34,7 @@ import org.apache.avro.io.DatumWriter;
public class GenericMain {
public static void main(String[] args) throws IOException {
- Schema schema = new Parser().parse(new
File("/home/skye/code/cloudera/avro/doc/examples/user.avsc"));
+ Schema schema = new Parser().parse(new File("./../user.avsc"));
GenericRecord user1 = new GenericData.Record(schema);
user1.put("name", "Alyssa");