-
Notifications
You must be signed in to change notification settings - Fork 0
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
Review #2
base: review-branch
Are you sure you want to change the base?
Review #2
Conversation
Signed-off-by: MedVAL-na <[email protected]>
… existing classes
… in classes and parser
Parsing and saving data
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.
Добавьте комметарии к классам и публичным методам. Полезные ссылки:
https://www.oracle.com/java/technologies/javase/api-specifications.html
https://www.oracle.com/technical-resources/articles/java/javadoc-tool.html
System.out.println("Need to parse new file?\n\"y\" for yes \"n\" for no"); | ||
String choice = in.nextLine(); | ||
if (choice.equals("y")) { | ||
File map = new File("D:/osm/spb_full.xml"); |
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.
Ммм, захардкоженные пути.
for (j = 0; j < properties.getLength(); j++) { | ||
property = (Element) properties.item(j); | ||
key = property.getAttribute("k"); | ||
value = property.getAttribute("v"); |
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.
Я бы сказал, что напрашивается метод, принимающий NodeList и позвращающий его аттрибуты в виде Map<String, String>. Это должно кучу кода во всех этих методах упростить.
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.
Сделаем
No description provided.