如何阻止Avro自动装箱原始类型?

YB *_*uta 5 java autoboxing avro

当我将其放入avro模式时:

{ "name": "the_id", "type": "int" },
Run Code Online (Sandbox Code Playgroud)

然后我:

mvn generate-sources
Run Code Online (Sandbox Code Playgroud)

生成一个包含以下内容的类文件:

private int the_id;
/**
* All-args constructor.
*/
public TheObject(java.lang.Integer the_id, ...

public java.lang.Integer getTheId() {
 return the_id;
}
Run Code Online (Sandbox Code Playgroud)

“ the_id”被声明为int,然后在构造函数和getter(和setter中装箱成Integer,尽管我没有在代码示例中包括它)。

应用“自动装箱不利于性能”的原则,我想阻止这种情况的发生。我检查了文档并浏览了论坛,但没有发现任何有用的信息:(此Avro邮件归档文章建议在现代JVM中自动装箱是“免费的”,但Oracle的这篇文章不同意)。同时, Avro邮件存档中的帖子未得到答复。

有人知道阻止Avro自动装箱的方法吗?