1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-25 21:42:07 +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;
import java.util.Locale;
import org.jivesoftware.smack.packet.Packet;
import org.jivesoftware.smack.util.StringUtils;
@ -46,7 +48,7 @@ public class FromMatchesFilter implements PacketFilter {
* @param 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;
}