Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Teneted/Tenet
/ limit
Method
limit
src/main/java/org/spigotmc/ValidateUtils.java:6–13 ·
view source on GitHub ↗
(String str, int limit)
Source
from the content-addressed store, hash-verified
4
{
5
6
public
static
String limit(String str,
int
limit)
7
{
8
if
( str.length() > limit )
9
{
10
return
str.substring( 0, limit );
11
}
12
return
str;
13
}
14
}
Callers
8
CraftMetaItem
Method · 0.95
CraftMetaBook
Method · 0.80
pushLimit
Method · 0.80
popLimit
Method · 0.80
execute
Method · 0.80
parse
Method · 0.80
parse
Method · 0.80
getMessages
Method · 0.80
Calls
1
length
Method · 0.45
Tested by
no test coverage detected