Skip to content

Conversation

@DmKazakov
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.

Существенных замечаний нету, так что зачтена

@@ -0,0 +1,4 @@
package ru.mit.spbau.kazakov.exception;

public class EmptyStackException extends RuntimeException {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Вообще, этой штуке тоже нужен комментарий

import ru.mit.spbau.kazakov.exception.EmptyStackException;

/**
* An implementation of stack interface for arithmetic calculator.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Неправда, он интерфейс не реализует :)
Кстати, с точки зрения архитектуры --- зря, зависимости от конкретных классов --- это плохо

* @param value to initialize with
* @param prev a previous Node
*/
Node(T value, Node<T> prev) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Тоже можно было его явно пометить как public или private


@Test
public void testIsNumericPlus() {
assertFalse(ArithmeticUtility.isNumeric("-"));
Copy link
Collaborator

Choose a reason for hiding this comment

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

В тесте testIsNumericMinus проверяется +, в тесте testIsNumericPlus проверяется -, к чему бы это?


PolishNotationCalculator calculator = new PolishNotationCalculator(stack);
calculator.evaluate(Arrays.asList("1", "2", "%", "5"));

Copy link
Collaborator

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