File tree 1 file changed +3
-2
lines changed
mariaDB4j-core/src/main/java/ch/vorburger/mariadb4j
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 23
23
import java .io .IOException ;
24
24
import java .net .URL ;
25
25
import java .nio .charset .StandardCharsets ;
26
+ import java .util .Locale ;
26
27
import java .util .concurrent .TimeUnit ;
27
28
import org .apache .commons .io .FileUtils ;
28
29
import org .apache .commons .lang3 .SystemUtils ;
@@ -164,7 +165,7 @@ public static int extractFromClasspathToFile(String packagePath, File toDir) thr
164
165
/**
165
166
* Method to check for the MariaDB installation on the system and then install if not installed.
166
167
*
167
- * @return @{@link boolean} representing whether MariaDB has been installed on the system
168
+ * @return whether MariaDB has been installed on the system
168
169
*/
169
170
public static boolean installMariaDbFromHomebrew () {
170
171
boolean mariadbIsInstalled = false ;
@@ -191,7 +192,7 @@ public static boolean installMariaDbFromHomebrew() {
191
192
192
193
String checkInstallOutput = new String (brewInstall .getInputStream ().readAllBytes (), StandardCharsets .UTF_8 );
193
194
194
- if (checkInstallOutput .toLowerCase ().contains ("error" )) {
195
+ if (checkInstallOutput .toLowerCase (Locale . ROOT ).contains ("error" )) {
195
196
throw new IllegalStateException ("Failed to install mariadb with Homebrew - see " + checkInstallOutput );
196
197
}
197
198
You can’t perform that action at this time.
0 commit comments