mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
EA-25055 - NPE: ExtractMethodProcessor.addToMethodCallLocation
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
public class ExtractMethods {
|
||||
public void processLine(String line) {
|
||||
<selection>
|
||||
//final Charset charset = myProcessHandler.getCharset();
|
||||
final OutputStream outputStream = null;//myProcessHandler.getProcessInput();
|
||||
try {
|
||||
//byte[] bytes = (line + "\n").getBytes(charset.name());
|
||||
byte[] bytes = (line + "\n").getBytes();
|
||||
outputStream.write(bytes);
|
||||
outputStream.flush();
|
||||
}
|
||||
catch (IOException e) {
|
||||
// ignore
|
||||
}
|
||||
</selection>
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
public class ExtractMethods {
|
||||
public void processLine(String line) {
|
||||
newMethod(line);
|
||||
|
||||
|
||||
}
|
||||
|
||||
private void newMethod(String line) {
|
||||
//final Charset charset = myProcessHandler.getCharset();
|
||||
final OutputStream outputStream = null;//myProcessHandler.getProcessInput();
|
||||
try {
|
||||
//byte[] bytes = (line + "\n").getBytes(charset.name());
|
||||
byte[] bytes = (line + "\n").getBytes();
|
||||
outputStream.write(bytes);
|
||||
outputStream.flush();
|
||||
}
|
||||
catch (IOException e) {
|
||||
// ignore
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user