[
https://issues.apache.org/jira/browse/BEAM-4480?focusedWorklogId=109784&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-109784
]
ASF GitHub Bot logged work on BEAM-4480:
----------------------------------------
Author: ASF GitHub Bot
Created on: 07/Jun/18 16:32
Start Date: 07/Jun/18 16:32
Worklog Time Spent: 10m
Work Description: lukecwik closed pull request #5559: [BEAM-4480] Fixed
deprecated method invoking for AvroCoder
URL: https://github.com/apache/beam/pull/5559
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git
a/sdks/java/core/src/main/java/org/apache/beam/sdk/coders/AvroCoder.java
b/sdks/java/core/src/main/java/org/apache/beam/sdk/coders/AvroCoder.java
index a6f79ccd1c9..866ff4416f3 100644
--- a/sdks/java/core/src/main/java/org/apache/beam/sdk/coders/AvroCoder.java
+++ b/sdks/java/core/src/main/java/org/apache/beam/sdk/coders/AvroCoder.java
@@ -197,7 +197,7 @@ private SerializableSchemaString(String schema) {
}
private Object readResolve() throws IOException, ClassNotFoundException {
- return new SerializableSchemaSupplier(Schema.parse(schema));
+ return new SerializableSchemaSupplier(new Schema.Parser().parse(schema));
}
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 109784)
Time Spent: 0.5h (was: 20m)
> Fixed deprecated method invoking for AvroCoder
> ----------------------------------------------
>
> Key: BEAM-4480
> URL: https://issues.apache.org/jira/browse/BEAM-4480
> Project: Beam
> Issue Type: Improvement
> Components: sdk-java-core
> Reporter: Xin Wang
> Assignee: Kenneth Knowles
> Priority: Minor
> Fix For: 2.6.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Fixed the deprecated Avro API fromĀ {code}Schema.parse(schema){code} to
> {code}new Schema.Parser().parse(schema){code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)