mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
IDEA-84224
This commit is contained in:
+1
-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
-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 { }
|
||||
static class E2 extends Exception { }
|
||||
|
||||
+11
@@ -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
-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
-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 { }
|
||||
static class E2 extends Exception { }
|
||||
|
||||
+11
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user