-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b53
-
generic
-
generic
ZipEntry contains these fields:
int flag; // bit flags
int version; // version needed to extract
long offset; // offset of loc header
which are essentially unused, and used as temporary storage by
other classes in the same package. This is very poor programming
practice, and that space should be recovered and the uses of those
fields should be removed. All the fields should be private instead
of package-private, as well.
More difficult is to save the unconditional initialization of comment
and extra by using a lazy loading technique. Because ZipEntry's are
mutable and not always obtained from a ZipFile, this might
require some trickery.
###@###.### 2005-04-08 19:14:08 GMT
int flag; // bit flags
int version; // version needed to extract
long offset; // offset of loc header
which are essentially unused, and used as temporary storage by
other classes in the same package. This is very poor programming
practice, and that space should be recovered and the uses of those
fields should be removed. All the fields should be private instead
of package-private, as well.
More difficult is to save the unconditional initialization of comment
and extra by using a lazy loading technique. Because ZipEntry's are
mutable and not always obtained from a ZipFile, this might
require some trickery.
###@###.### 2005-04-08 19:14:08 GMT