public JCDiagnostic mandatoryWarning(DiagnosticSource source,DiagnosticPosition pos,String key,Object... args){
  return create(WARNING,null,EnumSet.of(DiagnosticFlag.MANDATORY),source,pos,key,args);
}

public JCDiagnostic mandatoryWarning ( DiagnosticSource source , DiagnosticPosition pos , String key , Object ... args ) { return create ( WARNING , null , EnumSet . of ( DiagnosticFlag . MANDATORY ) , source , pos , key , args ) ; }
create a warning diagnostic that will not be hidden by the - nowarn or - xlint : none options .
