mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-12-08 06:01:07 +01:00
Make StanzaCollector final
This commit is contained in:
parent
f4ee7dd541
commit
d20a2675a8
2 changed files with 7 additions and 9 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
*
|
||||
* Copyright 2003-2007 Jive Software, 2016-2018 Florian Schmaus.
|
||||
* Copyright 2003-2007 Jive Software, 2016-2019 Florian Schmaus.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -41,7 +41,7 @@ import org.jivesoftware.smack.packet.Stanza;
|
|||
* @see XMPPConnection#createStanzaCollector(StanzaFilter)
|
||||
* @author Matt Tucker
|
||||
*/
|
||||
public class StanzaCollector implements AutoCloseable {
|
||||
public final class StanzaCollector implements AutoCloseable {
|
||||
|
||||
private final StanzaFilter packetFilter;
|
||||
|
||||
|
|
@ -69,7 +69,7 @@ public class StanzaCollector implements AutoCloseable {
|
|||
* @param connection the connection the collector is tied to.
|
||||
* @param configuration the configuration used to construct this collector
|
||||
*/
|
||||
protected StanzaCollector(XMPPConnection connection, Configuration configuration) {
|
||||
StanzaCollector(XMPPConnection connection, Configuration configuration) {
|
||||
this.connection = connection;
|
||||
this.packetFilter = configuration.packetFilter;
|
||||
this.resultQueue = new ArrayDeque<>(configuration.size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue