Skip to content

Commit

Permalink
поправил ошибку в сеттерах
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey Trofimov authored and Alexey Trofimov committed Apr 12, 2017
1 parent e12e9b7 commit db777ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/com/app/model/AbstractWorker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ abstract class AbstractWorker() {
if (value.isEmpty()) {
throw IllegalArgumentException("Имя не может быть пустым")
}
field = value
}

/**
Expand All @@ -29,6 +30,7 @@ abstract class AbstractWorker() {
if (value.isEmpty()) {
throw IllegalArgumentException("Фамилия не может быть пустой")
}
field = value
}

/**
Expand Down

0 comments on commit db777ca

Please sign in to comment.