applied code cleanup

This commit is contained in:
Miriam Baglioni 2020-05-22 15:38:50 +02:00
parent 8610ad5142
commit 29066a6b46
4 changed files with 4 additions and 10 deletions

View File

@ -131,7 +131,7 @@ public class CommunityConfiguration implements Serializable {
p -> { p -> {
if (p.getSnd() == null) if (p.getSnd() == null)
return p.getFst(); return p.getFst();
if (((SelectionConstraints) p.getSnd()).verifyCriteria(param)) if (p.getSnd().verifyCriteria(param))
return p.getFst(); return p.getFst();
else else
return null; return null;

View File

@ -34,7 +34,7 @@ public class VerbResolver implements Serializable {
.collect( .collect(
Collectors Collectors
.toMap( .toMap(
value -> (String) ((ClassInfo) value) value -> (String) value
.getAnnotationInfo() .getAnnotationInfo()
.get(0) .get(0)
.getParameterValues() .getParameterValues()

View File

@ -105,11 +105,7 @@ public class SparkResultToProjectThroughSemRelJob {
.stream() .stream()
.forEach( .forEach(
(p -> { (p -> {
if (potential_update potential_update.getProjectSet().remove(p);
.getProjectSet()
.contains(p)) {
potential_update.getProjectSet().remove(p);
}
})); }));
} }
String resId = potential_update.getResultId(); String resId = potential_update.getResultId();

View File

@ -136,9 +136,7 @@ public class SparkResultToOrganizationFromIstRepoJob {
.stream() .stream()
.forEach( .forEach(
rId -> { rId -> {
if (organization_list.contains(rId)) { organization_list.remove(rId);
organization_list.remove(rId);
}
}); });
} }
String resultId = potential_update.getResultId(); String resultId = potential_update.getResultId();