mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-30 01:20:53 +07:00
Before when removing more than one element, nextLeaf was invalid as well. The invalidation check below did not work as parent might still exist (element might be relinked to dummy file) Fixes IDEA-187531 "Add on demand static import" with intervening comment and an empty line breaks code
22 lines
574 B
Java
22 lines
574 B
Java
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
|
|
}
|
|
}
|
|
|
|
}
|