Skip to content

Comments

task 1 done#1

Open
simiyutin wants to merge 12 commits intomasterfrom
dev
Open

task 1 done#1
simiyutin wants to merge 12 commits intomasterfrom
dev

Conversation

@simiyutin
Copy link
Owner

No description provided.

Copy link
Collaborator

@yurii-litvinov yurii-litvinov left a comment

Choose a reason for hiding this comment

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

Папку .gradle не нужно выкладывать. В остальном всё очень круто, поправьте мелкие замечания по коду --- и будет зачтена.


/**
* Used as interface to command object. Takes input stream and returns result as output stream.
* @param stream
Copy link
Collaborator

Choose a reason for hiding this comment

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

Пустые тэги не нужны, лучше всё-таки написать комментарий (или удалить комментарии для параметров вообще, если они очевидны)

Copy link
Owner Author

Choose a reason for hiding this comment

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

пофиксил

@@ -0,0 +1,54 @@
package commands;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Пакеты в Java обычно именуются с использованием доменного имени, записанного наоборот, типа для глобальной уникальности имен пакета: https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html. Желательно следовать этой традиции.

Copy link
Owner Author

Choose a reason for hiding this comment

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

пофиксил

/**
* constructs Shell with empty environment
*/
Shell() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

У него специально пакетная видимость, или просто так получилось?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Просто так получилось)
Пофиксил

try {
commands.get(0).run(new Stream());
} catch (CommandExecutionException e) {
e.printStackTrace();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Тут лучше исключение не ловить --- команда же не должна упасть, и если упала, то всё плохо.

Copy link
Owner Author

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