Skip to content

Commit

Permalink
Sonarlint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaytotomato committed Aug 11, 2024
1 parent 0f03c36 commit b7ede91
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private static Location buildLocationResult(Country topCountry, State topState,
public void buildDataStructures() {
countries.forEach(country -> {
buildCountryLookups(country);
country.getStates().forEach(state -> buildStateLookups(state, country));
country.getStates().forEach(this::buildStateLookups);
});
addAliases();
}
Expand Down Expand Up @@ -156,9 +156,8 @@ private void buildCountryLookups(Country country) {
* Maps state and its associated cities to various lookup maps.
*
* @param state The state to be mapped.
* @param country The country the state belongs to.
*/
private void buildStateLookups(State state, Country country) {
private void buildStateLookups(State state) {
stateIdToStateMap.put(state.getId(), state);
stateNameToStatesMap.computeIfAbsent(keyMaker(state.getName()), k -> new ArrayList<>())
.add(state);
Expand Down

0 comments on commit b7ede91

Please sign in to comment.