Ignore:
Timestamp:
2014-08-15T18:53:18+02:00 (6 years ago)
Author:
Don-vip
Message:

fix some Sonar issues

Location:
trunk/src/org/openstreetmap/josm/io/remotecontrol
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/DNSName.java

    r7347 r7402  
    102102     */
    103103    public int getType() {
    104         return (GeneralNameInterface.NAME_DNS);
     104        return GeneralNameInterface.NAME_DNS;
    105105    }
    106106
     
    128128    @Override
    129129    public String toString() {
    130         return ("DNSName: " + name);
     130        return "DNSName: " + name;
    131131    }
    132132
     
    192192     *          not supported for this name type.
    193193     */
    194     public int constrains(GeneralNameInterface inputName) throws UnsupportedOperationException {
     194    @Override
     195    public int constrains(GeneralNameInterface inputName) {
    195196        int constraintType;
    196197        if (inputName == null)
     
    231232     * @throws UnsupportedOperationException if not supported for this name type
    232233     */
    233     public int subtreeDepth() throws UnsupportedOperationException {
     234    @Override
     235    public int subtreeDepth() {
    234236        String subtree=name;
    235237        int i=1;
  • trunk/src/org/openstreetmap/josm/io/remotecontrol/RemoteControlHttpsServer.java

    r7347 r7402  
    136136        X509CertInfo info = new X509CertInfo();
    137137        Date from = new Date();
    138         Date to = new Date(from.getTime() + days * 86400000l);
     138        Date to = new Date(from.getTime() + days * 86400000L);
    139139        CertificateValidity interval = new CertificateValidity(from, to);
    140140        BigInteger sn = new BigInteger(64, new SecureRandom());
Note: See TracChangeset for help on using the changeset viewer.