Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6e06125

Browse files
author
Emmanuel Garcia
committed
Fix linter
1 parent c23244c commit 6e06125

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

testing/scenario_app/android/app/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ android {
88
showAll true
99
warningsAsErrors true
1010
checkTestSources true
11+
textReport true
1112
textOutput 'stdout'
1213
htmlReport false
13-
xmlReport true
14+
xmlReport false
1415
xmlOutput file("${rootProject.buildDir}/reports/lint-results.xml")
1516
// UnpackedNativeCode can break stack unwinding - see b/193408481
1617
// NewerVersionAvailable and GradleDependency need to be taken care of
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/Users/egarciad/p/engine/src/flutter/testing/scenario_app/android/app/src/main/java/dev/flutter/scenarios/TextPlatformView.java:32: Error: Access to private field textView of class TextPlatformView requires synthetic accessor [SyntheticAccessor]
2+
textView.invalidate();
3+
~~~~~~~~
4+
5+
Explanation for issues of type "SyntheticAccessor":
6+
A private inner class which is accessed from the outer class will force the
7+
compiler to insert a synthetic accessor; this means that you are causing
8+
extra overhead. This is not important in small projects, but is important
9+
for large apps running up against the 64K method handle limit, and
10+
especially for libraries where you want to make sure your library is as
11+
small as possible for the cases where your library is used in an app
12+
running up against the 64K limit.
13+
14+
1 errors, 0 warnings

testing/scenario_app/android/app/src/main/java/dev/flutter/scenarios/TextPlatformView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import io.flutter.plugin.platform.PlatformView;
1515

1616
public class TextPlatformView implements PlatformView {
17-
private final TextView textView;
17+
final TextView textView;
1818

1919
@SuppressWarnings("unchecked")
2020
TextPlatformView(@NonNull final Context context, int id, @Nullable String params) {

0 commit comments

Comments
 (0)