You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2011/09/01 14:02:10 UTC

[jira] [Closed] (JENA-7) IRI isRootless flips true and false.

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

Andy Seaborne closed JENA-7.
----------------------------


> IRI isRootless flips true and false.
> ------------------------------------
>
>                 Key: JENA-7
>                 URL: https://issues.apache.org/jira/browse/JENA-7
>             Project: Jena
>          Issue Type: Bug
>          Components: IRI
>            Reporter: Andy Seaborne
>            Assignee: Paolo Castagna
>            Priority: Minor
>
> This operations returns true for false and vice versa, give it's name: should be named is "isRooted" or the result sense changed.
> @Override
> public boolean isRootless() {
>     if (!has(SCHEME))
>       return false;
>     if (has(AUTHORITY))
>       return false;
>     if (path.equals(""))
>       return false;
>     if (path.charAt(0) == '/')
>       return false;
>     return true;
> }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira