Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/spotbugs/spotbugs
/ getLength
Method
getLength
spotbugsTestCases/src/java/CHM.java:7–9 ·
view source on GitHub ↗
(String s)
Source
from the content-addressed store, hash-verified
5
ConcurrentHashMap<String, String> map =
new
ConcurrentHashMap<String, String>();
6
7
int
getLength(String s) {
8
return
map.get(s).length();
9
}
10
11
void
put(String k, String v) {
12
if
(k == null)
Callers
4
getAvgPriorityFast
Method · 0.45
getAvgPrioritySlow
Method · 0.45
getAvgPriorityFastMult
Method · 0.45
getAvgPrioritySlowMult
Method · 0.45
Calls
1
get
Method · 0.65
Tested by
no test coverage detected