Messaging: Language cleanup
No unnecessary boxing, enhanced for loops, redundant checks and throws, imports (removal, reordering), possible void returns Change-Id: I7a8e1b2007e3b0906e01b41785c518d02c2f3fab
This commit is contained in:
@@ -1222,10 +1222,10 @@ public class ExifInterface {
|
||||
*/
|
||||
public Long getTagLongValue(int tagId, int ifdId) {
|
||||
long[] l = getTagLongValues(tagId, ifdId);
|
||||
if (l == null || l.length <= 0) {
|
||||
if (l == null || l.length == 0) {
|
||||
return null;
|
||||
}
|
||||
return new Long(l[0]);
|
||||
return l[0];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1241,10 +1241,10 @@ public class ExifInterface {
|
||||
*/
|
||||
public Integer getTagIntValue(int tagId, int ifdId) {
|
||||
int[] l = getTagIntValues(tagId, ifdId);
|
||||
if (l == null || l.length <= 0) {
|
||||
if (l == null || l.length == 0) {
|
||||
return null;
|
||||
}
|
||||
return new Integer(l[0]);
|
||||
return l[0];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1260,10 +1260,10 @@ public class ExifInterface {
|
||||
*/
|
||||
public Byte getTagByteValue(int tagId, int ifdId) {
|
||||
byte[] l = getTagByteValues(tagId, ifdId);
|
||||
if (l == null || l.length <= 0) {
|
||||
if (l == null || l.length == 0) {
|
||||
return null;
|
||||
}
|
||||
return new Byte(l[0]);
|
||||
return l[0];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user