Skip to content

Commit

Permalink
8274050: Unnecessary Vector usage in javax.crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
turbanoff committed Sep 28, 2021
1 parent 6ac642f commit 9e01a41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Expand Up @@ -343,8 +343,7 @@ private CryptoPermission[] getMinimum(PermissionCollection thisPc,
}
}

CryptoPermission[] ret = permList.toArray(new CryptoPermission[0]);
return ret;
return permList.toArray(new CryptoPermission[0]);
}

/**
Expand Down Expand Up @@ -387,8 +386,7 @@ private CryptoPermission[] getMinimum(int maxKeySize,
}
}

CryptoPermission[] ret = permList.toArray(new CryptoPermission[0]);
return ret;
return permList.toArray(new CryptoPermission[0]);
}

/**
Expand Down
Expand Up @@ -487,8 +487,7 @@ CryptoPermission[] getPermissions() {
}
}

CryptoPermission[] ret = result.toArray(new CryptoPermission[0]);
return ret;
return result.toArray(new CryptoPermission[0]);
}

private boolean isConsistent(String alg, String exemptionMechanism,
Expand Down

0 comments on commit 9e01a41

Please sign in to comment.