mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-10 23:21:07 +01:00
Remove deprecated constructor for FromMatchesFilter (SMACK-71)
This commit is contained in:
parent
62de78ef7c
commit
86a4bfa43f
8 changed files with 16 additions and 104 deletions
|
|
@ -313,7 +313,7 @@ public class ChatManager {
|
|||
|
||||
PacketCollector createPacketCollector(Chat chat) {
|
||||
return connection.createPacketCollector(new AndFilter(new ThreadFilter(chat.getThreadID()),
|
||||
new FromMatchesFilter(chat.getParticipant())));
|
||||
FromMatchesFilter.create(chat.getParticipant())));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright 2003-2007 Jive Software.
|
||||
* Copyright 2003-2014 Jive Software.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -36,14 +36,6 @@ public class FromMatchesFilter implements PacketFilter {
|
|||
*/
|
||||
private boolean matchBareJID = false;
|
||||
|
||||
/**
|
||||
* @see FromMatchesFilter#create(String)
|
||||
*/
|
||||
@Deprecated
|
||||
public FromMatchesFilter(String address) {
|
||||
this(address, "".equals(StringUtils.parseResource(address)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a filter matching on the "from" field. The from address must be the same as the
|
||||
* filter address. The second parameter specifies whether the full or the bare addresses are
|
||||
|
|
@ -106,6 +98,7 @@ public class FromMatchesFilter implements PacketFilter {
|
|||
}
|
||||
|
||||
public String toString() {
|
||||
return "FromMatchesFilter: " + address;
|
||||
String matchMode = matchBareJID ? "bare" : "full";
|
||||
return "FromMatchesFilter (" +matchMode + "): " + address;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue