Closed HelgeStenstrom closed 5 years ago
We used to have 3 open methods one for File, one for InputStream and one for URL i changed it like that because of code duplication in XR3Player but yes you are right.
Is it fully ready :)?
Code duplication is bad, but I think it's more important to expose runtime problems at compile time, if possible. Marking a method as deprecated doesn't remove it. But it becomes clearer exactly which data types are allowed in the overloaded open() method. This pull request doesn't change any runtime behavior. It just makes sense.
Yes, it's ready. It's tested.
Great Job :)
It's better to know at compile time that you cannot call open(String). If open(Objet) is permitted, the error appears at runtime, not compile time.