decided to change the following interface method definition from ….
public void notify(String name, String desc, int id) throws UBaseException;
….to….
public void notify(String name, String desc, Object obj) throws UBaseException;
But then there were already several calls in our applications' code that were using the old signature where the last parameter was an integer.
But I did not get any compilation errors when I did a clean build without changing existing calls to notify().
Any Idea Why?
so, again, why did you change it in the first place? 🤔
You should bring back the old one and annotate it as @Deprecated if its a public api
Обсуждают сегодня