diff --git a/pkgs/jnigen/analysis_options.yaml b/pkgs/jnigen/analysis_options.yaml index f8e2734f9..8b09d6e9a 100644 --- a/pkgs/jnigen/analysis_options.yaml +++ b/pkgs/jnigen/analysis_options.yaml @@ -20,7 +20,6 @@ linter: unawaited_futures: true prefer_const_constructors: true prefer_relative_imports: true - type_annotate_public_apis: false # TODO(https://github.com/dart-lang/native/issues/1282): Fix. unnecessary_lambdas: false # TODO(https://github.com/dart-lang/native/issues/1282): Fix. unnecessary_parenthesis: false # TODO(https://github.com/dart-lang/native/issues/1282): Fix. unreachable_from_main: false # TODO(https://github.com/dart-lang/native/issues/1282): Fix. diff --git a/pkgs/jnigen/lib/src/bindings/unnester.dart b/pkgs/jnigen/lib/src/bindings/unnester.dart index d9323df91..5b2a4ebee 100644 --- a/pkgs/jnigen/lib/src/bindings/unnester.dart +++ b/pkgs/jnigen/lib/src/bindings/unnester.dart @@ -13,7 +13,7 @@ class Unnester extends Visitor { const Unnester(); @override - void visit(node) { + void visit(Classes node) { final classProcessor = _ClassUnnester(); for (final classDecl in node.decls.values) { classDecl.accept(classProcessor); diff --git a/pkgs/jnigen/test/simple_package_test/generate.dart b/pkgs/jnigen/test/simple_package_test/generate.dart index b37c11f79..ce498c0dc 100644 --- a/pkgs/jnigen/test/simple_package_test/generate.dart +++ b/pkgs/jnigen/test/simple_package_test/generate.dart @@ -21,9 +21,9 @@ const preamble = ''' '''; -var javaPrefix = join('com', 'github', 'dart_lang', 'jnigen'); +final javaPrefix = join('com', 'github', 'dart_lang', 'jnigen'); -var javaFiles = [ +final javaFiles = [ join(javaPrefix, 'simple_package', 'Example.java'), join(javaPrefix, 'pkg2', 'C2.java'), join(javaPrefix, 'pkg2', 'Example.java'),