1 package xdoclet.retest.util; 2 3 import xdoclet.XDocletException; 4 import xdoclet.retest.XDocletRetestMessages; 5 6 7 12 public class ClassComparator 13 extends AbstractClassAndInterfaceComparator 14 { 15 public ClassComparator(Class one,Class two) 16 { 17 super(one,two); 18 } 19 20 public ComparisonResultSet compare() 21 throws XDocletException 22 { 23 if ( one.isInterface() ) 24 { 25 resultSet.addError(XDocletRetestMessages.IS_NOT_A_CLASS,new String [] {one.getName()} ); 26 return resultSet; 27 } 28 if ( two.isInterface() ) 29 { 30 resultSet.addError(XDocletRetestMessages.IS_NOT_A_CLASS,new String [] {two.getName()} ); 31 return resultSet; 32 } 33 compareClassSignature(); 34 compareClassMethodsSignature(); 35 38 return resultSet; 39 } 40 41 42 } 43 | Popular Tags |