Conversation
Wszystko wygląda już w porządku
|
Javadoc oraz UML do zadania są pod tym linkiem |
kowallus
left a comment
There was a problem hiding this comment.
2.5 pts
Specific issues inlined in the code.
| @@ -0,0 +1,13 @@ | |||
| <component name="libraryTable"> | |||
There was a problem hiding this comment.
Commits polluted with project files
| public class DefaultCountingOutRhymer { | ||
|
|
||
| public static final int DEFAULT_VALUE = -1; | ||
| public static final int MAX = 12; |
| } | ||
|
|
||
| public boolean isFull() { | ||
| return total == 11; |
There was a problem hiding this comment.
Another constant. It is related to MAX (yet, the name is misinforming)
| } | ||
|
|
||
| public boolean callCheck() { | ||
| return total == -1; |
|
|
||
| protected int peekaboo() { | ||
| if (callCheck()) | ||
| return -1; |
|
|
||
| public defaultCountingOutRhymer temp = new defaultCountingOutRhymer(); | ||
|
|
||
| public DefaultCountingOutRhymer temp = new DefaultCountingOutRhymer(); |
There was a problem hiding this comment.
should be private and final
| public class HanoiRhymer extends DefaultCountingOutRhymer { | ||
|
|
||
| int totalRejected = 0; | ||
| int totalRejected = 0; |
| @Override | ||
| public defaultCountingOutRhymer GetStandardRhymer() { | ||
| return new defaultCountingOutRhymer(); | ||
| public DefaultCountingOutRhymer GetStandardRhymer() { |
There was a problem hiding this comment.
names of methods start from a lowercase (e.g. getStandardRhymer())
|
|
||
| class RhymersDemo { | ||
|
|
||
| public static final int INT_15 = 15; |
There was a problem hiding this comment.
such extracting constants doesn't make sense to me
| final public int value; | ||
| public Node prev, next; |
There was a problem hiding this comment.
What about encapsulation?
|
Added fixes and part of 2.x.x labs |
Przepraszam za spóźnienie :(