Skip to content

Commit d7979b2

Browse files
authored
[jni] minor lint fixes (#2755)
1 parent e9910c3 commit d7979b2

File tree

5 files changed

+6
-7
lines changed

5 files changed

+6
-7
lines changed

pkgs/jni/example/lib/main.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
// ignore_for_file: library_private_types_in_public_api
6-
75
import 'dart:io';
86
import 'dart:ui';
97

@@ -148,7 +146,7 @@ class ExampleCard extends StatefulWidget {
148146
final Example example;
149147

150148
@override
151-
_ExampleCardState createState() => _ExampleCardState();
149+
State<ExampleCard> createState() => _ExampleCardState();
152150
}
153151

154152
class _ExampleCardState extends State<ExampleCard> {

pkgs/jni/ffigen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: |
77
88
However, functions prefixed JNI_ are not usable because they are in a different shared library.
99
10-
Regenerate bindings with `flutter pub run ffigen.dart --config ffigen.yaml`.
10+
Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
1111
output: 'lib/src/third_party/jni_bindings_generated.dart'
1212
headers:
1313
entry-points:

pkgs/jni/lib/src/third_party/jni_bindings_generated.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import 'dart:ffi' as ffi;
4646
///
4747
/// However, functions prefixed JNI_ are not usable because they are in a different shared library.
4848
///
49-
/// Regenerate bindings with `flutter pub run ffigen.dart --config ffigen.yaml`.
49+
/// Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
5050
///
5151
class JniBindings {
5252
/// Holds the symbol lookup function.

pkgs/jnigen/test/summary_generation_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// These tests validate summary generation in various scenarios.
66
// Currently, no validation of the summary content itself is done.
77

8-
// ignore: library_annotations
98
@Tags(['summarizer_test'])
9+
library;
1010

1111
import 'dart:math';
1212

pkgs/jnigen/test/summary_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44

55
// These tests validate individual characteristics in summary
66
// For example, the values of methods, arguments, types, generic params etc...
7-
// ignore: library_annotations
7+
88
@Tags(['summarizer_test'])
9+
library;
910

1011
import 'package:jnigen/src/elements/elements.dart';
1112
import 'package:jnigen/src/summary/summary.dart';

0 commit comments

Comments
 (0)