mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-09 18:29:45 +02:00
Add errorprone check and fix found errors
Adds gradle-errorprone-plugin 0.0.8, requires Gradle 2.6.
This commit is contained in:
parent
8096da43e0
commit
d728204890
23 changed files with 64 additions and 44 deletions
|
@ -184,8 +184,8 @@ public class XmppHostnameVerifier implements HostnameVerifier {
|
|||
}
|
||||
|
||||
private static boolean matchesPerRfc2818(String name, String template) {
|
||||
String[] nameParts = name.toLowerCase(Locale.US).split(".");
|
||||
String[] templateParts = template.toLowerCase(Locale.US).split(".");
|
||||
String[] nameParts = name.toLowerCase(Locale.US).split("\\.");
|
||||
String[] templateParts = template.toLowerCase(Locale.US).split("\\.");
|
||||
|
||||
if (nameParts.length != templateParts.length) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue