public JCDiagnostic warning(LintCategory lc,String key,Object... args){
  return create(WARNING,lc,EnumSet.noneOf(DiagnosticFlag.class),null,null,key,args);
}

public JCDiagnostic warning ( LintCategory lc , String key , Object ... args ) { return create ( WARNING , lc , EnumSet . noneOf ( DiagnosticFlag . class ) , null , null , key , args ) ; }
create a warning diagnostic .
