File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
src/main/java/me/replydev/qubo Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ public class CLI {
37
37
*/
38
38
void init (String [] args ) {
39
39
printLogo ();
40
- checkEncodingParameter ();
41
40
standardRun (args );
42
41
43
42
log .info ("Scan terminated - {} ({}) in total" ,
@@ -68,24 +67,4 @@ private void standardRun(String[] args) {
68
67
new CommandLineArgs (args ).showHelpAndExit ();
69
68
}
70
69
}
71
-
72
- /**
73
- * Checks if the JVM is running in UTF-8 encoding mode and exits if not.
74
- */
75
- private void checkEncodingParameter () {
76
- if (!isUTF8Mode ()) {
77
- log .error ("The scanner isn't running in UTF-8 mode!" );
78
- log .error ("Put \" -Dfile.encoding=UTF-8\" in JVM args in order to run the program correctly!" );
79
- System .exit (-1 );
80
- }
81
- }
82
-
83
- /**
84
- * Checks if UTF-8 mode is enabled for file encoding.
85
- * @return true if UTF-8 mode is set, false otherwise.
86
- */
87
- private boolean isUTF8Mode () {
88
- List <String > arguments = ManagementFactory .getRuntimeMXBean ().getInputArguments ();
89
- return arguments .stream ().anyMatch (arg -> arg .equals ("-Dfile.encoding=UTF-8" ));
90
- }
91
70
}
You can’t perform that action at this time.
0 commit comments