1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 08:12:05 +01:00

Use toLowerCase(Locale.US) in FromMatchesFilter

This commit is contained in:
Florian Schmaus 2014-04-03 14:35:10 +02:00
parent 4a60a68802
commit a016910baf

View file

@ -17,6 +17,8 @@
package org.jivesoftware.smack.filter; package org.jivesoftware.smack.filter;
import java.util.Locale;
import org.jivesoftware.smack.packet.Packet; import org.jivesoftware.smack.packet.Packet;
import org.jivesoftware.smack.util.StringUtils; import org.jivesoftware.smack.util.StringUtils;
@ -46,7 +48,7 @@ public class FromMatchesFilter implements PacketFilter {
* @param matchBare * @param matchBare
*/ */
public FromMatchesFilter(String address, boolean matchBare) { public FromMatchesFilter(String address, boolean matchBare) {
this.address = (address == null) ? null : address.toLowerCase(); this.address = (address == null) ? null : address.toLowerCase(Locale.US);
matchBareJID = matchBare; matchBareJID = matchBare;
} }