Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HH-76991 remove jdebug dependency, rename properties file #82

Merged
merged 1 commit into from
Mar 2, 2018

Conversation

akhalikov
Copy link
Contributor

@akhalikov akhalikov commented Mar 2, 2018

  • Убрал зависимость от jdebug, timings и guava.
  • Переименовал settings.properties в service.properties.
  • Небольшой рефакторинг FileSettings.

https://jira.hh.ru/browse/HH-76991

return subProperties;
}

public FileSettings getSubSettings(String prefix) {
return new FileSettings(getSubProperties(prefix));
}

public List<String> getStringList(String key) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Для совместимости с hh.ru

@@ -31,20 +34,31 @@ public Boolean getBoolean(String key) {
}

public Properties getSubProperties(String prefix) {
final String namespacePrefix = Strings.isNullOrEmpty(prefix) ? "" : prefix + ".";
if (Strings.isNullOrEmpty(prefix)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

мне кажется можно обычный assert

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Заиспользовал спринговый Assert.hasLength.

@@ -186,12 +180,6 @@
</exclusions>
</dependency>

<dependency>
<groupId>ru.hh</groupId>
<artifactId>timings</artifactId>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Пока не используются.

@akhalikov
Copy link
Contributor Author

Схлопнул коммиты.

@akhalikov
Copy link
Contributor Author

Довыпил использование guava из nab-hibernate и nab-testbase.

@akhalikov
Copy link
Contributor Author

Обновил README.

@akhalikov akhalikov merged commit 540d4ce into master Mar 2, 2018
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