Avoid throwing and catching ClassNotFoundException for SubList and RandomAccessSubList
sfc-gh-dschumann opened this issue · 0 comments
sfc-gh-dschumann commented
As these Classes don't exist anymore in newer Java versions, lines 115 and 116 in src/main/java/com/rits/cloning/Cloner.java
always cause an exception to be thrown and caught.
As exceptions are less efficient than regular code executions this should be avoided from a performance perspective.
If the maintainers agree I could open a PR with an added java version check at that point in the code.