-
Notifications
You must be signed in to change notification settings - Fork 69
Готовчиц Максим, 396, Parallel #585
base: master
Are you sure you want to change the base?
Conversation
patch 1.1
patch 1.2
Premium Edition
Premium Edition 1.1
No Tests Edition
checkException(name); | ||
ReadWriteLock readWriteLock = new ReentrantReadWriteLock(); | ||
if (new File(rootDirectory + File.separator + name).exists()) { | ||
readWriteLock.readLock().lock(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Эм, какой смысл брать лок, которым никто больше точно не владеет?
@@ -0,0 +1,17 @@ | |||
package ru.fizteh.fivt.students.MaximGotovchits.Parallel; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Разбить на пакеты: база, интерпретор, и всё остальное
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Готово
for (Object iter : k) { | ||
list.add(iter.toString()); | ||
if (size < storage.get().size() - 1) { | ||
System.out.print(iter + ", "); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не выводить, а возвращать. вывод:
- не библиотечен
- его невозможно покрыть тестами
А покрыть бы надо
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
есть
|
fixed + tests
fixed check style and other things.
batch mode tests are added
String createParameter = new String(); // (...) - type list. | ||
String tableName = cmd[1]; | ||
for (int ind = 2; ind < cmd.length; ++ind) { | ||
createParameter += cmd[ind] + " "; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
String.join
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Есть
No Tests Edition