Changeset 34155 in osm for applications/editors/josm


Ignore:
Timestamp:
2018-04-08T16:01:47+02:00 (6 years ago)
Author:
donvip
Message:

fix deprecation warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/io/SigReader.java

    r33536 r34155  
    2121import org.bouncycastle.openpgp.PGPObjectFactory;
    2222import org.bouncycastle.openpgp.PGPSignatureList;
     23import org.bouncycastle.openpgp.operator.bc.BcKeyFingerprintCalculator;
    2324import org.openstreetmap.josm.data.osm.Node;
    2425import org.openstreetmap.josm.data.osm.OsmPrimitive;
     
    161162
    162163            ArmoredInputStream aIn = new ArmoredInputStream(new ByteArrayInputStream(clearsigned.getBytes(Charset.forName("UTF-8"))));
    163             PGPObjectFactory pgpFact = new PGPObjectFactory(aIn);
     164            PGPObjectFactory pgpFact = new PGPObjectFactory(aIn, new BcKeyFingerprintCalculator());
    164165            // read plain text
    165166            ByteArrayOutputStream bout = new ByteArrayOutputStream();
Note: See TracChangeset for help on using the changeset viewer.