8357592: Update output parsing in test/jdk/sun/security/tools/jarsigner/compatibility/Compatibility.java
Reviewed-by: rhalade
This commit is contained in:
parent
8939acc8ab
commit
5ed246d17d
@ -516,7 +516,7 @@ public class Compatibility {
|
||||
String line;
|
||||
while ((line = reader.readLine()) != null) {
|
||||
String item = line.trim();
|
||||
if (!item.isEmpty()) {
|
||||
if (!item.isEmpty() && !item.startsWith("#")) {
|
||||
list.add(item);
|
||||
}
|
||||
}
|
||||
@ -718,8 +718,8 @@ public class Compatibility {
|
||||
String match = "^ ("
|
||||
+ " Signature algorithm: " + signItem.certInfo.
|
||||
expectedSigalg(signItem) + ", " + signItem.certInfo.
|
||||
expectedKeySize() + "-bit " + signItem.certInfo.
|
||||
expectedKeyAlgorithm() + " key"
|
||||
expectedKeySize() + "-bit (" + signItem.certInfo.
|
||||
expectedKeyAlgorithm() + " key|key)"
|
||||
+ ")|("
|
||||
+ " Digest algorithm: " + signItem.expectedDigestAlg()
|
||||
+ (isWeakAlg(signItem.expectedDigestAlg()) ? " \\(weak\\)" : "")
|
||||
|
@ -149,7 +149,7 @@ public abstract class Test {
|
||||
+ "This algorithm will be disabled in a future update.";
|
||||
|
||||
static final String WEAK_KEY_WARNING
|
||||
= "It will be disabled in a future update.";
|
||||
= "will be disabled in a future update.";
|
||||
|
||||
static final String JAR_SIGNED = "jar signed.";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user