Just added a final statement.

This commit is contained in:
Tom Vahlman 2012-02-13 10:45:02 +01:00
parent 869870c6f1
commit 26df98c732

@ -78,7 +78,7 @@ public class GreedyMatchingAlgorithm implements MatchingAlgorithm {
}
/**
* Matches project ideas with supervisors (based on availability) and returns the best match.
* Match project ideas with supervisors (based on availability) and return the best match.
* @param projectIdeaList project ideas that should be matched
* @param availabilityList supervisors that should be matched
* @return List<Match> the best matches are returned
@ -106,7 +106,7 @@ public class GreedyMatchingAlgorithm implements MatchingAlgorithm {
logger.info("Not possible supervisor");
continue;
}
Match match = new Match();
Match match = new Match(); // create a new match
match.setSupervisor(availability.getSupervisor());
match.setProjectIdea(projectIdea);
matchPair = new Pair(match, new Availability(null, 1L, 1, new ProjectClass()));
@ -128,7 +128,7 @@ public class GreedyMatchingAlgorithm implements MatchingAlgorithm {
* @param availability the availability
* @return Pair
*/
private Pair getBestMatch(Pair oldMatchPair, Availability availability) {
private Pair getBestMatch(final Pair oldMatchPair, Availability availability) {
Match oldMatch = oldMatchPair.getMatch();
Availability oldAvailability = oldMatchPair.getAvailability();