View | Details | Raw Unified | Return to bug 80474
Collapse All | Expand All

(-)Differencer.java (+15 lines)
Lines 447-452 Link Here
447
				int c2= is2.read();
447
				int c2= is2.read();
448
				if (c1 == -1 && c2 == -1)
448
				if (c1 == -1 && c2 == -1)
449
					return true;
449
					return true;
450
				/* FIX!!!! Obviously this is not the way to fix the problem,
451
				but it helps point out where the problem is */
452
				if (isWhiteSpace(c1))
453
					continue;
454
				if (isWhiteSpace(c2))
455
					continue;
456
					
450
				if (c1 != c2)
457
				if (c1 != c2)
451
					break;
458
					break;
452
				
459
				
Lines 472-477 Link Here
472
		return false;
479
		return false;
473
	}
480
	}
474
	
481
	
482
	/**
483
	 * @param c1
484
	 * @return
485
	 */
486
	private boolean isWhiteSpace(int c1) {
487
		return (c1==' ')||(c1=='\t')||(c1=='\r')||(c1=='\n');
488
	}
489
475
	/*
490
	/*
476
	 * Tries to return an InputStream for the given object.
491
	 * Tries to return an InputStream for the given object.
477
	 * Returns <code>null</code> if the object not an IStreamContentAccessor
492
	 * Returns <code>null</code> if the object not an IStreamContentAccessor

Return to bug 80474