Skip to content

Review#2

Open
ArtyomLobanov wants to merge 44 commits intoreview-branchfrom
main
Open

Review#2
ArtyomLobanov wants to merge 44 commits intoreview-branchfrom
main

Conversation

@ArtyomLobanov
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ммм, захардкоженные пути.

Comment thread src/ru/ioffe/school/susanin/data/House.java
Comment thread src/ru/ioffe/school/susanin/data/MapGraph.java
Comment thread src/ru/ioffe/school/susanin/data/Point.java
Comment thread src/ru/ioffe/school/susanin/data/Point.java
Comment thread src/ru/ioffe/school/susanin/mapParsing/Parser.java
for (j = 0; j < properties.getLength(); j++) {
property = (Element) properties.item(j);
key = property.getAttribute("k");
value = property.getAttribute("v");
Copy link
Copy Markdown
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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Сделаем

Comment thread src/ru/ioffe/school/susanin/mapParsing/Parser.java
Comment thread src/ru/ioffe/school/susanin/mapParsing/Parser.java
Comment thread src/ru/ioffe/school/susanin/mapParsing/Parser.java
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