mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-02 11:05:29 -04:00
TMI-TIFF: Rolled back some breaking changes.
This commit is contained in:
parent
94db6b4a6f
commit
f8369fb5b6
@ -197,7 +197,7 @@ public final class JPEGSegmentUtil {
|
||||
|
||||
@Override
|
||||
public boolean contains(Object o) {
|
||||
return o instanceof String;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
@ -209,13 +209,13 @@ public final class JPEGSegmentUtil {
|
||||
|
||||
@Override
|
||||
public List<String> get(Object key) {
|
||||
return containsKey(key) && JPEGSegment.isAppSegmentMarker((Integer) key) ? ALL_IDS : null;
|
||||
return key instanceof Integer && JPEGSegment.isAppSegmentMarker((Integer) key) ? ALL_IDS : null;
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean containsKey(Object key) {
|
||||
return key instanceof Integer;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user