Skip to content

Commit

Permalink
make variables final in foreach
Browse files Browse the repository at this point in the history
  • Loading branch information
BentolhodaH committed Nov 10, 2023
1 parent 522418c commit 28a2582
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ public CombinedEdgeLabelMappingToURIsImpl(final List<EdgeLabelMapping> edgeLabel

@Override
public Node map(final String label) {
for (EdgeLabelMapping edgeLabelMapping : edgeLabelMappings) {
for (final EdgeLabelMapping edgeLabelMapping : edgeLabelMappings) {
try {
return edgeLabelMapping.map(label);
}
catch (IllegalArgumentException exception) {}
catch (UnSupportedEdgeLabelException exception) {}
}
throw new UnSupportedEdgeLabelException("The given edge label (" + label + ") is not a supported label in the image of this edge label mapping.");
}

public String unmap(final Node node) {
for (EdgeLabelMapping edgeLabelMapping : edgeLabelMappings) {
for (final EdgeLabelMapping edgeLabelMapping : edgeLabelMappings) {
try {
return edgeLabelMapping.unmap(node);
}
Expand All @@ -36,7 +36,7 @@ public String unmap(final Node node) {

@Override
public boolean isPossibleResult(final Node node) {
for (EdgeLabelMapping edgeLabelMapping : edgeLabelMappings) {
for (final EdgeLabelMapping edgeLabelMapping : edgeLabelMappings) {
if(edgeLabelMapping.isPossibleResult(node)){
return true;
}
Expand Down

0 comments on commit 28a2582

Please sign in to comment.