mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
Make compressionMethod final in XMPPInputOutputStream
This commit is contained in:
parent
f4c7e2e086
commit
eb48d02673
3 changed files with 7 additions and 3 deletions
|
@ -40,7 +40,7 @@ public class JzlibInputOutputStream extends XMPPInputOutputStream {
|
|||
}
|
||||
|
||||
public JzlibInputOutputStream() {
|
||||
compressionMethod = "zlib";
|
||||
super("zlib");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -63,7 +63,7 @@ public class Java7ZlibInputOutputStream extends XMPPInputOutputStream {
|
|||
}
|
||||
|
||||
public Java7ZlibInputOutputStream() {
|
||||
compressionMethod = "zlib";
|
||||
super("zlib");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -35,7 +35,11 @@ public abstract class XMPPInputOutputStream {
|
|||
XMPPInputOutputStream.flushMethod = flushMethod;
|
||||
}
|
||||
|
||||
protected String compressionMethod;
|
||||
protected final String compressionMethod;
|
||||
|
||||
protected XMPPInputOutputStream(String compressionMethod) {
|
||||
this.compressionMethod = compressionMethod;
|
||||
}
|
||||
|
||||
public String getCompressionMethod() {
|
||||
return compressionMethod;
|
||||
|
|
Loading…
Reference in a new issue