• Bogdan Mitrović's avatar
    Fix PathSegment.hashCode() not handling PathVerb.CLOSE (#1194) · 9b179119
    Bogdan Mitrović authored
    PathSegment.hashCode() threw RuntimeException("Unreachable") for
    PathVerb.CLOSE segments when used in hash-based collections such as
    intersect(). Added CLOSE case consistent with what equals() checks for
    CLOSE segments. Also removed the else branch since all PathVerb values
    are now handled. Added a test which fails unless CLOSE is handled in
    hashCode().
    
    ## Testing
    Ran test on awt locally — the new test `closedPathIntersectTest` fails 
    before the fix and passes after.
    
    ## Release Notes
    Fix crash when using closed paths in hash-based collections such as
    `intersect()`
    
    Fixes: [SKIKO-1038](https://youtrack.jetbrains.com/issue/SKIKO-1038)
    9b179119
Name
Last commit
Last update
.github Loading commit data...
.run Loading commit data...
gradle/wrapper Loading commit data...
samples Loading commit data...
skiko Loading commit data...
.gitignore Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
CONTRIBUTING.md Loading commit data...
DEVELOPMENT.md Loading commit data...
LICENSE Loading commit data...
NOTICE Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
dependencies.toml Loading commit data...
gradle.properties Loading commit data...
gradlew Loading commit data...
gradlew.bat Loading commit data...
settings.gradle.kts Loading commit data...