Permalink
Browse files

AVRO-1169. Java: Reduce memory footprint of resolver. Contributed by …

…Hernan Otero.

git-svn-id: https://svn.apache.org/repos/asf/avro/trunk@1389592 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
cutting committed Sep 24, 2012
1 parent ba55d81 commit 79323b0bd6a3e77469f9b4c23f33783460324e09
View
@@ -6,6 +6,9 @@ Trunk (not yet released)
IMPROVEMENTS
+ AVRO-1169. Java: Reduce memory footprint of resolver.
+ (Hernan Otero via cutting)
+
BUG FIXES
Avro 1.7.2 (20 October 2012)
@@ -172,8 +172,8 @@ public Symbol generate(Schema writer, Schema reader,
throw new RuntimeException("Unexpected schema type: " + readerType);
}
}
- return Symbol.error("Found " + writer.toString(true)
- + ", expecting " + reader.toString(true));
+ return Symbol.error("Found " + writer.getFullName()
+ + ", expecting " + reader.getFullName());
}
private Symbol resolveUnion(Schema writer, Schema reader,
@@ -222,8 +222,8 @@ private Symbol resolveRecords(Schema writer, Schema reader,
String fname = rf.name();
if (writer.getField(fname) == null) {
if (rf.defaultValue() == null) {
- result = Symbol.error("Found " + writer.toString(true)
- + ", expecting " + reader.toString(true));
+ result = Symbol.error("Found " + writer.getFullName()
+ + ", expecting " + reader.getFullName());
seen.put(wsc, result);
return result;
} else {

0 comments on commit 79323b0

Please sign in to comment.