Skip to content

Commit 41bd316

Browse files
Revert "Fix Java lint warnings in google maps plugin (flutter#745)"
This reverts commit cc2354f.
1 parent bb8c5d4 commit 41bd316

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

packages/google_maps_flutter/android/src/main/java/io/flutter/plugins/googlemaps/Convert.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ private static BitmapDescriptor toBitmapDescriptor(Object o) {
3737
return BitmapDescriptorFactory.fromAsset(
3838
FlutterMain.getLookupKeyForAsset(toString(data.get(1)), toString(data.get(2))));
3939
}
40-
default:
41-
throw new IllegalArgumentException("Cannot interpret " + o + " as BitmapDescriptor");
4240
}
41+
throw new IllegalArgumentException("Cannot interpret " + o + " as BitmapDescriptor");
4342
}
4443

4544
private static boolean toBoolean(Object o) {
@@ -84,9 +83,8 @@ static CameraUpdate toCameraUpdate(Object o, float density) {
8483
return CameraUpdateFactory.zoomOut();
8584
case "zoomTo":
8685
return CameraUpdateFactory.zoomTo(toFloat(data.get(1)));
87-
default:
88-
throw new IllegalArgumentException("Cannot interpret " + o + " as CameraUpdate");
8986
}
87+
throw new IllegalArgumentException("Cannot interpret " + o + " as CameraUpdate");
9088
}
9189

9290
private static double toDouble(Object o) {

packages/google_maps_flutter/android/src/main/java/io/flutter/plugins/googlemaps/GoogleMapController.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@ void init() {
108108
case CREATED:
109109
mapView.onCreate(null);
110110
break;
111-
default:
112-
throw new IllegalArgumentException(
113-
"Cannot interpret " + activityState.get() + " as an activity state");
114111
}
115112
registrar.activity().getApplication().registerActivityLifecycleCallbacks(this);
116113
mapView.getMapAsync(this);
@@ -167,7 +164,6 @@ public void onMapReady(GoogleMap googleMap) {
167164
googleMap.setOnMarkerClickListener(this);
168165
}
169166

170-
@Override
171167
public void onMethodCall(MethodCall call, MethodChannel.Result result) {
172168
switch (call.method) {
173169
case "map#waitForMap":

0 commit comments

Comments
 (0)