private void genImportCode ( ) { Set < String > imports = new HashSet < String > ( ) ; imports . add ( "java.util.*" ) ; imports . add ( "java.io.IOException" ) ; imports . add ( "java.lang.reflect.*" ) ; imports . add ( "com.baidu.bjf.remoting.protobuf.code.*" ) ; imports . add ( "com.baidu.bjf.remoting.protobuf.utils.*" ) ; imports . add ( "com.baidu.bjf.remoting.protobuf.*" ) ; imports . add ( "com.google.protobuf.*" ) ; if ( ! StringUtils . isEmpty ( getPackage ( ) ) ) { imports . add ( getTargetProxyClassname ( ) ) ; } for ( String pkg : imports ) { templator . setVariable ( "importPackage" , pkg ) ; templator . addBlock ( "imports" ) ; } }
Gen import code .