mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-02 11:05:29 -04:00
Removed debug output accidentally committed.
Fixed a test.
This commit is contained in:
parent
b45f2ac09f
commit
63b5ae9994
@ -96,9 +96,9 @@ public final class JPEGSegmentUtil {
|
||||
|
||||
JPEGSegment segment;
|
||||
try {
|
||||
// while (!isImageDone(segment = readSegment(stream, segmentIdentifiers))) {
|
||||
while (!isImageDone(segment = readSegment(stream, ALL_SEGMENTS))) {
|
||||
System.err.println("segment: " + segment);
|
||||
while (!isImageDone(segment = readSegment(stream, segmentIdentifiers))) {
|
||||
// while (!isImageDone(segment = readSegment(stream, ALL_SEGMENTS))) {
|
||||
// System.err.println("segment: " + segment);
|
||||
|
||||
if (isRequested(segment, segmentIdentifiers)) {
|
||||
if (segments == Collections.EMPTY_LIST) {
|
||||
|
@ -73,8 +73,8 @@ public class JPEGSegmentTest extends ObjectAbstractTestCase {
|
||||
|
||||
@Override
|
||||
protected Object makeObject() {
|
||||
byte[] bytes = new byte[14];
|
||||
System.arraycopy("JFIF".getBytes(Charset.forName("ascii")), 0, bytes, 0, 4);
|
||||
return new JPEGSegment(0xFFE0, bytes);
|
||||
byte[] bytes = new byte[11];
|
||||
System.arraycopy("Exif".getBytes(Charset.forName("ascii")), 0, bytes, 0, 4);
|
||||
return new JPEGSegment(0xFFE1, bytes);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user