Skip to content
Permalink
Browse files

8242241: add assert to ClassUnloadEventImpl::className

Add assert

Reviewed-by: cjplummer, dcubed
  • Loading branch information
Serguei Spitsyn
Serguei Spitsyn committed Apr 13, 2020
1 parent 7a608f4 commit 68e0e49bc8b09bb40358135d8a650a0a8fc83fe7
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/jdk.jdi/share/classes/com/sun/tools/jdi/EventSetImpl.java
@@ -425,6 +425,7 @@ String eventName() {
}

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.
You can’t perform that action at this time.