mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-01-11 01:40:59 +00:00
Lint: Redundant 'new' expression in constant array creation
This commit is contained in:
parent
39e5d8ccc2
commit
00b08318a5
@ -31,7 +31,7 @@ public class AboutActivity extends AppCompatActivity {
|
|||||||
/**
|
/**
|
||||||
* List of all software components.
|
* List of all software components.
|
||||||
*/
|
*/
|
||||||
private static final SoftwareComponent[] SOFTWARE_COMPONENTS = new SoftwareComponent[]{
|
private static final SoftwareComponent[] SOFTWARE_COMPONENTS = {
|
||||||
new SoftwareComponent("Giga Get", "2014 - 2015", "Peter Cai",
|
new SoftwareComponent("Giga Get", "2014 - 2015", "Peter Cai",
|
||||||
"https://github.com/PaperAirplane-Dev-Team/GigaGet", StandardLicenses.GPL3),
|
"https://github.com/PaperAirplane-Dev-Team/GigaGet", StandardLicenses.GPL3),
|
||||||
new SoftwareComponent("NewPipe Extractor", "2017 - 2020", "Christian Schabesberger",
|
new SoftwareComponent("NewPipe Extractor", "2017 - 2020", "Christian Schabesberger",
|
||||||
|
@ -154,7 +154,7 @@ public class ErrorActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
public static void reportError(final Context context, final CrashReportData report,
|
public static void reportError(final Context context, final CrashReportData report,
|
||||||
final ErrorInfo errorInfo) {
|
final ErrorInfo errorInfo) {
|
||||||
final String[] el = new String[]{report.getString(ReportField.STACK_TRACE)};
|
final String[] el = {report.getString(ReportField.STACK_TRACE)};
|
||||||
|
|
||||||
final Intent intent = new Intent(context, ErrorActivity.class);
|
final Intent intent = new Intent(context, ErrorActivity.class);
|
||||||
intent.putExtra(ERROR_INFO, errorInfo);
|
intent.putExtra(ERROR_INFO, errorInfo);
|
||||||
|
@ -157,7 +157,7 @@ public final class AnimationUtils {
|
|||||||
+ "colorStart = [" + colorStart + "], colorEnd = [" + colorEnd + "]");
|
+ "colorStart = [" + colorStart + "], colorEnd = [" + colorEnd + "]");
|
||||||
}
|
}
|
||||||
|
|
||||||
final int[][] empty = new int[][]{new int[0]};
|
final int[][] empty = {new int[0]};
|
||||||
final ValueAnimator viewPropertyAnimator = ValueAnimator
|
final ValueAnimator viewPropertyAnimator = ValueAnimator
|
||||||
.ofObject(new ArgbEvaluator(), colorStart, colorEnd);
|
.ofObject(new ArgbEvaluator(), colorStart, colorEnd);
|
||||||
viewPropertyAnimator.setInterpolator(new FastOutSlowInInterpolator());
|
viewPropertyAnimator.setInterpolator(new FastOutSlowInInterpolator());
|
||||||
|
@ -82,7 +82,7 @@ public class StoredDirectoryHelper {
|
|||||||
docTree.getUri(), DocumentsContract.getDocumentId(docTree.getUri())
|
docTree.getUri(), DocumentsContract.getDocumentId(docTree.getUri())
|
||||||
);
|
);
|
||||||
|
|
||||||
String[] projection = new String[]{COLUMN_DISPLAY_NAME};
|
String[] projection = {COLUMN_DISPLAY_NAME};
|
||||||
String selection = "(LOWER(" + COLUMN_DISPLAY_NAME + ") LIKE ?%";
|
String selection = "(LOWER(" + COLUMN_DISPLAY_NAME + ") LIKE ?%";
|
||||||
ContentResolver cr = context.getContentResolver();
|
ContentResolver cr = context.getContentResolver();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user