Skip to content

Commit

Permalink
Add nullability annotations to RequestOptions (#2750)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <[email protected]>
  • Loading branch information
SUPERCILEX authored and sjudd committed Dec 23, 2017
1 parent f37ced1 commit bb96b63
Show file tree
Hide file tree
Showing 31 changed files with 1,354 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,102 +276,119 @@ public static GlideOptions noAnimation() {
}

@Override
@NonNull
@CheckResult
public final GlideOptions sizeMultiplier(@FloatRange(from = 0.0, to = 1.0) float arg0) {
return (GlideOptions) super.sizeMultiplier(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions useUnlimitedSourceGeneratorsPool(boolean flag) {
return (GlideOptions) super.useUnlimitedSourceGeneratorsPool(flag);
}

@Override
@NonNull
@CheckResult
public final GlideOptions useAnimationPool(boolean flag) {
return (GlideOptions) super.useAnimationPool(flag);
}

@Override
@NonNull
@CheckResult
public final GlideOptions onlyRetrieveFromCache(boolean flag) {
return (GlideOptions) super.onlyRetrieveFromCache(flag);
}

@Override
@NonNull
@CheckResult
public final GlideOptions diskCacheStrategy(@NonNull DiskCacheStrategy arg0) {
return (GlideOptions) super.diskCacheStrategy(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions priority(@NonNull Priority arg0) {
return (GlideOptions) super.priority(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions placeholder(@Nullable Drawable arg0) {
return (GlideOptions) super.placeholder(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions placeholder(@DrawableRes int arg0) {
return (GlideOptions) super.placeholder(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions fallback(@Nullable Drawable arg0) {
return (GlideOptions) super.fallback(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions fallback(@DrawableRes int arg0) {
return (GlideOptions) super.fallback(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions error(@Nullable Drawable arg0) {
return (GlideOptions) super.error(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions error(@DrawableRes int arg0) {
return (GlideOptions) super.error(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions theme(@Nullable Resources.Theme arg0) {
return (GlideOptions) super.theme(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions skipMemoryCache(boolean skip) {
return (GlideOptions) super.skipMemoryCache(skip);
}

@Override
@NonNull
@CheckResult
public final GlideOptions override(int width, int height) {
return (GlideOptions) super.override(width, height);
}

@Override
@NonNull
@CheckResult
public final GlideOptions override(int size) {
return (GlideOptions) super.override(size);
}

@Override
@NonNull
@CheckResult
public final GlideOptions signature(@NonNull Key arg0) {
return (GlideOptions) super.signature(arg0);
Expand All @@ -384,108 +401,126 @@ public final GlideOptions clone() {
}

@Override
@NonNull
@CheckResult
public final <T> GlideOptions set(@NonNull Option<T> arg0, @NonNull T arg1) {
return (GlideOptions) super.set(arg0, arg1);
}

@Override
@NonNull
@CheckResult
public final GlideOptions decode(@NonNull Class<?> arg0) {
return (GlideOptions) super.decode(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions encodeFormat(@NonNull Bitmap.CompressFormat arg0) {
return (GlideOptions) super.encodeFormat(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions encodeQuality(@IntRange(from = 0, to = 100) int arg0) {
return (GlideOptions) super.encodeQuality(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions frame(@IntRange(from = 0) long arg0) {
return (GlideOptions) super.frame(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions format(@NonNull DecodeFormat arg0) {
return (GlideOptions) super.format(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions disallowHardwareConfig() {
return (GlideOptions) super.disallowHardwareConfig();
}

@Override
@NonNull
@CheckResult
public final GlideOptions downsample(@NonNull DownsampleStrategy arg0) {
return (GlideOptions) super.downsample(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions timeout(@IntRange(from = 0) int arg0) {
return (GlideOptions) super.timeout(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions optionalCenterCrop() {
return (GlideOptions) super.optionalCenterCrop();
}

@Override
@NonNull
@CheckResult
public final GlideOptions centerCrop() {
return (GlideOptions) super.centerCrop();
}

@Override
@NonNull
@CheckResult
public final GlideOptions optionalFitCenter() {
return (GlideOptions) super.optionalFitCenter();
}

@Override
@NonNull
@CheckResult
public final GlideOptions fitCenter() {
return (GlideOptions) super.fitCenter();
}

@Override
@NonNull
@CheckResult
public final GlideOptions optionalCenterInside() {
return (GlideOptions) super.optionalCenterInside();
}

@Override
@NonNull
@CheckResult
public final GlideOptions centerInside() {
return (GlideOptions) super.centerInside();
}

@Override
@NonNull
@CheckResult
public final GlideOptions optionalCircleCrop() {
return (GlideOptions) super.optionalCircleCrop();
}

@Override
@NonNull
@CheckResult
public final GlideOptions circleCrop() {
return (GlideOptions) super.circleCrop();
}

@Override
@NonNull
@CheckResult
public final GlideOptions transform(@NonNull Transformation<Bitmap> arg0) {
return (GlideOptions) super.transform(arg0);
Expand All @@ -494,54 +529,63 @@ public final GlideOptions transform(@NonNull Transformation<Bitmap> arg0) {
@Override
@SafeVarargs
@SuppressWarnings("varargs")
@NonNull
@CheckResult
public final GlideOptions transforms(@NonNull Transformation<Bitmap>... arg0) {
return (GlideOptions) super.transforms(arg0);
}

@Override
@NonNull
@CheckResult
public final GlideOptions optionalTransform(@NonNull Transformation<Bitmap> arg0) {
return (GlideOptions) super.optionalTransform(arg0);
}

@Override
@NonNull
@CheckResult
public final <T> GlideOptions optionalTransform(@NonNull Class<T> arg0,
@NonNull Transformation<T> arg1) {
return (GlideOptions) super.optionalTransform(arg0, arg1);
}

@Override
@NonNull
@CheckResult
public final <T> GlideOptions transform(@NonNull Class<T> arg0, @NonNull Transformation<T> arg1) {
return (GlideOptions) super.transform(arg0, arg1);
}

@Override
@NonNull
@CheckResult
public final GlideOptions dontTransform() {
return (GlideOptions) super.dontTransform();
}

@Override
@NonNull
@CheckResult
public final GlideOptions dontAnimate() {
return (GlideOptions) super.dontAnimate();
}

@Override
@NonNull
@CheckResult
public final GlideOptions apply(@NonNull RequestOptions arg0) {
return (GlideOptions) super.apply(arg0);
}

@Override
@NonNull
public final GlideOptions lock() {
return (GlideOptions) super.lock();
}

@Override
@NonNull
public final GlideOptions autoClone() {
return (GlideOptions) super.autoClone();
}
Expand Down
Loading

0 comments on commit bb96b63

Please sign in to comment.