Skip to content

Commit

Permalink
Android: fix warning from Java compiler about redundant cast
Browse files Browse the repository at this point in the history
ConnectivityManager::getDefaultProxy already returns a ProxyInfo object,
no need to cast.

Change-Id: I808be775cb03d47c7bb1b20122597697f1f977a1
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
  • Loading branch information
vohi committed Nov 12, 2024
1 parent 81e74cf commit e770448
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit e770448

Please sign in to comment.