From 0279679c5ae81a033b9efda46dcead88944cd237 Mon Sep 17 00:00:00 2001 From: osana Date: Mon, 29 Oct 2018 13:34:09 -0400 Subject: [PATCH] Remove dependency on BindingContextFactory --- .../com/mapbox/api/directions/v5/MapboxDirections.java | 6 +++--- .../java/com/mapbox/api/matching/v5/MapboxMapMatching.java | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/services-directions/src/main/java/com/mapbox/api/directions/v5/MapboxDirections.java b/services-directions/src/main/java/com/mapbox/api/directions/v5/MapboxDirections.java index 7e3324066..3e59531c9 100644 --- a/services-directions/src/main/java/com/mapbox/api/directions/v5/MapboxDirections.java +++ b/services-directions/src/main/java/com/mapbox/api/directions/v5/MapboxDirections.java @@ -24,7 +24,6 @@ import com.mapbox.core.utils.MapboxUtils; import com.mapbox.core.utils.TextUtils; import com.mapbox.geojson.Point; -import com.sun.xml.internal.ws.spi.db.BindingContextFactory; import java.io.IOException; import java.lang.annotation.Annotation; @@ -32,6 +31,7 @@ import java.util.List; import java.util.Locale; import java.util.logging.Level; +import java.util.logging.Logger; import okhttp3.ResponseBody; import retrofit2.Call; @@ -184,14 +184,14 @@ private void errorDidOccur(@Nullable Callback callback, Converter errorConverter = getRetrofit().responseBodyConverter(DirectionsError.class, new Annotation[0]); if (callback == null) { - BindingContextFactory.LOGGER.log( + Logger.getLogger(MapboxDirections.class.getName()).log( Level.WARNING, "Failed to complete your request and callback is null"); } else { try { callback.onFailure(getCall(), new Throwable(errorConverter.convert(response.errorBody()).message())); } catch (IOException ioException) { - BindingContextFactory.LOGGER.log( + Logger.getLogger(MapboxDirections.class.getName()).log( Level.WARNING, "Failed to complete your request. ", ioException); } } diff --git a/services-matching/src/main/java/com/mapbox/api/matching/v5/MapboxMapMatching.java b/services-matching/src/main/java/com/mapbox/api/matching/v5/MapboxMapMatching.java index c29cd0dee..3ac0bca67 100644 --- a/services-matching/src/main/java/com/mapbox/api/matching/v5/MapboxMapMatching.java +++ b/services-matching/src/main/java/com/mapbox/api/matching/v5/MapboxMapMatching.java @@ -26,8 +26,6 @@ import com.mapbox.core.utils.TextUtils; import com.mapbox.geojson.Point; -import com.sun.xml.internal.ws.spi.db.BindingContextFactory; - import okhttp3.ResponseBody; import retrofit2.Call; import retrofit2.Callback; @@ -40,6 +38,7 @@ import java.util.List; import java.util.Locale; import java.util.logging.Level; +import java.util.logging.Logger; /** @@ -187,14 +186,14 @@ private void errorDidOccur(@Nullable Callback callback, Converter errorConverter = getRetrofit().responseBodyConverter(MapMatchingError.class, new Annotation[0]); if (callback == null) { - BindingContextFactory.LOGGER.log( + Logger.getLogger(MapboxMapMatching.class.getName()).log( Level.WARNING, "Failed to complete your request and callback is null"); } else { try { callback.onFailure(getCall(), new Throwable(errorConverter.convert(response.errorBody()).message())); } catch (IOException ioException) { - BindingContextFactory.LOGGER.log( + Logger.getLogger(MapboxMapMatching.class.getName()).log( Level.WARNING, "Failed to complete your request. ", ioException); } }