Enum Class GitPositionTransformer.BestPositionOnConflict

java.lang.Object
java.lang.Enum<GitPositionTransformer.BestPositionOnConflict>
com.google.gerrit.server.patch.GitPositionTransformer.BestPositionOnConflict
All Implemented Interfaces:
GitPositionTransformer.PositionConflictStrategy, Serializable, Comparable<GitPositionTransformer.BestPositionOnConflict>, java.lang.constant.Constable
Enclosing class:
GitPositionTransformer

public static enum GitPositionTransformer.BestPositionOnConflict extends Enum<GitPositionTransformer.BestPositionOnConflict> implements GitPositionTransformer.PositionConflictStrategy
A strategy which tries to select the next suitable GitPositionTransformer.Position on a conflicting mapping. At the moment, this strategy is very basic and only defers to the next higher level (e.g. range unclear -> drop range but keep file reference). This could be improved in the future.

We need this strategy for ported comments.

Warning: With this strategy, mapped GitPositionTransformer.Positions are not guaranteed to refer to exactly the same commit content as before. See more details at GitPositionTransformer.PositionConflictStrategy.

Contract: This strategy will never drop any GitPositionTransformer.Position.