Skip to content

task 1 done#1

Open
simiyutin wants to merge 12 commits into
masterfrom
dev
Open

task 1 done#1
simiyutin wants to merge 12 commits into
masterfrom
dev

Conversation

@simiyutin

Copy link
Copy Markdown
Owner

No description provided.

@yurii-litvinov yurii-litvinov left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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

Comment thread shell/src/main/java/shell/Command.java Outdated

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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

пофиксил

Comment thread shell/src/main/java/commands/Cat.java Outdated
@@ -0,0 +1,54 @@
package commands;

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

Choose a reason for hiding this comment

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

пофиксил

Comment thread shell/src/main/java/shell/Shell.java Outdated
/**
* constructs Shell with empty environment
*/
Shell() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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

Comment thread shell/src/test/java/ParserTests.java Outdated
try {
commands.get(0).run(new Stream());
} catch (CommandExecutionException e) {
e.printStackTrace();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

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

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