Skip to content

fix Parse reader write randomFAR#18

Open
FedorTvor wants to merge 2 commits intomainfrom
dev_fa_fixParse
Open

fix Parse reader write randomFAR#18
FedorTvor wants to merge 2 commits intomainfrom
dev_fa_fixParse

Conversation

@FedorTvor
Copy link
Owner

Объединена логика Parse

try {
return Integer.parseInt(value);
} catch (NumberFormatException e) {
return null;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

если здесь не возвращаешь предупреждение о том, что данные не корректны, верни там, где валидацию проводишь


public Integer parseInteger(String value) {
try {
return Integer.parseInt(value);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

отступы по всему проекту - 4 символа, здесь явно больше, поправим разом по всему проекту, это я к слову

}

private <T> void fillArray(Scanner scanner, int size, Main.datatype datatype, ItemRandomizer<T> randomizer) {
Storage<T> storage = Storage.<T>getInstance(datatype);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

отлично, ещё один джейн эйрек )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants