global: java access control has important semantic meaning

It's not right to blindly follow all of AndroidStudio's suggestions,
especially for things in tunnel/ which comprise useful API.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld
2020-03-10 08:44:38 -06:00
parent 8f85e4c88f
commit 6b304391b5
4 changed files with 4 additions and 4 deletions
@@ -128,7 +128,7 @@ public class ModuleLoader {
}
@Nullable
private static Map<String, Sha256Digest> verifySignedHashes(final String signifyDigest) {
private Map<String, Sha256Digest> verifySignedHashes(final String signifyDigest) {
final byte[] publicKeyBytes = Base64.decode(MODULE_PUBLIC_KEY_BASE64, Base64.DEFAULT);
if (publicKeyBytes == null || publicKeyBytes.length != 32 + 10 || publicKeyBytes[0] != 'E' || publicKeyBytes[1] != 'd')
@@ -177,7 +177,7 @@ public class RootShell {
}
}
private void stop() {
public void stop() {
synchronized (lock) {
if (process != null) {
process.destroy();
@@ -107,7 +107,7 @@ public final class ToolsInstaller {
}
}
private boolean extract() throws IOException {
public boolean extract() throws IOException {
localBinaryDir.mkdirs();
final File[] files = new File[EXECUTABLES.length];
final File[] tempFiles = new File[EXECUTABLES.length];