PeterAlfredLee commented on pull request #108:
URL: https://github.com/apache/commons-vfs/pull/108#issuecomment-667760160


   Hi, @garydgregory @ecki 
   
   I agree with you two about the duplicate code. But it seems the 
`setProxyHost` and `setProxyPort` in `HttpFileSystemConfigBuilder`, 
`Http4FileSystemConfigBuilder` and `Http5FileSystemConfigBuilder` are not 
inherited from their common father class or any other interface class. In other 
words, they implemented the `setProxyHost` and `setProxyPort` separately but 
only share the same method name.
   
   This make it a bit difficult for me to extract the duplicate code, I can 
only think of the reflect way to do 
this([here](https://github.com/PeterAlfredLee/commons-vfs/commit/36e1275c348cc995e55ab48f95e09bfc8bcb6e66)).
 Do you think this is a good idea? Or you have some better ideas?
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to