Skip to content

Commit 87c5e2c

Browse files
committed
Update generated file copyright year to 2018
1 parent 0268d4b commit 87c5e2c

26 files changed

+30
-41
lines changed

json_serializable/example/example.g.dart

Lines changed: 1 addition & 1 deletion
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

json_serializable/test/generic_files/generic_class.g.dart

Lines changed: 1 addition & 1 deletion
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

json_serializable/test/generic_files/generic_class.wrapped.dart

Lines changed: 5 additions & 16 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

@@ -38,19 +38,8 @@ class GenericClass<T extends num, S> extends Object
3838
_$GenericClassFromJson<T, S>(json);
3939
}
4040

41-
T _dataFromJson<T, S, U>(Map<String, dynamic> input, [S other1, U, other2]) {
42-
print(['fj', T, S, U, input]);
43-
if (T is Set) {
44-
return new Set.from(input['value'] as Iterable) as T;
45-
}
46-
return input['value'] as T;
47-
}
41+
T _dataFromJson<T, S, U>(Map<String, dynamic> input, [S other1, U, other2]) =>
42+
input['value'] as T;
4843

49-
Map<String, dynamic> _dataToJson<T, S, U>(T input, [S other1, U, other2]) {
50-
print(['tj', T, S, U, input]);
51-
dynamic value = input;
52-
if (input is Iterable) {
53-
value = input.toList();
54-
}
55-
return {'value': value};
56-
}
44+
Map<String, dynamic> _dataToJson<T, S, U>(T input, [S other1, U, other2]) =>
45+
{'value': input};

json_serializable/test/generic_files/generic_class.wrapped.g.dart

Lines changed: 1 addition & 1 deletion
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

json_serializable/test/kitchen_sink_test_files/kitchen_sink.dart

Lines changed: 1 addition & 1 deletion
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

json_serializable/test/kitchen_sink_test_files/kitchen_sink.g.dart

Lines changed: 1 addition & 1 deletion
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

json_serializable/test/kitchen_sink_test_files/kitchen_sink.non_nullable.checked.dart

Lines changed: 1 addition & 1 deletion
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

json_serializable/test/kitchen_sink_test_files/kitchen_sink.non_nullable.checked.g.dart

Lines changed: 1 addition & 1 deletion
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

json_serializable/test/kitchen_sink_test_files/kitchen_sink.non_nullable.dart

Lines changed: 1 addition & 1 deletion
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

json_serializable/test/kitchen_sink_test_files/kitchen_sink.non_nullable.g.dart

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)