Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/ccxt/ccxt
/ shorten
Method
shorten
java/examples/src/main/java/examples/ErrorHandling.java:78–81 ·
view source on GitHub ↗
(String s)
Source
from the content-addressed store, hash-verified
76
}
77
78
static
String shorten(String s) {
79
if
(s == null)
return
"null"
;
80
return
s.length() > 100 ? s.substring(0, 100) +
"..."
: s;
81
}
82
}
Callers
1
main
Method · 0.95
Calls
1
length
Method · 0.45
Tested by
no test coverage detected