boolean unavail = false;
Log log = null;
for (SigType t : SigType.values()) {
if (!t.isAvailable()) {
if (!unavail) {
<BUG>unavail = true;
log = ctx.logManager().getLog(CryptoChecker.class);</BUG>
}
<BUG>String s = "Crypto " + t + " is not available";
log.logAlways(log.WARN, s);</BUG>
System.out.println("Warning: " + s);

boolean unavail = false;
Log log = null;
for (SigType t : SigType.values()) {
if (!t.isAvailable()) {
if (!unavail) {
unavail = true;
if (ctx != null)
log = ctx.logManager().getLog(CryptoChecker.class);
}
String s = "Crypto " + t + " is not available";
if (log != null)
log.logAlways(log.WARN, s);
