IDEA-84224

This commit is contained in:
Alexey Kudravtsev
2012-04-10 12:06:43 +04:00
parent 0925c6dfcb
commit d4ac758388
9 changed files with 132 additions and 90 deletions
@@ -1,4 +1,4 @@
// "Add Exception(s) to Method Signature" "true"
// "Add Exception to Method Signature" "true"
class C {
static class E1 extends Exception { }
@@ -1,4 +1,4 @@
// "Add Exception(s) to Method Signature" "true"
// "Add Exception to Method Signature" "true"
class C {
static class E1 extends Exception { }
static class E2 extends Exception { }
@@ -0,0 +1,11 @@
// "Add Exception to Method Signature" "true"
import java.io.*;
class C {
String detectEncoding(File inputFile) throws IOException {
final BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(inputFile), "UTF-8"));
final String line = reader.<caret>readLine();
return "ISO-8859-1";
}
}
@@ -1,4 +1,4 @@
// "Add Exception(s) to Method Signature" "true"
// "Add Exception to Method Signature" "true"
class C {
static class E1 extends Exception { }
@@ -1,4 +1,4 @@
// "Add Exception(s) to Method Signature" "true"
// "Add Exception to Method Signature" "true"
class C {
static class E1 extends Exception { }
static class E2 extends Exception { }
@@ -0,0 +1,11 @@
// "Add Exception to Method Signature" "true"
import java.io.*;
class C {
String detectEncoding(File inputFile) throws FileNotFoundException, ObjectStreamException {
final BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(inputFile), "UTF-8"));
final String line = reader.<caret>readLine();
return "ISO-8859-1";
}
}