private void logDeprecationWarning(Node node,Context cx,String name,String since,String message,String replacement){
  final int pos=node.getPosition();
  final InputBuffer input=cx.input;
  assert ((name != null) && (name.length() > 0));
  final boolean hasSince=(since != null) && (since.length() > 0);
  final boolean hasMessage=(message != null) && (message.length() > 0);
  final boolean hasReplacement=(replacement != null) && (replacement.length() > 0);
  if (hasMessage) {
    warning(pos,input,kWarning_DeprecatedMessage,message);
  }
 else   if (hasReplacement) {
    if (hasSince) {
      warning(pos,input,kWarning_DeprecatedSince,name,since,replacement);
    }
 else {
      warning(pos,input,kWarning_DeprecatedUseReplacement,name,replacement);
    }
  }
 else   if (hasSince) {
    warning(pos,input,kWarning_DeprecatedSinceNoReplacement,name,since);
  }
 else {
    warning(pos,input,kWarning_Deprecated,name);
  }
}

private void logDeprecationWarning ( Node node , Context cx , String name , String since , String message , String replacement ) { final int pos = node . getPosition ( ) ; final InputBuffer input = cx . input ; assert ( ( name != null ) && ( name . length ( ) > 0 ) ) ; final boolean hasSince = ( since != null ) && ( since . length ( ) > 0 ) ; final boolean hasMessage = ( message != null ) && ( message . length ( ) > 0 ) ; final boolean hasReplacement = ( replacement != null ) && ( replacement . length ( ) > 0 ) ; if ( hasMessage ) { warning ( pos , input , kWarning_DeprecatedMessage , message ) ; } else if ( hasReplacement ) { if ( hasSince ) { warning ( pos , input , kWarning_DeprecatedSince , name , since , replacement ) ; } else { warning ( pos , input , kWarning_DeprecatedUseReplacement , name , replacement ) ; } } else if ( hasSince ) { warning ( pos , input , kWarning_DeprecatedSinceNoReplacement , name , since ) ; } else { warning ( pos , input , kWarning_Deprecated , name ) ; } }
logs the appropriate deprecation warning based on available information in the metadata ; will not log anything if since , message , and replacement are null .
