Closed vvatanabe closed 1 year ago
refactoring matchers.SpatialMatcher:
execute
extend
BaseMatcher
shiftedRx
ADJACENTS
private static final
String.valueOf(charAt)
coverage: 92.378% (+0.03%) from 92.353% when pulling a52747dc5bc4ee02ccc716e55098b4b4a66dd0bc on refactoring-SpatialMatcher into 181cb403962d033c64a67c0a250bdf11355ba840 on master.
refactoring matchers.SpatialMatcher:
execute
function into a separate function.extend
function fromBaseMatcher
.shiftedRx
static to reduce the number of times it's created.ADJACENTS
toprivate static final
to minimize the number of instances created.String.valueOf(charAt)
in a variable and reusing it, the duplication of operations was reduced.