Changeset 4c970fa for core


Ignore:
Timestamp:
Oct 13, 2018 10:35:30 AM (20 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
ee57bd7
Parents:
0a99784
Message:

Data: SPK log tweaks

Location:
core/java/src/net/i2p/data
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/data/SigningPrivateKey.java

    r0a99784 r4c970fa  
    9595    public String toString() {
    9696        StringBuilder buf = new StringBuilder(64);
    97         buf.append('[').append(getClass().getSimpleName()).append(' ').append(_type).append(": ");
     97        buf.append("[SigningPrivateKey ").append(_type).append(": ");
    9898        int length = length();
    9999        if (_data == null) {
     
    102102            buf.append(toBase64());
    103103        } else {
    104             buf.append("size: ").append(Integer.toString(length));
     104            buf.append("size: ").append(length);
    105105        }
    106106        buf.append(']');
  • core/java/src/net/i2p/data/SigningPublicKey.java

    r0a99784 r4c970fa  
    203203    public String toString() {
    204204        StringBuilder buf = new StringBuilder(64);
    205         buf.append('[').append(getClass().getSimpleName()).append(' ').append(_type).append(": ");
     205        buf.append("[SigningPublicKey ").append((_type != null) ? _type.toString() : "unknown type").append(' ');
     206        int length = length();
    206207        if (_data == null) {
    207208            buf.append("null");
     209        } else if (length <= 32) {
     210            buf.append(toBase64());
    208211        } else {
    209             buf.append("size: ").append(Integer.toString(length()));
     212            buf.append("size: ").append(length);
    210213        }
    211214        buf.append(']');
Note: See TracChangeset for help on using the changeset viewer.