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:
Michael W
2024-12-17 19:04:38 +01:00
parent e335f6bec8
commit e128bff457
77 changed files with 202 additions and 334 deletions

View File

@@ -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];
}
/**