private void addCommonLoggingEventFieldsToConstructor ( final MethodSpec . Builder constructorBuilder ) { constructorBuilder . addParameter ( TypeName . get ( String . class ) , "message" , Modifier . FINAL ) ; constructorBuilder . addParameter ( TypeName . get ( String . class ) , "sourceFile" , Modifier . FINAL ) ; constructorBuilder . addParameter ( TypeName . LONG , "lineNumber" , Modifier . FINAL ) ; constructorBuilder . addParameter ( TypeName . get ( String . class ) , "type" , Modifier . FINAL ) ; constructorBuilder . addParameter ( TypeName . LONG , "sid" , Modifier . FINAL ) ; constructorBuilder . addParameter ( TypeName . get ( String . class ) , "logLevel" , Modifier . FINAL ) ; constructorBuilder . addParameter ( TypeName . LONG , "timestamp" , Modifier . FINAL ) ; constructorBuilder . addCode ( "super(message,sourceFile,lineNumber,type,sid,logLevel,timestamp);" ) ; }
add common attributes to constructor