static suppresses

This commit is contained in:
Gavriil Sitnikov 2016-07-27 11:47:07 +03:00
parent c470691437
commit e9cc4dc5e3
2 changed files with 8 additions and 5 deletions

View File

@ -76,8 +76,8 @@ public class LoadingMoreList<TItem, TMoreReference, TLoadedItems extends LoadedI
.doOnError(throwable -> {
if ((throwable instanceof IllegalArgumentException)
|| (throwable instanceof NoSuchElementException)) {
Lc.assertion(new ShouldNotHappenException("Updates during loading not supported. MoreItemsLoader should emit only one result.",
throwable));
Lc.assertion(new ShouldNotHappenException("Updates during loading not supported."
+ " MoreItemsLoader should emit only one result.", throwable));
}
})
.observeOn(loaderScheduler)

View File

@ -51,6 +51,8 @@ public class LoadingRenewableList<TItem, TReference, TNewerReference,
@NonNull
private final Observable<TLoadedItems> loadingNewestObservable;
@SuppressWarnings("PMD.ConstructorCallsOverridableMethod")
//TODO
public LoadingRenewableList(@NonNull final MoreItemsLoader<TItem, TReference, TLoadedItems> moreMoreItemsLoader,
@NonNull final NewerItemsLoader<TItem, TReference, TNewerReference, TLoadedItems> newerItemsLoader) {
super(moreMoreItemsLoader);
@ -58,6 +60,8 @@ public class LoadingRenewableList<TItem, TReference, TNewerReference,
this.loadingNewestObservable = createLoadingNewerObservable(newerItemsLoader, true);
}
@SuppressWarnings("PMD.ConstructorCallsOverridableMethod")
//TODO
public LoadingRenewableList(@NonNull final MoreItemsLoader<TItem, TReference, TLoadedItems> moreMoreItemsLoader,
@NonNull final NewerItemsLoader<TItem, TReference, TNewerReference, TLoadedItems> newerItemsLoader,
@Nullable final TLoadedItems initialItems) {
@ -87,9 +91,8 @@ public class LoadingRenewableList<TItem, TReference, TNewerReference,
.doOnError(throwable -> {
if ((throwable instanceof IllegalArgumentException)
|| (throwable instanceof NoSuchElementException)) {
Lc.assertion(new ShouldNotHappenException("Updates during loading not supported." +
" NewerItemsLoader should emit only one result.",
throwable));
Lc.assertion(new ShouldNotHappenException("Updates during loading not supported."
+ " NewerItemsLoader should emit only one result.", throwable));
}
})
.observeOn(getLoaderScheduler())