(Method method)
| 411 | * Copied from org.apache.el.lang.ELSupport - keep in sync |
| 412 | */ |
| 413 | private static boolean overridesObjectMethod(Method method) { |
| 414 | // There are three methods that can be overridden |
| 415 | if ("equals".equals(method.getName())) { |
| 416 | if (method.getReturnType().equals(boolean.class)) { |
| 417 | if (method.getParameterCount() == 1) { |
| 418 | return method.getParameterTypes()[0].equals(Object.class); |
| 419 | } |
| 420 | } |
| 421 | } else if ("hashCode".equals(method.getName())) { |
| 422 | if (method.getReturnType().equals(int.class)) { |
| 423 | return method.getParameterCount() == 0; |
| 424 | } |
| 425 | } else if ("toString".equals(method.getName())) { |
| 426 | if (method.getReturnType().equals(String.class)) { |
| 427 | return method.getParameterCount() == 0; |
| 428 | } |
| 429 | } |
| 430 | |
| 431 | return false; |
| 432 | } |
| 433 | } |
no test coverage detected