corrected checkstyle tags
@@ -173,18 +173,15 @@ private static String indent(String pad, String detail, String nl)
static void prettyPrintData(byte[] sig, StringBuilder buf, String nl)
{
- // -DM Hex.toHexString
- // -DM Hex.toHexString
- // -DM Hex.toHexString
- // -DM Hex.toHexString
-
if (sig.length > 20)
{
+ // -DM Hex.toHexString
buf.append(Hex.toHexString(sig, 0, 20)).append(nl);
format(buf, sig, nl);
}
else
{
+ // -DM Hex.toHexString
buf.append(Hex.toHexString(sig)).append(nl);
}
}
@@ -195,10 +192,12 @@ static void format(StringBuilder buf, byte[] data, String nl)
{
if (i < data.length - 20)
{
+ // -DM Hex.toHexString
buf.append(" ").append(Hex.toHexString(data, i, 20)).append(nl);
}
else
{
+ // -DM Hex.toHexString
buf.append(" ").append(Hex.toHexString(data, i, data.length - i)).append(nl);
}
}
@@ -345,6 +344,7 @@ public static void main(String[] args)
{
PEMParser p = new PEMParser(new FileReader(args[0]));
+ // -DM System.out.println
System.out.println(asString((X509CertificateHolder)p.readObject()));
}
}
