You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2023/12/31 13:13:00 UTC

[jira] [Created] (IO-835) FileOrigin == PathOrigin

Elliotte Rusty Harold created IO-835:
----------------------------------------

             Summary: FileOrigin == PathOrigin
                 Key: IO-835
                 URL: https://issues.apache.org/jira/browse/IO-835
             Project: Commons IO
          Issue Type: Improvement
            Reporter: Elliotte Rusty Harold


FileOrigin and PathOrigin are the same thing. They both represent a file in the file system. Two classes really aren't needed here, any more than we need two classes for StringOrigin and StringBuilderOrigin. Instead we need two constructors, one of which takes a File and one of which takes a Path.

Or at the very least make one a subclass of the other. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)