Skip to content
This repository has been archived by the owner on Sep 27, 2022. It is now read-only.

Готовчиц Максим, 396, Parallel #585

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

MaximGotovchits
Copy link
Contributor

No Tests Edition

checkException(name);
ReadWriteLock readWriteLock = new ReentrantReadWriteLock();
if (new File(rootDirectory + File.separator + name).exists()) {
readWriteLock.readLock().lock();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Эм, какой смысл брать лок, которым никто больше точно не владеет?

@vpavlenko vpavlenko self-assigned this Dec 24, 2014
@@ -0,0 +1,17 @@
package ru.fizteh.fivt.students.MaximGotovchits.Parallel;
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
Contributor Author

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 + ", ");
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
Contributor Author

Choose a reason for hiding this comment

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

есть

@vpavlenko
Copy link
Collaborator

  1. Напишите тесты на интерпретатор.
  2. Приложите к ревью скриншот с code coverage.

@MaximGotovchits
Copy link
Contributor Author

javatest

String createParameter = new String(); // (...) - type list.
String tableName = cmd[1];
for (int ind = 2; ind < cmd.length; ++ind) {
createParameter += cmd[ind] + " ";
Copy link
Collaborator

Choose a reason for hiding this comment

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

String.join

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Есть

@MaximGotovchits
Copy link
Contributor Author

javatest

@vpavlenko vpavlenko mentioned this pull request Mar 22, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants