Skip to content

Commit a79ee3e

Browse files
committed
nits
1 parent 299743a commit a79ee3e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

json_serializable/tool/build.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import 'package:json_serializable/src/json_part_builder.dart';
1313
import 'builder.dart';
1414

1515
final List<BuilderApplication> builders = [
16-
applyToRoot(nonNull(null),
16+
applyToRoot(nonNull(),
1717
generateFor: const InputSet(include: const [
1818
'test/test_files/kitchen_sink.dart',
1919
'test/test_files/json_test_example.dart'
2020
])),
21-
applyToRoot(wrapped(null),
21+
applyToRoot(wrapped(),
2222
generateFor: const InputSet(include: const [
2323
'test/test_files/kitchen_sink.dart',
2424
'test/test_files/kitchen_sink.non_nullable.dart',

json_serializable/tool/builder.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
1+
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
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

@@ -16,10 +16,10 @@ final _copyrightContent =
1616

1717
final copyrightHeader = '$_copyrightContent\n$defaultFileHeader';
1818

19-
Builder nonNull(_) => new LibraryBuilder(new _NonNullableGenerator(),
19+
Builder nonNull([_]) => new LibraryBuilder(new _NonNullableGenerator(),
2020
generatedExtension: '.non_nullable.dart', header: copyrightHeader);
2121

22-
Builder wrapped(_) => new LibraryBuilder(new _WrappedGenerator(),
22+
Builder wrapped([_]) => new LibraryBuilder(new _WrappedGenerator(),
2323
generatedExtension: '.wrapped.dart', header: copyrightHeader);
2424

2525
class _NonNullableGenerator extends Generator {

0 commit comments

Comments
 (0)