esoe 2 years ago
parent
commit
14b8e16e79
  1. 7
      country/src/main/java/ru/molokoin/Country.java
  2. BIN
      country/target/classes/ru/molokoin/Country.class

7
country/src/main/java/ru/molokoin/Country.java

@ -12,10 +12,9 @@ public class Country extends Area{ @@ -12,10 +12,9 @@ public class Country extends Area{
//параметры страны
super(name, population, square);
//параметры столицы
if (capitalName != null)
setCapital(new Area(capitalName
, capitalPopulation
, capitalSquare));
if (capitalName != null) setCapital(new Area(capitalName
, capitalPopulation
, capitalSquare));
if (capitalName == null){
setCapital(new Area(null
, 0

BIN
country/target/classes/ru/molokoin/Country.class

Binary file not shown.
Loading…
Cancel
Save