From 42881eab25bcb39a09e0f4b3c9af3d8b3832538c Mon Sep 17 00:00:00 2001 From: Daniel Bowman Date: Sun, 21 Oct 2018 17:39:23 +0100 Subject: [PATCH] Remove redundant variable setting info --- .../github/daneren2005/dsub/service/DownloadServiceTest.java | 2 +- .../main/java/github/daneren2005/dsub/util/tags/ID3v2File.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/androidTest/java/github/daneren2005/dsub/service/DownloadServiceTest.java b/app/src/androidTest/java/github/daneren2005/dsub/service/DownloadServiceTest.java index ff3548327..1e27d14d5 100644 --- a/app/src/androidTest/java/github/daneren2005/dsub/service/DownloadServiceTest.java +++ b/app/src/androidTest/java/github/daneren2005/dsub/service/DownloadServiceTest.java @@ -278,7 +278,7 @@ private List createMusicSongs(int size) { musicEntry.setBitRate(198); musicEntry.setAlbumId("49"); musicEntry.setDuration(247); - musicEntry.setSize(Long.valueOf(6162717)); + musicEntry.setSize(6162717L); musicEntry.setArtistId("23"); musicEntry.setArtist("The Dada Weatherman"); musicEntry.setCloseness(0); diff --git a/app/src/main/java/github/daneren2005/dsub/util/tags/ID3v2File.java b/app/src/main/java/github/daneren2005/dsub/util/tags/ID3v2File.java index c931c482f..62d2c7c00 100644 --- a/app/src/main/java/github/daneren2005/dsub/util/tags/ID3v2File.java +++ b/app/src/main/java/github/daneren2005/dsub/util/tags/ID3v2File.java @@ -48,7 +48,7 @@ public HashMap getTags(RandomAccessFile s) throws IOException { v3len = ((v3len & 0x7f000000) >> 3) | // for some funky reason, this is encoded as 7*4 bits ((v3len & 0x007f0000) >> 2) | ((v3len & 0x00007f00) >> 1) | - ((v3len & 0x0000007f) >> 0) ; + ((v3len & 0x0000007f)) ; // debug(">> tag version ID3v2."+id3v); // debug(">> LEN= "+v3len+" // "+v3len);