Simplify getLineSeparator in PgpDecryptVerify

This commit is contained in:
Dominik Schürmann
2015-07-07 12:35:26 +02:00
parent f4d81bb5de
commit da058e0489

View File

@@ -1194,12 +1194,6 @@ public class PgpDecryptVerify extends BaseOperation<PgpDecryptVerifyInputParcel>
private static byte[] getLineSeparator() {
String nl = System.getProperty("line.separator");
byte[] nlBytes = new byte[nl.length()];
for (int i = 0; i != nlBytes.length; i++) {
nlBytes[i] = (byte) nl.charAt(i);
}
return nlBytes;
return nl.getBytes();
}
}