fix static access

This commit is contained in:
zzz
2014-10-28 13:11:39 +00:00
parent eae277fb77
commit 2ebacb1b9b

View File

@@ -39,7 +39,7 @@ public class CryptoChecker {
} }
String s = "Crypto " + t + " is not available"; String s = "Crypto " + t + " is not available";
if (log != null) if (log != null)
log.logAlways(log.WARN, s); log.logAlways(Log.WARN, s);
System.out.println("Warning: " + s); System.out.println("Warning: " + s);
} }
} }
@@ -49,12 +49,12 @@ public class CryptoChecker {
System.getProperty("os.arch") + ' ' + System.getProperty("os.arch") + ' ' +
System.getProperty("os.version"); System.getProperty("os.version");
if (log != null) if (log != null)
log.logAlways(log.WARN, s); log.logAlways(Log.WARN, s);
System.out.println("Warning: " + s); System.out.println("Warning: " + s);
if (!SystemVersion.isJava7()) { if (!SystemVersion.isJava7()) {
s = "Please consider upgrading to Java 7"; s = "Please consider upgrading to Java 7";
if (log != null) if (log != null)
log.logAlways(log.WARN, s); log.logAlways(Log.WARN, s);
System.out.println(s); System.out.println(s);
} }
if (!isUnlimited()) { if (!isUnlimited()) {
@@ -66,12 +66,12 @@ public class CryptoChecker {
//else //else
s += JRE6; s += JRE6;
if (log != null) if (log != null)
log.logAlways(log.WARN, s); log.logAlways(Log.WARN, s);
System.out.println(s); System.out.println(s);
} }
s = "This crypto will be required in a future release"; s = "This crypto will be required in a future release";
if (log != null) if (log != null)
log.logAlways(log.WARN, s); log.logAlways(Log.WARN, s);
System.out.println("Warning: " + s); System.out.println("Warning: " + s);
} else if (ctx == null) { } else if (ctx == null) {
// called from main() // called from main()