| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -271,7 +271,7 @@ private long estimateSize(final PackingFile packingFile) { | |||
| 271 | 271 | /** | |
| 272 | 272 | * Packs the archive. | |
| 273 | 273 | * | |
| 274 | - * @throws Pack200Exception TODO | ||
| 274 | + * @throws Pack200Exception If a Pack200 semantic error occurs. | ||
| 275 | 275 | * @throws IOException If an I/O error occurs. | |
| 276 | 276 | */ | |
| 277 | 277 | public void pack() throws Pack200Exception, IOException { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -353,7 +353,7 @@ protected int[] cpEntryOrNullListToArray(final List<? extends ConstantPoolEntry> | |||
| 353 | 353 | * @param ints the band | |
| 354 | 354 | * @param defaultCodec the default Codec | |
| 355 | 355 | * @return the encoded band | |
| 356 | - * @throws Pack200Exception TODO | ||
| 356 | + * @throws Pack200Exception If a Pack200 semantic error occurs. | ||
| 357 | 357 | */ | |
| 358 | 358 | public byte[] encodeBandInt(final String name, final int[] ints, final BHSDCodec defaultCodec) throws Pack200Exception { | |
| 359 | 359 | byte[] encodedBand = null; | |
@@ -433,7 +433,7 @@ public byte[] encodeBandInt(final String name, final int[] ints, final BHSDCodec | |||
| 433 | 433 | * @param hiCodec Codec for the high 32-bits band | |
| 434 | 434 | * @param haveHiFlags ignores the high band if true as all values would be zero | |
| 435 | 435 | * @return the encoded band | |
| 436 | - * @throws Pack200Exception TODO | ||
| 436 | + * @throws Pack200Exception If a Pack200 semantic error occurs. | ||
| 437 | 437 | */ | |
| 438 | 438 | protected byte[] encodeFlags(final String name, final long[] flags, final BHSDCodec loCodec, final BHSDCodec hiCodec, final boolean haveHiFlags) | |
| 439 | 439 | throws Pack200Exception { | |
@@ -490,24 +490,24 @@ protected byte[] encodeFlags(final String name, final long[][] flags, final BHSD | |||
| 490 | 490 | } | |
| 491 | 491 | ||
| 492 | 492 | /** | |
| 493 | - * Encode a single value with the given Codec | ||
| 493 | + * Encodes a single value with the given Codec. | ||
| 494 | 494 | * | |
| 495 | - * @param value the value to encode | ||
| 496 | - * @param codec Codec to use | ||
| 497 | - * @return the encoded value | ||
| 498 | - * @throws Pack200Exception TODO | ||
| 495 | + * @param value the value to encode. | ||
| 496 | + * @param codec Codec to use. | ||
| 497 | + * @return the encoded value. | ||
| 498 | + * @throws Pack200Exception If a Pack200 semantic error occurs. | ||
| 499 | 499 | */ | |
| 500 | 500 | public byte[] encodeScalar(final int value, final BHSDCodec codec) throws Pack200Exception { | |
| 501 | 501 | return codec.encode(value); | |
| 502 | 502 | } | |
| 503 | 503 | ||
| 504 | 504 | /** | |
| 505 | - * Encode a band without considering other Codecs | ||
| 505 | + * Encode a band without considering other Codecs. | ||
| 506 | 506 | * | |
| 507 | - * @param band the band | ||
| 508 | - * @param codec the Codec to use | ||
| 509 | - * @return the encoded band | ||
| 510 | - * @throws Pack200Exception TODO | ||
| 507 | + * @param band the band. | ||
| 508 | + * @param codec the Codec to use. | ||
| 509 | + * @return the encoded band. | ||
| 510 | + * @throws Pack200Exception If a Pack200 semantic error occurs. | ||
| 511 | 511 | */ | |
| 512 | 512 | public byte[] encodeScalar(final int[] band, final BHSDCodec codec) throws Pack200Exception { | |
| 513 | 513 | return codec.encode(band); | |
@@ -706,11 +706,11 @@ protected long[] longListToArray(final List<Long> longList) { | |||
| 706 | 706 | } | |
| 707 | 707 | ||
| 708 | 708 | /** | |
| 709 | - * Writes the packed set of bands to the given output stream | ||
| 709 | + * Writes the packed set of bands to the given output stream. | ||
| 710 | 710 | * | |
| 711 | 711 | * @param out TODO | |
| 712 | 712 | * @throws IOException If an I/O error occurs. | |
| 713 | - * @throws Pack200Exception TODO | ||
| 713 | + * @throws Pack200Exception If a Pack200 semantic error occurs. | ||
| 714 | 714 | */ | |
| 715 | 715 | public abstract void pack(OutputStream out) throws IOException, Pack200Exception; | |
| 716 | 716 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -174,28 +174,28 @@ public int[] decodeInts(final int n, final InputStream in, final int firstValue) | |||
| 174 | 174 | /** | |
| 175 | 175 | * Encodes a single value into a sequence of bytes. Note that this method can only be used for non-delta encodings. | |
| 176 | 176 | * | |
| 177 | - * @param value the value to encode | ||
| 178 | - * @return the encoded bytes | ||
| 179 | - * @throws Pack200Exception TODO | ||
| 177 | + * @param value the value to encode. | ||
| 178 | + * @return the encoded bytes. | ||
| 179 | + * @throws Pack200Exception If a Pack200 semantic error occurs. | ||
| 180 | 180 | */ | |
| 181 | 181 | public abstract byte[] encode(int value) throws Pack200Exception; | |
| 182 | 182 | ||
| 183 | 183 | /** | |
| 184 | 184 | * Encodes a single value into a sequence of bytes. | |
| 185 | 185 | * | |
| 186 | - * @param value the value to encode | ||
| 187 | - * @param last the previous value encoded (for delta encodings) | ||
| 188 | - * @return the encoded bytes | ||
| 189 | - * @throws Pack200Exception TODO | ||
| 186 | + * @param value the value to encode. | ||
| 187 | + * @param last the previous value encoded (for delta encodings). | ||
| 188 | + * @return the encoded bytes. | ||
| 189 | + * @throws Pack200Exception If a Pack200 semantic error occurs. | ||
| 190 | 190 | */ | |
| 191 | 191 | public abstract byte[] encode(int value, int last) throws Pack200Exception; | |
| 192 | 192 | ||
| 193 | 193 | /** | |
| 194 | - * Encodes a sequence of integers into a byte array | ||
| 194 | + * Encodes a sequence of integers into a byte array. | ||
| 195 | 195 | * | |
| 196 | - * @param ints the values to encode | ||
| 197 | - * @return byte[] encoded bytes | ||
| 198 | - * @throws Pack200Exception if there is a problem encoding any of the values | ||
| 196 | + * @param ints the values to encode. | ||
| 197 | + * @return byte[] encoded bytes. | ||
| 198 | + * @throws Pack200Exception if there is a problem encoding any of the values. | ||
| 199 | 199 | */ | |
| 200 | 200 | public byte[] encode(final int[] ints) throws Pack200Exception { | |
| 201 | 201 | int total = 0; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -562,10 +562,10 @@ public boolean lastConstantHadWideIndex() { | |||
| 562 | 562 | * The main method on Segment. Reads in all the class files, packs them and then writes the packed segment out to the given OutputStream. | |
| 563 | 563 | * | |
| 564 | 564 | * @param segmentUnit TODO | |
| 565 | - * @param out the OutputStream to write the packed Segment to | ||
| 566 | - * @param options packing options | ||
| 565 | + * @param out the OutputStream to write the packed Segment to. | ||
| 566 | + * @param options packing options. | ||
| 567 | 567 | * @throws IOException If an I/O error occurs. | |
| 568 | - * @throws Pack200Exception TODO | ||
| 568 | + * @throws Pack200Exception If a Pack200 semantic error occurs. | ||
| 569 | 569 | */ | |
| 570 | 570 | public void pack(final SegmentUnit segmentUnit, final OutputStream out, final PackingOptions options) throws IOException, Pack200Exception { | |
| 571 | 571 | this.options = options; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -533,7 +533,7 @@ private void parseClassAttrBands(final InputStream in) throws IOException, Pack2 | |||
| 533 | 533 | * @param in TODO | |
| 534 | 534 | * @param classAttrCalls TODO | |
| 535 | 535 | * @return the number of backwards callables. | |
| 536 | - * @throws Pack200Exception TODO | ||
| 536 | + * @throws Pack200Exception If a Pack200 semantic error occurs. | ||
| 537 | 537 | * @throws IOException If an I/O error occurs. | |
| 538 | 538 | */ | |
| 539 | 539 | private int parseClassMetadataBands(final InputStream in, final int[] classAttrCalls) throws Pack200Exception, IOException { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -686,7 +686,7 @@ private StringReader getStreamUpToMatchingBracket(final StringReader stream) thr | |||
| 686 | 686 | * @param occurrenceCount TODO | |
| 687 | 687 | * @return Class file attributes as a List of {@link Attribute}. | |
| 688 | 688 | * @throws IOException If an I/O error occurs. | |
| 689 | - * @throws Pack200Exception TODO | ||
| 689 | + * @throws Pack200Exception If a Pack200 semantic error occurs. | ||
| 690 | 690 | */ | |
| 691 | 691 | public List<Attribute> parseAttributes(final InputStream in, final int occurrenceCount) throws IOException, Pack200Exception { | |
| 692 | 692 | for (final AttributeLayoutElement element : attributeLayoutElements) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -59,10 +59,6 @@ public final class TimeUtils { | |||
| 59 | 59 | /** | |
| 60 | 60 | * Tests whether a FileTime can be safely represented in the standard Unix time. | |
| 61 | 61 | * | |
| 62 | - * <p> | ||
| 63 | - * TODO ? If the FileTime is null, this method always returns true. | ||
| 64 | - * </p> | ||
| 65 | - * | ||
| 66 | 62 | * @param time the FileTime to evaluate, can be null. | |
| 67 | 63 | * @return true if the time exceeds the minimum or maximum Unix time, false otherwise. | |
| 68 | 64 | * @deprecated use {@link FileTimes#isUnixTime(FileTime)} | |
| Back | FazBrowse Home | New Git URL |
0 commit comments