-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: main
Are you sure you want to change the base?
Conversation
src/main/java/ParserHelper.java
Outdated
try { | ||
return Integer.parseInt(value); | ||
} catch (NumberFormatException e) { | ||
return null; |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
отлично, ещё один джейн эйрек )
Объединена логика Parse