Skip to content
Permalink
Browse files
8242241: add assert to ClassUnloadEventImpl::className
Add assert

Reviewed-by: cjplummer, dcubed
  • Loading branch information
Serguei Spitsyn committed Apr 13, 2020
1 parent 7a608f4 commit 68e0e49bc8b09bb40358135d8a650a0a8fc83fe7
Showing 1 changed file with 1 addition and 0 deletions.
@@ -425,6 +425,7 @@ class ClassUnloadEventImpl extends EventImpl implements ClassUnloadEvent {
}

public String className() {
assert classSignature.startsWith("L") && classSignature.endsWith(";");
return classSignature.substring(1, classSignature.length()-1)
.replace('/', '.');
}

0 comments on commit 68e0e49

Please sign in to comment.