Java 17 features (#15493)
- add missing @override - Java style array syntax - remove redundant modifiers - always move String constants to left side in comparisons - simplify lambda expressions and return statements - use replace instead of replaceAll w/o regex Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
@@ -95,7 +95,7 @@ public class VoskSTTService implements STTService {
|
||||
try {
|
||||
String osName = System.getProperty("os.name", "generic").toLowerCase();
|
||||
String osArch = System.getProperty("os.arch", "").toLowerCase();
|
||||
if (osName.contains("linux") && (osArch.equals("arm") || osArch.equals("armv7l"))) {
|
||||
if (osName.contains("linux") && ("arm".equals(osArch) || "armv7l".equals(osArch))) {
|
||||
// workaround for loading required shared libraries
|
||||
loadSharedLibrariesArmv7l();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user