Changeset 31945 in osm for applications/editors


Ignore:
Timestamp:
2016-01-05T13:32:53+01:00 (9 years ago)
Author:
donvip
Message:

fix warnings

Location:
applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/gui/KeyTreeTableModel.java

    r30744 r31945  
    138138        public String getOsmCertificate() {
    139139            String cert = "";
    140             for (NotationData nd : s.getHashedSubPackets().getNotationDataOccurences()){
     140            for (NotationData nd : s.getHashedSubPackets().getNotationDataOccurrences()){
    141141                if (nd.getNotationName().equals("trustosm@openstreetmap.org")) {
    142142                    cert += nd.getNotationValue();
  • applications/editors/josm/plugins/trustosm/src/org/openstreetmap/josm/plugins/trustosm/util/TrustGPG.java

    r30829 r31945  
    6767import org.bouncycastle.openpgp.PGPSignatureSubpacketVector;
    6868import org.bouncycastle.openpgp.PGPUtil;
     69import org.bouncycastle.openpgp.bc.BcPGPPublicKeyRingCollection;
     70import org.bouncycastle.openpgp.bc.BcPGPSecretKeyRingCollection;
    6971import org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor;
    7072import org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor;
     
    286288            //pubIn = new FileInputStream("/tmp/secring.gpg");
    287289            //secIn = new FileInputStream("/tmp/pubring.gpg");
    288             pgpSec = new PGPSecretKeyRingCollection(PGPUtil.getDecoderStream(pubIn));
    289             pgpPub = new PGPPublicKeyRingCollection(PGPUtil.getDecoderStream(secIn));
     290            pgpSec = new BcPGPSecretKeyRingCollection(PGPUtil.getDecoderStream(pubIn));
     291            pgpPub = new BcPGPPublicKeyRingCollection(PGPUtil.getDecoderStream(secIn));
    290292        } catch (FileNotFoundException e) {
    291293            System.err.println("No gpg files found in "+Main.pref.getPluginsDirectory().getPath() + "/trustosm/gnupg/secring.gpg");
     
    462464     * @return found tolerance as double or 0 if no Tolerance is given
    463465     */
    464 
    465466    public static double searchTolerance(PGPSignature sig) {
    466467        /** Take the first NotationData packet that seems to have Tolerance information */
    467         for (NotationData nd : sig.getHashedSubPackets().getNotationDataOccurences()){
     468        for (NotationData nd : sig.getHashedSubPackets().getNotationDataOccurrences()){
    468469            if (nd.getNotationName().equals(TrustGPG.NOTATION_DATA_KEY)) {
    469470                String notation = nd.getNotationValue();
Note: See TracChangeset for help on using the changeset viewer.