diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/geometry/LatLngBounds.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/geometry/LatLngBounds.java index 3a21f9d124c..8d016131f26 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/geometry/LatLngBounds.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/geometry/LatLngBounds.java @@ -331,7 +331,7 @@ private static void checkParams( } if (latNorth < latSouth) { - throw new IllegalArgumentException("LatSouth cannot be less than latNorth"); + throw new IllegalArgumentException("latNorth cannot be less than latSouth"); } } diff --git a/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/geometry/LatLngBoundsTest.java b/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/geometry/LatLngBoundsTest.java index 34fa08b4728..a45728c4949 100644 --- a/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/geometry/LatLngBoundsTest.java +++ b/platform/android/MapboxGLAndroidSDK/src/test/java/com/mapbox/mapboxsdk/geometry/LatLngBoundsTest.java @@ -387,7 +387,7 @@ public void intersectSouthCheck() { @Test public void intersectSouthLessThanNorthCheck() { exception.expect(IllegalArgumentException.class); - exception.expectMessage("LatSouth cannot be less than latNorth"); + exception.expectMessage("latNorth cannot be less than latSouth"); LatLngBounds intersectLatLngBounds = LatLngBounds.from(10, 10, 0, 0) @@ -594,7 +594,7 @@ public void unionSouthCheck() { @Test public void unionSouthLessThanNorthCheck() { exception.expect(IllegalArgumentException.class); - exception.expectMessage("LatSouth cannot be less than latNorth"); + exception.expectMessage("latNorth cannot be less than latSouth"); LatLngBounds unionLatLngBounds = LatLngBounds.from(10, 10, 0, 0) @@ -786,7 +786,7 @@ public void testConstructorChecksWestLongitudeInfinity() { @Test public void testConstructorCheckLatSouthGreaterLatNorth() { exception.expect(IllegalArgumentException.class); - exception.expectMessage("LatSouth cannot be less than latNorth"); + exception.expectMessage("latNorth cannot be less than latSouth"); LatLngBounds.from(0, 20, 20, 0); } }