checkstyle: forbid inner assignments
This commit is contained in:
parent
6a0c230493
commit
0f27374452
@ -72,14 +72,16 @@ public class Hasher {
|
||||
digest.update(buffer, 0, read);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
return hashCache = "";
|
||||
hashCache = "";
|
||||
return hashCache;
|
||||
} finally {
|
||||
Utils.closeQuietly(input);
|
||||
}
|
||||
} else {
|
||||
digest.update(array);
|
||||
}
|
||||
return hashCache = hex(digest.digest());
|
||||
hashCache = hex(digest.digest());
|
||||
return hashCache;
|
||||
}
|
||||
|
||||
// Compare the calculated hash to another string, ignoring case,
|
||||
|
@ -83,7 +83,8 @@ public class AsyncDownloaderFromAndroid implements AsyncDownloader {
|
||||
}
|
||||
|
||||
// Check if the download is complete
|
||||
if ((downloadManagerId = isDownloadComplete(context, uniqueDownloadId)) > 0) {
|
||||
downloadManagerId = isDownloadComplete(context, uniqueDownloadId);
|
||||
if (downloadManagerId > 0) {
|
||||
// clear the download
|
||||
dm.remove(downloadManagerId);
|
||||
|
||||
|
@ -89,7 +89,7 @@
|
||||
<module name="EmptyStatement" />
|
||||
<!--<module name="HiddenField" />-->
|
||||
<module name="IllegalInstantiation" />
|
||||
<!--<module name="InnerAssignment" />-->
|
||||
<module name="InnerAssignment" />
|
||||
<module name="DefaultComesLast" />
|
||||
<!--<module name="MissingSwitchDefault" />-->
|
||||
<module name="FallThrough" />
|
||||
|
Loading…
x
Reference in New Issue
Block a user