-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added code to suppress remaining else-if related false positives.
Created new jar for release
- Loading branch information
1 parent
5700a1c
commit c1e6207
Showing
7 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
7 changes: 1 addition & 6 deletions
7
jar2bpl_test/regression/false_positives/fp08/FalsePositives08.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,15 @@ | ||
|
||
|
||
public class FalsePositives08 { | ||
|
||
Object constraintsLock; | ||
private String[] constraints; | ||
private String constraint; | ||
public void fp01() { | ||
// Add this constraint to the set for our web application | ||
synchronized (constraintsLock) { | ||
String results[] = | ||
new String[constraints.length + 1]; | ||
for (int i = 0; i < constraints.length; i++) | ||
results[i] = constraints[i]; | ||
for (int i = 0; i < constraints.length; i++); | ||
results[constraints.length] = constraint; | ||
constraints = results; | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|