Merge pull request #3880 from pq/void_setters

Turn on `avoid_return_types_on_setters` and cleanup annotated setters.
This commit is contained in:
Phil Quitslund
2016-05-12 12:28:15 -07:00
58 changed files with 201 additions and 201 deletions

View File

@@ -31,7 +31,7 @@ linter:
- annotate_overrides
- avoid_as
- avoid_init_to_null
# - avoid_return_types_on_setters # https://github.com/dart-lang/linter/issues/202
- avoid_return_types_on_setters
- camel_case_types
# - constant_identifier_names # https://github.com/dart-lang/linter/issues/204 (and 203)
- empty_constructor_bodies

View File

@@ -204,7 +204,7 @@ class AdbDevice {
/// Device model; can be null. `XT1045`, `Nexus_7`
String get modelID => _info['model'];
void set modelID(String value) {
set modelID(String value) {
_info['model'] = value;
}