mirror of
https://github.com/revanced/jadb.git
synced 2025-05-09 10:54:29 +02:00
Fix: Utility classes should not have public constructors (squid:S1118)
This commit is contained in:
parent
aec31abf1f
commit
42f0de589b
@ -7,6 +7,10 @@ import java.io.OutputStream;
|
||||
import java.nio.charset.Charset;
|
||||
|
||||
public class Stream {
|
||||
private Stream() {
|
||||
throw new IllegalStateException("Utility class");
|
||||
}
|
||||
|
||||
public static void copy(InputStream in, OutputStream out) throws IOException {
|
||||
byte[] buffer = new byte[1024 * 10];
|
||||
int len;
|
||||
|
@ -1,6 +1,10 @@
|
||||
package se.vidstige.jadb.managers;
|
||||
|
||||
public class Bash {
|
||||
private Bash() {
|
||||
throw new IllegalStateException("Utility class");
|
||||
}
|
||||
|
||||
public static String quote(String s) {
|
||||
// Check that s contains no whitespace
|
||||
if (s.matches("\\S+")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user