Skip to content

Commit

Permalink
fix: min version and test expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
elsapet committed Feb 13, 2024
1 parent d7e95d8 commit c6a6b0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rules/java/lang/apache_commons_collection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ patterns:
dependency_check: true
dependency:
name: commons-collections3
min_version: 3.2.2
min_version: 3.2.1
filename: maven-dependencies.json
languages:
- java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class Foo {
public static void bad(String[] args) throws Exception {
// ok - version 3.2.2 +
// bearer:expected java_lang_apache_commons_collection
InvokerTransformer transformer = new InvokerTransformer("exec", new Class[]{String.class}, new Object[]{"calc.exe"});
Object result = transformer.transform(null);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

public class Foo {
public static void bad(String[] args) throws Exception {
// bearer:expected java_lang_apache_commons_collection
// ok - version 3.2.2 +
InvokerTransformer transformer = new InvokerTransformer("exec", new Class[]{String.class}, new Object[]{"calc.exe"});
Object result = transformer.transform(null);
}
Expand Down

0 comments on commit c6a6b0d

Please sign in to comment.