Mayor Adams called the law “just not realistic” while on the campaign trail