Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 JavaPoet 创建静态导入?
我试图生成的代码如下所示:
import static com.test.Types.*;
备案:static import自1.5.0起受支持
static import
有关示例用法,请参阅JavaFileTest。
没有办法,但是有一个与之相关的未解决问题:https ://github.com/square/javapoet/issues/73