You can cick the logger-entries all out:
private static String OS_MICROSOFT = "Windows NT ";
private Boolean isClickToCallCompatible(HttpServletRequest request) {
String userAgent = null;
int indexFound = -1;
try {
userAgent = request.getHeader("user-agent");
if (userAgent!=null)
indexFound = userAgent.indexOf(OS_MICROSOFT);
if (indexFound!=-1
&& Integer.parseInt(userAgent.substring(indexFound + OS_MICROSOFT.length(), indexFound + OS_MICROSOFT.length() +1))>=6
) {
return Boolean.TRUE;
}
} catch (Exception e) {
return Boolean.FALSE;
}
return Boolean.FALSE;
}
Those are just referencing to log4j, which is additional, common used and to some point of view necessary - but the code also runs without.
Have you tried loading it into your C# Bench? Could well be possible that it reacts and makes the right suggestions. Java and C# are not much different. Also Java is better (no need to downvote ;) )