Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Parse reader write randomFAR #18

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

fix Parse reader write randomFAR #18

wants to merge 2 commits into from

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 символа, здесь явно больше, поправим разом по всему проекту, это я к слову

System.out.println("выход");
}

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