MCPcopy Create free account
hub / github.com/apache/ant / endsWith

Method endsWith

src/main/org/apache/tools/ant/util/StringUtils.java:122–143  ·  view source on GitHub ↗

Checks that a string buffer ends up with a given string. It may sound trivial with the existing JDK API but the various implementation among JDKs can make those methods extremely resource intensive and perform poorly due to massive memory allocation and copying. See @param buffer the buffer to perfo

(StringBuffer buffer, String suffix)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

lastDelimiterPositionMethod · 0.95
testEndsWithBothEmptyMethod · 0.95
testEndsWithNoMatchMethod · 0.95
testEndsWithPerfMethod · 0.95
testFilePresentMethod · 0.45
testFilePresentMethod · 0.45
testFilePresentMethod · 0.45

Calls 1

lengthMethod · 0.45

Tested by 15

testEndsWithBothEmptyMethod · 0.76
testEndsWithNoMatchMethod · 0.76
testEndsWithPerfMethod · 0.76
testFilePresentMethod · 0.36
testFilePresentMethod · 0.36
testFilePresentMethod · 0.36
testFilePresentMethod · 0.36