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

Review #2

Open
wants to merge 44 commits into
base: review-branch
Choose a base branch
from
Open

Review #2

wants to merge 44 commits into from

Conversation

ArtyomLobanov
Copy link
Contributor

No description provided.

Copy link
Contributor Author

@ArtyomLobanov ArtyomLobanov left a 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");
Copy link
Contributor Author

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");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Я бы сказал, что напрашивается метод, принимающий NodeList и позвращающий его аттрибуты в виде Map<String, String>. Это должно кучу кода во всех этих методах упростить.

Copy link
Contributor

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.

3 participants