Messaging: Replace explicit types
Change-Id: I2165b3dec73973a2a82d8b3c7c364b5f011e597d
This commit is contained in:
@@ -323,7 +323,7 @@ public class ExifInterface {
|
||||
* Tags that contain offset markers. These are included in the banned
|
||||
* defines.
|
||||
*/
|
||||
private static final HashSet<Short> sOffsetTags = new HashSet<Short>();
|
||||
private static final HashSet<Short> sOffsetTags = new HashSet<>();
|
||||
static {
|
||||
sOffsetTags.add(getTrueTagKey(TAG_GPS_IFD));
|
||||
sOffsetTags.add(getTrueTagKey(TAG_EXIF_IFD));
|
||||
@@ -335,7 +335,7 @@ public class ExifInterface {
|
||||
/**
|
||||
* Tags with definitions that cannot be overridden (banned defines).
|
||||
*/
|
||||
protected static final HashSet<Short> sBannedDefines = new HashSet<Short>(sOffsetTags);
|
||||
protected static final HashSet<Short> sBannedDefines = new HashSet<>(sOffsetTags);
|
||||
static {
|
||||
sBannedDefines.add(getTrueTagKey(TAG_NULL));
|
||||
sBannedDefines.add(getTrueTagKey(TAG_JPEG_INTERCHANGE_FORMAT_LENGTH));
|
||||
@@ -2392,7 +2392,7 @@ public class ExifInterface {
|
||||
protected static int[] getAllowedIfdsFromInfo(int info) {
|
||||
int ifdFlags = getAllowedIfdFlagsFromInfo(info);
|
||||
int[] ifds = IfdData.getIfds();
|
||||
ArrayList<Integer> l = new ArrayList<Integer>();
|
||||
ArrayList<Integer> l = new ArrayList<>();
|
||||
for (int i = 0; i < IfdId.TYPE_IFD_COUNT; i++) {
|
||||
int flag = (ifdFlags >> i) & 1;
|
||||
if (flag == 1) {
|
||||
|
||||
Reference in New Issue
Block a user