1 19 20 package org.netbeans.test.j2ee.lib; 21 22 import org.netbeans.junit.diff.LineDiff; 23 24 29 public class FilteringLineDiff extends LineDiff { 30 31 35 public FilteringLineDiff() { 36 this(false, false); 37 } 38 39 public FilteringLineDiff(boolean ignoreCase) { 40 this(ignoreCase, false); 41 } 42 43 public FilteringLineDiff(boolean ignoreCase, boolean ignoreEmptyLines) { 44 super(ignoreCase, ignoreEmptyLines); 45 } 46 47 54 protected boolean compareLines(String l1,String l2) { 55 if (super.compareLines(l1, l2)) { 56 return true; 57 } 58 if (((l1.indexOf(" * Created ") == 0) && (l2.indexOf(" * Created ") == 0)) 59 || ((l1.indexOf(" * @author ") == 0) && (l2.indexOf(" * @author ") == 0)) 60 || ((l1.indexOf("Created-By: ") == 0) && (l2.indexOf("Created-By: ") == 0))) { 61 return true; 62 } 63 return false; 64 } 65 66 } 67 | Popular Tags |