I may not understand the semantics of this method very well, but if I look at the code in URIOps, I think what this is meant to say is that the Uri is just a relative uri and only with a fragment, ie <#me> or something like that but not say </hello#me> . If so I think this implementation is incorrect, as it will return true for both and only false if there is no fragment.