Skip to content

Commit

Permalink
Fix codeql: Boxed variable is never null
Browse files Browse the repository at this point in the history
  • Loading branch information
owefsad committed Jan 8, 2022
1 parent 944bc7f commit d93bc31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void scan(IastSinkModel sink, MethodEvent event) {
Asserts.NOT_NULL("sink.params.position", sink.getPos());
Asserts.NOT_NULL("sink.params.value", event.argumentArray);

for (Integer pos : taintPos) {
for (int pos : taintPos) {
try {
Boolean flag = (Boolean) arguments[pos];
if (flag) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public void scan(IastSinkModel sink, MethodEvent event) {
Asserts.NOT_NULL("sink.params.value", arguments);

Matcher matcher;
for (Integer pos : taintPos) {
for (int pos : taintPos) {
try {
matcher = GOOD_CIPHERS.matcher((CharSequence) arguments[pos]);
if (matcher.find()) {
Expand Down

0 comments on commit d93bc31

Please sign in to comment.