From e770448a8c46ff61c4d9536d2540952bec4c5780 Mon Sep 17 00:00:00 2001 From: Volker Hilsheimer Date: Tue, 12 Nov 2024 11:32:42 +0100 Subject: [PATCH] Android: fix warning from Java compiler about redundant cast ConnectivityManager::getDefaultProxy already returns a ProxyInfo object, no need to cast. Change-Id: I808be775cb03d47c7bb1b20122597697f1f977a1 Reviewed-by: Assam Boudjelthia --- .../jar/src/org/qtproject/qt/android/network/QtNetwork.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/android/jar/src/org/qtproject/qt/android/network/QtNetwork.java b/src/network/android/jar/src/org/qtproject/qt/android/network/QtNetwork.java index 5272a2caf07..13d826fdb0e 100644 --- a/src/network/android/jar/src/org/qtproject/qt/android/network/QtNetwork.java +++ b/src/network/android/jar/src/org/qtproject/qt/android/network/QtNetwork.java @@ -58,7 +58,7 @@ static ConnectivityManager getConnectivityManager(final Context context) static ProxyInfo getProxyInfo(final Context context) { if (m_proxyInfo == null) - m_proxyInfo = (ProxyInfo)getConnectivityManager(context).getDefaultProxy(); + m_proxyInfo = getConnectivityManager(context).getDefaultProxy(); return m_proxyInfo; } }