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

Params fixes #290

Merged
merged 3 commits into from
Oct 17, 2021
Merged

Conversation

eakurnikov
Copy link
Collaborator

No description provided.

@eakurnikov eakurnikov force-pushed the logcat_and_params_fixes branch 2 times, most recently from b46e1a2 to 97eea09 Compare October 11, 2021 10:04
@eakurnikov eakurnikov force-pushed the logcat_and_params_fixes branch from 97eea09 to 07a156e Compare October 11, 2021 11:24
* The timeout during which attempts will be made by the
* [com.kaspersky.kaspresso.flakysafety.ContinuouslyProviderImpl].
*/
var timeoutMs: Long = timeoutMs
Copy link
Member

Choose a reason for hiding this comment

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

Штука в том, что раньше давным давно мы давали возможность пользователю менять данные параметры в уже созданном и распространенном объекте. Поэтому есть вероятность, что кому-то что-то отломаем.

Copy link
Member

Choose a reason for hiding this comment

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

Можно оставить эти проперти, пометив их Deprecated, при этом создав нормальный конструктор.
В Deprecated написать, что переопределять Params надо так то и так то

* The timeout during which attempts will be made by the
* [com.kaspersky.kaspresso.flakysafety.FlakySafetyProviderSimpleImpl].
*/
var timeoutMs: Long = timeoutMs
Copy link
Member

Choose a reason for hiding this comment

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

Комменты выше


companion object {
const val defaultTimeoutMs: Long = 10_000L
const val defaultIntervalMs: Long = 500L
val defaultAllowedExceptions: MutableSet<Class<out Throwable>> = mutableSetOf(
Copy link
Collaborator

Choose a reason for hiding this comment

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

mutable коллекция значений по умолчанию в статике. Планируется, что можно будет её модифицировать для каких-то целей вне конструктора?

Copy link
Member

Choose a reason for hiding this comment

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

плюсую, тут readable коллекция должна быть

@eakurnikov eakurnikov merged commit 10d59d0 into KasperskyLab:master Oct 17, 2021
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