IDEMPIERE-455 Discover and fix FindBugs problems / Eclipse warning -> deprecated

This commit is contained in:
Carlos Ruiz 2012-12-20 17:05:26 -05:00
parent 49562e0b98
commit d951ae7b72
1 changed files with 6 additions and 2 deletions

View File

@ -595,7 +595,7 @@ public final class AEnv
}
/**
* @return true if user agent is internet explorer 7 or lower
* @return true if user agent is internet explorer
*/
public static boolean isInternetExplorer()
{
@ -605,7 +605,11 @@ public final class AEnv
Object n = execution.getNativeRequest();
if (n instanceof ServletRequest) {
return Servlets.isExplorer((ServletRequest) n);
String browser = Servlets.getBrowser((ServletRequest) n);
if (browser != null && browser.equals("ie"))
return true;
else
return false;
}
return false;
}