Skip to content

Commit

Permalink
~ sonar: casting one of the operands to a long
Browse files Browse the repository at this point in the history
  • Loading branch information
kasisoft committed Aug 20, 2024
1 parent 2ba8c03 commit fa62fa3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ public enum FileSize {

Byte(1L, 1, "B", "B"),
KiloByte(1000L, 1024, "KB", "KiB"),
MegaByte(1000L * 1000, 1024 * 1024, "MB", "MiB"),
GigaByte(1000L * 1000 * 1000, 1024 * 1024 * 1024, "GB", "GiB"),
MegaByte(1000L * 1000, 1024L * 1024, "MB", "MiB"),
GigaByte(1000L * 1000 * 1000, 1024L * 1024 * 1024, "GB", "GiB"),
TerraByte(0L, 0L, "TB", "TiB");

private long humanSize;
Expand Down

0 comments on commit fa62fa3

Please sign in to comment.