mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-13 16:41:08 +01:00
Improve 'forward' code
Move Forwarded into forward.packet and remove deprecated methods. Also make fields final. Improve ForwardedProvider: - use INSTANCE of DelayInformationProvider - use loop label - don't throw exceptions in certain cases, instead log
This commit is contained in:
parent
bb8dcc9874
commit
8e74f7faed
7 changed files with 81 additions and 48 deletions
|
|
@ -28,6 +28,8 @@ import org.jxmpp.util.XmppDateTime;
|
|||
*/
|
||||
public class DelayInformationProvider extends AbstractDelayInformationProvider {
|
||||
|
||||
public static final DelayInformationProvider INSTANCE = new DelayInformationProvider();
|
||||
|
||||
@Override
|
||||
protected Date parseDate(String string) throws ParseException {
|
||||
return XmppDateTime.parseXEP0082Date(string);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue