| | |
| | | // .log(Level.INFO, "{0} {1} {2}", new Object[]{methodType, route, className}); |
| | | //dispatcher.get(methodType).put(ad.route, ad); |
| | | Object adMapObj = dispatcher.get(methodType); |
| | | if(adMapObj instanceof HashMap hashMap) { |
| | | if(adMapObj instanceof HashMap) { |
| | | @SuppressWarnings("unchecked") |
| | | HashMap<String, ActionDescriptor> map = hashMap; |
| | | HashMap<String, ActionDescriptor> map = (HashMap) adMapObj; |
| | | map.put(ad.route, ad); |
| | | Logger.getLogger(Handler.class.getName()).log(Level.FINER, "ActionDescriptor route {0} className {1}", new Object[]{route, className}); |
| | | } else { |