removing unneded ^M, which cause test failure on Windows

This commit is contained in:
Oleg Sukhodolsky 2003-05-30 06:20:56 +00:00
parent 6625258bde
commit 4628bc229d
1 changed files with 34 additions and 34 deletions

View File

@ -1,34 +1,34 @@
import java.io.IOException;
public class InputRedundantThrows
{
// wrong contains subclasses
InputRedundantThrows()
throws java.io.IOException, java.io.FileNotFoundException
{
}
// wrong uncheck exception
void method1()
throws RuntimeException
{
}
// wrong - duplicate
void method2()
throws IOException, java.io.IOException
{
}
// bad - no information for checking exception
void method3()
throws WrongException
{
}
// right
void method4()
throws IOException, ClassNotFoundException
{
}
}
import java.io.IOException;
public class InputRedundantThrows
{
// wrong contains subclasses
InputRedundantThrows()
throws java.io.IOException, java.io.FileNotFoundException
{
}
// wrong uncheck exception
void method1()
throws RuntimeException
{
}
// wrong - duplicate
void method2()
throws IOException, java.io.IOException
{
}
// bad - no information for checking exception
void method3()
throws WrongException
{
}
// right
void method4()
throws IOException, ClassNotFoundException
{
}
}