(Ranges.Entry range, long length)
| 1449 | } |
| 1450 | |
| 1451 | private static long getEnd(Ranges.Entry range, long length) { |
| 1452 | long end = range.getEnd(); |
| 1453 | if (range.getStart() == -1 || end == -1 || end >= length) { |
| 1454 | return length - 1; |
| 1455 | } else { |
| 1456 | return end; |
| 1457 | } |
| 1458 | } |
| 1459 | |
| 1460 | private boolean pathEndsWithCompressedExtension(String path) { |
| 1461 | for (CompressionFormat format : compressionFormats) { |
no test coverage detected