Removed deprecated methods that have floating around for 2 releases. Their

time was up.
This commit is contained in:
Oliver Burn 2002-06-02 23:20:35 +00:00
parent 9f4ef5821a
commit dc92fd1b89
2 changed files with 0 additions and 31 deletions

View File

@ -625,23 +625,6 @@ public class Configuration
return mHeaderLinesRegexp;
}
/**
* This method is being kept for API backwards compatibility with
* Checkstyle version below <code>2.1</code>.
* @return the first line number to ignore in header
* @deprecated use isHeaderIgnoreLineNo(int) instead
**/
public int getHeaderIgnoreLineNo()
{
if (mHeaderIgnoreLineNo.isEmpty()) {
return -1;
}
else {
Integer firstLine = (Integer) mHeaderIgnoreLineNo.first();
return firstLine.intValue();
}
}
/**
* @param aLineNo a line number
* @return if <code>aLineNo</code> is one of the ignored header lines.
@ -964,17 +947,6 @@ public class Configuration
mHeaderLinesRegexp = aHeaderLinesRegexp;
}
/**
* This method is being kept for API backwards compatibility with
* Checkstyle version below <code>2.1</code>.
* @param aHeaderIgnoreLineNo line number to ignore in header
* @deprecated use setHeaderIgnoreLines(String) instead
*/
public void setHeaderIgnoreLineNo(int aHeaderIgnoreLineNo)
{
setHeaderIgnoreLines(String.valueOf(aHeaderIgnoreLineNo));
}
/**
* @param aList comma separated list of line numbers to ignore in header.
*/

View File

@ -27,10 +27,7 @@ public class ConfigurationTest
final Configuration c = new Configuration(p, System.out);
assertNotNull(c);
assertEquals(66, c.getMaxLineLength());
assertEquals(-1, c.getHeaderIgnoreLineNo());
assertEquals(true, c.isAllowTabs());
c.setHeaderIgnoreLineNo(666);
assertEquals(666, c.getHeaderIgnoreLineNo());
}
public void test2() throws Exception