daily pastebin goal
29%
SHARE
TWEET

Untitled

a guest May 16th, 2018 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //ORIGINAL CODE ::
  2.  
  3. if (isEmpty(x)){
  4.    ...
  5. }
  6. else {
  7.    ...
  8. }
  9. boolean isEmpty( String x){
  10.     if ( (x == null) || (x == ""))
  11.         return true
  12.     else
  13.         return false;
  14. }
  15.  
  16.  
  17. //INSTRUMENTED CODE ::
  18.  
  19. if (isEmpty(x)){
  20.    ...
  21. }
  22. else {
  23.    ...
  24. }
  25. boolean isEmpty( String x){
  26.     if ( ( (x == null) && myLoggingFunc('X=null') )|| ( (x == "") && myLoggingFunc('x==""')))
  27.         return true
  28.     else
  29.         return false;
  30. }
RAW Paste Data
Top