mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +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() {
|
public JzlibInputOutputStream() {
|
||||||
compressionMethod = "zlib";
|
super("zlib");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -63,7 +63,7 @@ public class Java7ZlibInputOutputStream extends XMPPInputOutputStream {
|
||||||
}
|
}
|
||||||
|
|
||||||
public Java7ZlibInputOutputStream() {
|
public Java7ZlibInputOutputStream() {
|
||||||
compressionMethod = "zlib";
|
super("zlib");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -35,7 +35,11 @@ public abstract class XMPPInputOutputStream {
|
||||||
XMPPInputOutputStream.flushMethod = flushMethod;
|
XMPPInputOutputStream.flushMethod = flushMethod;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String compressionMethod;
|
protected final String compressionMethod;
|
||||||
|
|
||||||
|
protected XMPPInputOutputStream(String compressionMethod) {
|
||||||
|
this.compressionMethod = compressionMethod;
|
||||||
|
}
|
||||||
|
|
||||||
public String getCompressionMethod() {
|
public String getCompressionMethod() {
|
||||||
return compressionMethod;
|
return compressionMethod;
|
||||||
|
|
Loading…
Reference in a new issue