1
0
Fork 0
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:
Florian Schmaus 2014-12-19 11:15:01 +01:00
parent f4c7e2e086
commit eb48d02673
3 changed files with 7 additions and 3 deletions

View file

@ -40,7 +40,7 @@ public class JzlibInputOutputStream extends XMPPInputOutputStream {
} }
public JzlibInputOutputStream() { public JzlibInputOutputStream() {
compressionMethod = "zlib"; super("zlib");
} }
@Override @Override

View file

@ -63,7 +63,7 @@ public class Java7ZlibInputOutputStream extends XMPPInputOutputStream {
} }
public Java7ZlibInputOutputStream() { public Java7ZlibInputOutputStream() {
compressionMethod = "zlib"; super("zlib");
} }
@Override @Override

View file

@ -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;