Fix the country name fetching from CSV.
[Persons_Comparator.git] / src / Person.java
index f1409f52760d91eb57e59e7624a3af2a7304cbfa..f8432505cca4c4efe0392a74266da46a716e3af8 100644 (file)
@@ -19,10 +19,10 @@ public class Person implements Comparator<Person> {
         setDistanceFromReference(0);
     }
 
-    Person(String firstname, String country, Integer size, Integer weight, String colorEye) {
+    Person(String firstname, String countryName, Integer size, Integer weight, String colorEye) {
         setFirstname(new Firstname(firstname));
-        setOrigin(new Origin(country));
-        setCountry(new Country(country));
+        setOrigin(new Origin(countryName));
+        setCountry(new Country(countryName));
         setPersonSize(new Size(size));
         setWeight(new Weight(weight));
         setEye(new Eye(colorEye));