Files
Alexandr Suhinin 8d94384951 fix test data: don't extract edge whitespaces
extract method should keep or eliminate whitespaces on both sides

GitOrigin-RevId: 61b1d0b4ace1e62b4979be76fb3e56419d055d9d
2020-03-31 12:32:01 +00:00

23 lines
575 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
}
}
}