jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Damioli <cedric.dami...@anyware-tech.com>
Subject Very small bug in TextPlainTextFilter ?
Date Thu, 16 Jun 2005 09:35:22 GMT
Hi all,

Seeing recent threads about TextFilters, I took a look into indexing 
stuff and noticed the following code in TextPlainTextFilter.doFilter() :

        if (values.length > 0) {
            .........
        } else {
            // multi value not supported
            throw new RepositoryException("Multi-valued binary 
properties not supported.");
        }


IMHO, the test
if (values.length == 1) { ....}

would be more appropriate with the else statement

I don't opened a JIRA issue (it is quite trivial), but I can do if 
necessary.

But I may also have missed something ?

Regards,
Cédric

-- 
Cédric Damioli
ANYWARE TECHNOLOGIES
Tel : +33 (0)5 61 00 52 90
Fax : +33 (0)5 61 00 51 46
http://www.anyware-tech.com


Mime
View raw message