I was browsing the old code base, and I found a method that only calls its parent:
@Override public void select(Object item) { super.select(item); }
Will there be any precedent for such a method? To me, it looks like I could just delete it.
Removing this will hardly change. You will see the difference when using reflection and searching for the select method on the object. If you ask to tell not to look in the base class of the object, it will not find the method after deleting it.
select
Yes, this method can be removed without changing the logic of your code.
Perhaps he had another implementation that was removed or should have had another implementation that was never written.
Source: https://habr.com/ru/post/983595/More articles:Installing multiple versions of cocoa pods - iosDoes the copy constructor or copy assignment operator delete as an "advertised user"? - c ++Portable variable writing to yaml file - pythonHow to use Systemd to restart a service when not working? - linuxDetect When AvPlayer Bit Rate - iosHow to catch exceptions conditionally? - c ++How can I reuse exception handling code for multiple functions in Python? - functionLoading an icon with a smaller changeVars compiles - javascriptRepeat Push Notification Using Azure Push Notification - azureCan a single iOS application support multiple registration of input notifications? - iosAll Articles