3 ms·
>> static boolean isProlific (Map<String, Object> data) { >> return (int)data.get("books") > 100; >> } Could anything be more confusing with a large code b
by osigurdson 4y ago
>> static boolean isProlific (Map<String, Object> data) {
>> return (int)data.get("books") > 100;
>> }
Could anything be more confusing with a large code base? Also, lots of nice key not found and invalid cast exception errors to debug with this approach. Sometimes boxing makes a material difference to performance as well.