Skip to content

Commit a8444db

Browse files
committed
refactor
1 parent 79585e9 commit a8444db

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/com/checkmarx/ast/predicate/CustomState.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
@JsonInclude(JsonInclude.Include.NON_NULL)
1616
@JsonIgnoreProperties(ignoreUnknown = true)
1717
public class CustomState {
18-
private Long id;
19-
private String name;
20-
private String type;
18+
Long id;
19+
String name;
20+
String type;
2121

2222
public CustomState(@JsonProperty("id") Long id,
2323
@JsonProperty("name") String name,

src/main/java/com/checkmarx/ast/predicate/Predicate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static boolean validator(List<String> arguments, Object parsedLine) {
7676
for (Field field : parsedLine.getClass().getDeclaredFields()) {
7777
field.setAccessible(true);
7878
try {
79-
if (field.get(parsedLine) == null && field.getName().equals("stateId")) {
79+
if (field.get(parsedLine) == null && !field.getName().equals("stateId")) {
8080
return false;
8181
}
8282
} catch (IllegalAccessException e) {

0 commit comments

Comments
 (0)