mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-06-23 07:10:11 -04:00
disable annoying or erronous PMD errors
This commit is contained in:
@@ -68,7 +68,7 @@ public class Hasher {
|
||||
InputStream input = null;
|
||||
try {
|
||||
input = new BufferedInputStream(new FileInputStream(file));
|
||||
while ((read = input.read(buffer)) > 0) {
|
||||
while ((read = input.read(buffer)) > 0) { // NOPMD Avoid assignments in operands
|
||||
digest.update(buffer, 0, read);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
||||
@@ -173,7 +173,7 @@ public class Provisioner {
|
||||
try {
|
||||
in = new ZipInputStream(new FileInputStream(file));
|
||||
ZipEntry zipEntry;
|
||||
while ((zipEntry = in.getNextEntry()) != null) {
|
||||
while ((zipEntry = in.getNextEntry()) != null) { // NOPMD Avoid assignments in operands
|
||||
String name = zipEntry.getName();
|
||||
if ("repo_provision.json".equals(name)) {
|
||||
if (plain.getRepositoryProvision() != null) {
|
||||
|
||||
@@ -524,7 +524,7 @@ public final class Utils {
|
||||
|
||||
byte[] dataBytes = new byte[8192];
|
||||
int nread;
|
||||
while ((nread = bis.read(dataBytes)) != -1) {
|
||||
while ((nread = bis.read(dataBytes)) != -1) { // NOPMD Avoid assignments in operands
|
||||
md.update(dataBytes, 0, nread);
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import android.app.Activity;
|
||||
* org.fdroid.fdroid.views.updates.UpdatesAdapter#delegatesManager}
|
||||
* to specify a data type more specific than just {@link Object}.
|
||||
*/
|
||||
public abstract class AppUpdateData {
|
||||
public abstract class AppUpdateData { // NOPMD This abstract class does not have any abstract methods
|
||||
public final Activity activity;
|
||||
|
||||
public AppUpdateData(Activity activity) {
|
||||
|
||||
Reference in New Issue
Block a user