Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
mihai.herda
keyjoana
Commits
6e23d39e
Commit
6e23d39e
authored
Nov 14, 2019
by
Joachim Müssig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set field for all violations if generate violationsWrapper from dispro file
parent
e7410325
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
src/joanakey/violations/ViolationsWrapper.java
src/joanakey/violations/ViolationsWrapper.java
+13
-1
No files found.
src/joanakey/violations/ViolationsWrapper.java
View file @
6e23d39e
...
...
@@ -216,6 +216,18 @@ public class ViolationsWrapper {
JSONArray
violArr
=
jSONObject
.
getJSONArray
(
VIOLATIONS
);
created
.
uncheckedViolations
=
ViolationsSaverLoader
.
generateFromJSON
(
violArr
,
sdg
);
//TODO: set allViolationsToCheck for .dispro load
//TODO: maybe add a json field for allViolations
List
<
IViolation
<
SecurityNode
>>
c
=
new
ArrayList
<>();
for
(
IViolation
<
SecurityNode
>
v
:
created
.
uncheckedViolations
)
{
c
.
add
(
v
);
}
Collection
<?
extends
IViolation
<
SecurityNode
>>
allViolationsToHandle
=
c
;
created
.
allViolationsToCheck
=
allViolationsToHandle
;
// for (IViolation<SecurityNode> v : created.uncheckedViolations) {
// created.allViolationsToCheck.add(v);
// ad
// }
JSONArray
chopArr
=
jSONObject
.
getJSONArray
(
CHOPS
);
for
(
int
i
=
0
;
i
<
chopArr
.
length
();
++
i
)
{
...
...
@@ -660,7 +672,7 @@ public class ViolationsWrapper {
public
Collection
<?
extends
IViolation
<
SecurityNode
>>
getAllViolationsToCheck
()
{
allViolationsToCheck
.
forEach
((
v
)->
{
System
.
out
.
println
(
v
);
//
System.out.println(v);
});
return
allViolationsToCheck
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment