Skip to content

Commit 27632e6

Browse files
committed
feat(deprecation): fixing comments
1 parent 0a2e028 commit 27632e6

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

AndroidSDK/src/com/leanplum/internal/ResourceQualifiers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public Object getMatch(String str) {
8080

8181
@Override
8282
public boolean isMatch(Object value, Configuration config, DisplayMetrics display) {
83-
// We should switch to getLocale() instead of reading directly locale.
83+
// Suppressing deprecated locale.
8484
//noinspection deprecation
8585
return config.locale.getLanguage().equals(value);
8686
}
@@ -96,7 +96,7 @@ public Object getMatch(String str) {
9696

9797
@Override
9898
public boolean isMatch(Object value, Configuration config, DisplayMetrics display) {
99-
// We should switch to getLocale() instead of reading directly locale.
99+
// Suppressing deprecated locale.
100100
//noinspection deprecation
101101
return config.locale.getCountry().toLowerCase().equals(value);
102102
}

AndroidSDK/src/com/leanplum/internal/Socket.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@
4848
*
4949
* @author Andrew First, Ben Marten
5050
*/
51-
// Suppressing apache dependency deprecation. We should upgrade our socket IO client to new version
52-
// which uses okhttp library.
51+
// Suppressing deprecated apache dependency.
5352
@SuppressWarnings("deprecation")
5453
public class Socket {
5554
private static final String TAG = "Leanplum";

AndroidSDK/src/com/leanplum/internal/SocketIOClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@
4444
import java.util.Arrays;
4545
import java.util.HashSet;
4646

47-
// Suppressing apache dependency deprecation. We should upgrade our socket IO client to new version
48-
// which uses okhttp library.
47+
// Suppressing deprecated apache dependency.
4948
@SuppressWarnings("deprecation")
5049
class SocketIOClient {
5150
interface Handler {

AndroidSDK/src/com/leanplum/internal/WebSocketClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353
import javax.net.ssl.SSLSocketFactory;
5454
import javax.net.ssl.TrustManager;
5555

56-
// Suppressing apache dependency deprecation. We should upgrade our socket IO client to new version
57-
// which uses okhttp library.
56+
// Suppressing deprecated apache dependency.
5857
@SuppressWarnings("deprecation")
5958
class WebSocketClient {
6059
private static final String TAG = "WebSocketClient";

0 commit comments

Comments
 (0)