Skip to content

Commit 2f0020d

Browse files
author
Julian Kast
committed
Removed null check for primitive types in SdlFile in JavaSE
1 parent 67b2ef6 commit 2f0020d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • javaSE/src/main/java/com/smartdevicelink/managers/file/filetypes

javaSE/src/main/java/com/smartdevicelink/managers/file/filetypes/SdlFile.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ public int hashCode() {
215215
result += ((getFilePath() == null) ? 0 : Integer.rotateLeft(getFilePath().hashCode(), 2));
216216
result += ((getFileData() == null) ? 0 : Integer.rotateLeft(getFileData().hashCode(), 3));
217217
result += ((getType() == null) ? 0 : Integer.rotateLeft(getType().hashCode(), 4));
218-
result += ((Boolean.valueOf(isStaticIcon) == null) ? 0 : Integer.rotateLeft(Boolean.valueOf(isStaticIcon).hashCode(), 5));
219-
result += ((Boolean.valueOf(isPersistent()) == null) ? 0 : Integer.rotateLeft(Boolean.valueOf(isPersistent()).hashCode(), 6));
218+
result += Integer.rotateLeft(Boolean.valueOf(isStaticIcon()).hashCode(), 5);
219+
result += Integer.rotateLeft(Boolean.valueOf(isPersistent()).hashCode(), 6);
220220
return result;
221221
}
222222

0 commit comments

Comments
 (0)