#489 Fix to make AbstractIndex repo work with Java 8

Pull request with the fix applied as discussed: https://github.com/bndtools/bnd/issues/489