Fix for compilation error

This commit is contained in:
Trustin Lee 2009-10-21 10:31:56 +00:00
parent 96cb575986
commit e10cc133f5

View File

@ -79,7 +79,8 @@ public final class ZStream {
return inflateInit(w, WrapperType.ZLIB);
}
public int inflateInit(int w, Enum<?> wrapperType) {
@SuppressWarnings("unchecked")
public int inflateInit(int w, Enum wrapperType) {
istate = new Inflate();
return istate.inflateInit(this, w, (WrapperType) wrapperType);
}
@ -118,7 +119,8 @@ public final class ZStream {
return deflateInit(level, JZlib.MAX_WBITS);
}
public int deflateInit(int level, Enum<?> wrapperType) {
@SuppressWarnings("unchecked")
public int deflateInit(int level, Enum wrapperType) {
return deflateInit(level, JZlib.MAX_WBITS, wrapperType);
}
@ -126,7 +128,8 @@ public final class ZStream {
return deflateInit(level, bits, WrapperType.ZLIB);
}
public int deflateInit(int level, int bits, Enum<?> wrapperType) {
@SuppressWarnings("unchecked")
public int deflateInit(int level, int bits, Enum wrapperType) {
dstate = new Deflate();
return dstate.deflateInit(this, level, bits, (WrapperType) wrapperType);
}