diff --git a/rosie/src/main/java/com/karumi/rosie/domain/usecase/UseCaseHandler.java b/rosie/src/main/java/com/karumi/rosie/domain/usecase/UseCaseHandler.java index 46387aad..eb001818 100644 --- a/rosie/src/main/java/com/karumi/rosie/domain/usecase/UseCaseHandler.java +++ b/rosie/src/main/java/com/karumi/rosie/domain/usecase/UseCaseHandler.java @@ -78,7 +78,7 @@ private static class OnErrorCallbackToErrorHandlerAdapter implements OnErrorCall private final WeakReference errorHandler; private final WeakReference useCaseOnErrorCallback; - public OnErrorCallbackToErrorHandlerAdapter(ErrorHandler errorHandler, + private OnErrorCallbackToErrorHandlerAdapter(ErrorHandler errorHandler, OnErrorCallback useCaseOnErrorCallback) { this.errorHandler = new WeakReference<>(errorHandler); this.useCaseOnErrorCallback = new WeakReference<>(useCaseOnErrorCallback); diff --git a/rosie/src/main/java/com/karumi/rosie/domain/usecase/jobqueue/UseCaseWrapperJob.java b/rosie/src/main/java/com/karumi/rosie/domain/usecase/jobqueue/UseCaseWrapperJob.java index 52673fe2..7ef6ece7 100644 --- a/rosie/src/main/java/com/karumi/rosie/domain/usecase/jobqueue/UseCaseWrapperJob.java +++ b/rosie/src/main/java/com/karumi/rosie/domain/usecase/jobqueue/UseCaseWrapperJob.java @@ -28,7 +28,7 @@ class UseCaseWrapperJob extends Job { private static final int PRIORITY_NORMAL = 3; private final UseCaseWrapper useCaseWrapper; - public UseCaseWrapperJob(UseCaseWrapper useCaseWrapper) { + UseCaseWrapperJob(UseCaseWrapper useCaseWrapper) { super(new Params(PRIORITY_NORMAL)); this.useCaseWrapper = useCaseWrapper; } diff --git a/rosie/src/test/java/com/karumi/rosie/domain/usecase/UseCaseHandlerTest.java b/rosie/src/test/java/com/karumi/rosie/domain/usecase/UseCaseHandlerTest.java index 2999911c..e28a413e 100644 --- a/rosie/src/test/java/com/karumi/rosie/domain/usecase/UseCaseHandlerTest.java +++ b/rosie/src/test/java/com/karumi/rosie/domain/usecase/UseCaseHandlerTest.java @@ -405,7 +405,7 @@ private class NoUseCase extends RosieUseCase { private class EmptyResponseUseCase extends RosieUseCase { - public EmptyResponseUseCase() { + private EmptyResponseUseCase() { setCallbackScheduler(new FakeCallbackScheduler()); } @@ -416,7 +416,7 @@ public EmptyResponseUseCase() { private class ErrorUseCase extends RosieUseCase { - public ErrorUseCase() { + private ErrorUseCase() { setCallbackScheduler(new FakeCallbackScheduler()); } @@ -431,7 +431,7 @@ public ErrorUseCase() { private class SuccessUseCase extends RosieUseCase { - public SuccessUseCase() { + private SuccessUseCase() { setCallbackScheduler(new FakeCallbackScheduler()); } @@ -439,4 +439,4 @@ public SuccessUseCase() { notifySuccess(); } } -} \ No newline at end of file +} diff --git a/rosie/src/test/java/com/karumi/rosie/view/RosiePresenterTest.java b/rosie/src/test/java/com/karumi/rosie/view/RosiePresenterTest.java index 5154ac68..4b46ded1 100644 --- a/rosie/src/test/java/com/karumi/rosie/view/RosiePresenterTest.java +++ b/rosie/src/test/java/com/karumi/rosie/view/RosiePresenterTest.java @@ -55,7 +55,7 @@ private RosiePresenter givenARosiePresenterWithRegisteredCallback() { private static class RosiePresenterWithRegisteredCallback extends RosiePresenter implements OnErrorCallback { - public RosiePresenterWithRegisteredCallback(UseCaseHandler useCaseHandler) { + private RosiePresenterWithRegisteredCallback(UseCaseHandler useCaseHandler) { super(useCaseHandler); registerOnErrorCallback(this); }