protected void printComparison(String title, StringDiff string, PrintStream out) {
        out.print(title + ":");

        if (string == null) {
            out.print("NULL");
            return;
        }

        if (string.areEqual()) {
            out.println(" EQUAL");
        } else {
            String referenceVersion = string.getReferenceVersion();
            if (referenceVersion == null) {
                referenceVersion = "NULL";
            } else {
                referenceVersion = "'" + referenceVersion + "'";
            }

            String targetVersion = string.getTargetVersion();
            if (targetVersion == null) {
                targetVersion = "NULL";
            } else {
                targetVersion = "'" + targetVersion + "'";
            }


            out.println();
            out.println("     Reference:   "
                    + referenceVersion);
            out.println("     Target: " + targetVersion);
        }

    }
protected void printComparison(String title, StringDiff string, PrintStream out) {
        out.print(title + ":");

        if (string == null) {
            out.print("NULL");
            return;
        }

        if (string.areEqual()) {
            out.println(" EQUAL");
        } else {
            String referenceVersion = string.getReferenceVersion();
            if (referenceVersion == null) {
                referenceVersion = "NULL";
            } else {
                referenceVersion = "'" + referenceVersion + "'";
            }

            String targetVersion = string.getTargetVersion();
            if (targetVersion == null) {
                targetVersion = "NULL";
            } else {
                targetVersion = "'" + targetVersion + "'";
            }


            out.println();
            out.println("     Reference:   "
                    + referenceVersion);
            out.println("     Target: " + targetVersion);
        }

    }
protected void printComparison ( String title , StringDiff string , PrintStream out ) { out . print ( title + ":" ) ; if ( string == null ) { out . print ( "NULL" ) ; return ; } if ( string . areEqual ( ) ) { out . println ( " EQUAL" ) ; } else { String referenceVersion = string . getReferenceVersion ( ) ; if ( referenceVersion == null ) { referenceVersion = "NULL" ; } else { referenceVersion = "'" + referenceVersion + "'" ; } String targetVersion = string . getTargetVersion ( ) ; if ( targetVersion == null ) { targetVersion = "NULL" ; } else { targetVersion = "'" + targetVersion + "'" ; } out . println ( ) ; out . println ( "     Reference:   " + referenceVersion ) ; out . println ( "     Target: " + targetVersion ) ; } }
}
}