private static boolean checkLogDeprecationWarning(String path,int line,String name,String since,String message,String replacement){
  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) {
    ThreadLocalToolkit.log(new DeprecatedMessage(message),path,line);
  }
 else   if (hasReplacement) {
    if (hasSince) {
      ThreadLocalToolkit.log(new DeprecatedSince(name,since,replacement),path,line);
    }
 else {
      ThreadLocalToolkit.log(new DeprecatedUseReplacement(name,replacement),path,line);
    }
  }
 else   if (hasSince) {
    ThreadLocalToolkit.log(new DeprecatedSinceNoReplacement(name,since),path,line);
  }
 else   if ((message != null) || (replacement != null) || (since != null)) {
    ThreadLocalToolkit.log(new Deprecated(name),path,line);
  }
 else {
    return false;
  }
  return true;
}

private static boolean checkLogDeprecationWarning ( String path , int line , String name , String since , String message , String replacement ) { 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 ) { ThreadLocalToolkit . log ( new DeprecatedMessage ( message ) , path , line ) ; } else if ( hasReplacement ) { if ( hasSince ) { ThreadLocalToolkit . log ( new DeprecatedSince ( name , since , replacement ) , path , line ) ; } else { ThreadLocalToolkit . log ( new DeprecatedUseReplacement ( name , replacement ) , path , line ) ; } } else if ( hasSince ) { ThreadLocalToolkit . log ( new DeprecatedSinceNoReplacement ( name , since ) , path , line ) ; } else if ( ( message != null ) || ( replacement != null ) || ( since != null ) ) { ThreadLocalToolkit . log ( new Deprecated ( name ) , path , line ) ; } else { return false ; } return true ; }
logs the appropriate deprecation warning based on available information in the metadata ; will not log anything if since , message , and replacement are null . returns true if a warning was logged .
