commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <j...@apache.org>
Subject [jira] Updated: (IO-140) IO 2.0 - Move to JDK 1.5
Date Wed, 06 Feb 2008 23:01:13 GMT

     [ https://issues.apache.org/jira/browse/IO-140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Niall Pemberton updated IO-140:
-------------------------------

    Fix Version/s:     (was: 2.x)
                   2.0
          Summary: IO 2.0 - Move to JDK 1.5  (was: IO 2.0 - remove deprecations and move to
JDK 1.5)

OK I've applied all the JDK 1.5 changes, except I added the "CharSequence" flavour methods
to IOUtils and FileUtils, rather than changing the signature of the existing methods:

 - Use generics: http://svn.apache.org/viewvc?view=rev&revision=619103
 - Use StringBuilder (non-sync) in place of StringBuffer : http://svn.apache.org/viewvc?view=rev&revision=619112
 - Add new JDK 1.5 Read/Writer methods: http://svn.apache.org/viewvc?view=rev&revision=619135
 - Add CharSequence flavour methods to IOUtils / FileUtils: http://svn.apache.org/viewvc?view=rev&revision=619188
 - Replace StringWriter with StringBuilderWriter in IOUtils: http://svn.apache.org/viewvc?view=rev&revision=619195

So far AFAIK none of these are incompatible changes - clirr is only showing an issue with
the LineIterator next() method returning a String rather than Object - but I think this is
a false positive?

Stephen mentioned a couple of other points (Collections to Iterable, and removing arrays)
here:
  http://commons.markmail.org/message/xcplvzf3p4odbckx


> IO 2.0 - Move to JDK 1.5
> ------------------------
>
>                 Key: IO-140
>                 URL: https://issues.apache.org/jira/browse/IO-140
>             Project: Commons IO
>          Issue Type: Wish
>            Reporter: Niall Pemberton
>             Fix For: 2.0
>
>         Attachments: IO-2.0-deprecate-and-jdk5.patch
>
>
> I just created IO-139 for a StringBuilder Writer implementation that requies JDK 1.5.
So I thought I would look at the impact on IO of 1) Removing all deprecations and 2) Making
appropriate JDK 1.5 changes (generics, using StringBuilder and new Appendable for Writers).
Below is a summary, thought it could be a starting point for discussion about IO 2.0
> 1) DEPRECATIONS
>     - CopyUtils
>     - FileCleaner
>     - WildcardFilter
>     - FileSystemUtils freeSpace(String)
>     - IOUtils toByteArray(String), toString(byte[]), toString(byte[], String) 
> 2) JDK 1.5
>     - ConditionalFileFilter List (and also AndFileFilter and OrFileFilter implementations
>         - getFileFilters() and setFileFilters() use generic List<IOFileFilter>
>     - Constructor for NameFileFilter, PrefixFileFilter, SuffixFileFilter, WildcardFileFilter
use generic List<String>
>     - replace StringBuffer with StringBuilder where appropriate (FilenameUtils, FileSystemUtils,
HexDump,IOUtils
>     - FileUtils 
>         - convertFileCollectionToFileArray() --> Collection<File>
>         - listFiles() --> Collection<File>
>         - listFiles() --> Collection<File>
>         - writeStringToFile String-->CharSequence (JDK 1.4+)
>     - ProxyReader - add read(CharBuffer)
>     - IOUtils
>         - readLines(Reader) return List<String>
>         - toInputStream(String) --> toInputStream(CharSequence)  (JDK 1.4+)
>         - write(String data, OutputStream) and write(StringBuffer data, OutputStream)
--> write(CharSequence data, OutputStream) 
>         - write(String, Writer) and write(StringBuffer, Writer) --> write(CharSequence
data, Writer) 
>     - LineIterator Iterator --> Iterator<String
>     - NullWriter - add "Appendable" methods
>     - ProxyWriter - add "Appendable" methods

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message