So we were digging around Oracle's JMH meme internals...
if (!challengeResponse.equals("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.")) {
throw new IllegalStateException("Blackholes should not be instantiated directly.");
}
public void evaporate(String challengeResponse) {
if (!challengeResponse.equals("You'll see Stephen Hawking pole vaulting before this method becomes useful to you.")) {
throw new IllegalStateException("Can't touch it.");
}
obj1 = null;
objs1 = null;
}
public void evaporate(String challengeResponse) {
if (!challengeResponse.equals("Yes, I am Stephen Hawking, and know a thing or two about black holes.")) {
throw new IllegalStateException("Who are you?");
}
obj1 = null;
}
Always nice knowing I'm not the only code memer out there.
Posted Nov 12, 2017, 1:40 AM UTC
170