Skip to content

Commit

Permalink
Remove unnecessary DatePickerDialog constructor shadow
Browse files Browse the repository at this point in the history
The constructor shadow just calls the original constructor, so it's
redundant and can be removed.

PiperOrigin-RevId: 413084646
  • Loading branch information
Googler authored and hoisie committed Dec 6, 2021
1 parent bcb31db commit 14bdfa2
Showing 1 changed file with 0 additions and 19 deletions.
Expand Up @@ -2,7 +2,6 @@

import static android.os.Build.VERSION_CODES.KITKAT;
import static android.os.Build.VERSION_CODES.KITKAT_WATCH;
import static android.os.Build.VERSION_CODES.M;
import static android.os.Build.VERSION_CODES.N;
import static org.robolectric.shadow.api.Shadow.invokeConstructor;
import static org.robolectric.util.ReflectionHelpers.ClassParameter;
Expand All @@ -27,24 +26,6 @@ public class ShadowDatePickerDialog extends ShadowAlertDialog {
@RealObject protected DatePickerDialog realDatePickerDialog;
private Calendar calendar;

@Implementation(maxSdk = M)
protected void __constructor__(
Context context,
int theme,
DatePickerDialog.OnDateSetListener callBack,
int year,
int monthOfYear,
int dayOfMonth) {

invokeConstructor(DatePickerDialog.class, realDatePickerDialog,
ClassParameter.from(Context.class, context),
ClassParameter.from(int.class, theme),
ClassParameter.from(DatePickerDialog.OnDateSetListener.class, callBack),
ClassParameter.from(int.class, year),
ClassParameter.from(int.class, monthOfYear),
ClassParameter.from(int.class, dayOfMonth));
}

@Implementation(minSdk = N)
protected void __constructor__(
Context context,
Expand Down

0 comments on commit 14bdfa2

Please sign in to comment.