Ignore:
Timestamp:
2020-11-23T16:28:11+01:00 (3 years ago)
Author:
Don-vip
Message:

see #20129 - Fix typos and misspellings in the code (patch by gaben)

Location:
trunk/src/org/openstreetmap/josm/io
Files:
11 edited

Legend:

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

    r16643 r17333  
    236236     *
    237237     * @param min the min lat/lon coordinates of the bounding box. Must not be null.
    238      * @param max the max lat/lon coordiantes of the bounding box. Must not be null.
     238     * @param max the max lat/lon coordinates of the bounding box. Must not be null.
    239239     *
    240240     * @return the restricted changeset query
     
    278278    /**
    279279     * Restricts the result to changesets which have been closed after <code>closedAfter</code> and which
    280      * habe been created before <code>createdBefore</code>. Both dates are expressed relative to the current
     280     * have been created before <code>createdBefore</code>. Both dates are expressed relative to the current
    281281     * time zone.
    282282     *
  • trunk/src/org/openstreetmap/josm/io/ImportCancelException.java

    r7937 r17333  
    33
    44/**
    5  * All exceptions resulting from a user cancelation during any import should implement this interface.
     5 * All exceptions resulting from a user cancellation during any import should implement this interface.
    66 * @since 6621
    77 */
  • trunk/src/org/openstreetmap/josm/io/MessageNotifier.java

    r16427 r17333  
    9090                }
    9191            } catch (OsmApiException e) {
    92                 // We want to explicitely display message to user in some cases like when he has been blocked (#17722)
     92                // We want to explicitly display message to user in some cases like when he has been blocked (#17722)
    9393                ExceptionDialogUtil.explainOsmTransferException(e);
    9494            } catch (OsmTransferException e) {
  • trunk/src/org/openstreetmap/josm/io/MultiFetchServerObjectReader.java

    r17290 r17333  
    409409
    410410    /**
    411      * Workaround for difference in Oerpass API.
     411     * Workaround for difference in Overpass API.
    412412     * As of now (version 7.55) Overpass api doesn't return invisible objects.
    413413     * Check if we have objects which do not appear in the dataset and fetch them from OSM instead.
  • trunk/src/org/openstreetmap/josm/io/NoteWriter.java

    r13903 r17333  
    5151            out.print("  <note ");
    5252            out.print("id=\"" + note.getId() + "\" ");
    53             out.print("lat=\"" + LatLon.cDdHighPecisionFormatter.format(ll.lat()) + "\" ");
    54             out.print("lon=\"" + LatLon.cDdHighPecisionFormatter.format(ll.lon()) + "\" ");
     53            out.print("lat=\"" + LatLon.cDdHighPrecisionFormatter.format(ll.lat()) + "\" ");
     54            out.print("lon=\"" + LatLon.cDdHighPrecisionFormatter.format(ll.lon()) + "\" ");
    5555            out.print("created_at=\"" + DateUtils.fromDate(note.getCreatedAt()) + "\" ");
    5656            if (note.getClosedAt() != null) {
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r16630 r17333  
    7272
    7373    /**
    74      * Defines whether all OSM API requests should be signed with an OAuth token (user-based bandwith limit instead of IP-based one)
     74     * Defines whether all OSM API requests should be signed with an OAuth token (user-based bandwidth limit instead of IP-based one)
    7575     */
    7676    public static final BooleanProperty USE_OAUTH_FOR_ALL_REQUESTS = new BooleanProperty("oauth.use-for-all-requests", true);
  • trunk/src/org/openstreetmap/josm/io/OsmWriter.java

    r16953 r17333  
    239239    void writeLatLon(LatLon ll) {
    240240        if (ll != null) {
    241             out.print(" lat='"+LatLon.cDdHighPecisionFormatter.format(ll.lat())+
    242                      "' lon='"+LatLon.cDdHighPecisionFormatter.format(ll.lon())+'\'');
     241            out.print(" lat='"+LatLon.cDdHighPrecisionFormatter.format(ll.lat())+
     242                     "' lon='"+LatLon.cDdHighPrecisionFormatter.format(ll.lon())+'\'');
    243243        }
    244244    }
  • trunk/src/org/openstreetmap/josm/io/OverpassDownloadReader.java

    r16643 r17333  
    9494     * @since 11916
    9595     */
    96     public enum OverpassOutpoutFormat {
     96    public enum OverpassOutputFormat {
    9797        /** Default output format: plain OSM XML */
    9898        OSM_XML("xml"),
     
    110110        private final String directive;
    111111
    112         OverpassOutpoutFormat(String directive) {
     112        OverpassOutputFormat(String directive) {
    113113            this.directive = directive;
    114114        }
     
    123123
    124124        /**
    125          * Returns the {@code OverpassOutpoutFormat} matching the given directive.
     125         * Returns the {@code OverpassOutputFormat} matching the given directive.
    126126         * @param directive directive used in {@code [out:<directive>]} statement
    127          * @return {@code OverpassOutpoutFormat} matching the given directive
     127         * @return {@code OverpassOutputFormat} matching the given directive
    128128         * @throws IllegalArgumentException in case of invalid directive
    129129         */
    130         static OverpassOutpoutFormat from(String directive) {
    131             for (OverpassOutpoutFormat oof : values()) {
     130        static OverpassOutputFormat from(String directive) {
     131            for (OverpassOutputFormat oof : values()) {
    132132                if (oof.directive.equals(directive)) {
    133133                    return oof;
     
    140140    static final Pattern OUTPUT_FORMAT_STATEMENT = Pattern.compile(".*\\[out:([a-z]{3,})\\].*", Pattern.DOTALL);
    141141
    142     static final Map<OverpassOutpoutFormat, Class<? extends AbstractReader>> outputFormatReaders = new ConcurrentHashMap<>();
     142    static final Map<OverpassOutputFormat, Class<? extends AbstractReader>> outputFormatReaders = new ConcurrentHashMap<>();
    143143
    144144    final String overpassServer;
     
    165165     * @return the previous value associated with {@code format}, or {@code null} if there was no mapping
    166166     */
    167     public static final Class<? extends AbstractReader> registerOverpassOutpoutFormatReader(
    168             OverpassOutpoutFormat format, Class<? extends AbstractReader> readerClass) {
     167    public static final Class<? extends AbstractReader> registerOverpassOutputFormatReader(
     168            OverpassOutputFormat format, Class<? extends AbstractReader> readerClass) {
    169169        return outputFormatReaders.put(Objects.requireNonNull(format), Objects.requireNonNull(readerClass));
    170170    }
    171171
    172172    static {
    173         registerOverpassOutpoutFormatReader(OverpassOutpoutFormat.OSM_XML, OverpassOsmReader.class);
    174         registerOverpassOutpoutFormatReader(OverpassOutpoutFormat.OSM_JSON, OverpassOsmJsonReader.class);
     173        registerOverpassOutputFormatReader(OverpassOutputFormat.OSM_XML, OverpassOsmReader.class);
     174        registerOverpassOutputFormatReader(OverpassOutputFormat.OSM_JSON, OverpassOsmJsonReader.class);
    175175    }
    176176
     
    369369        Matcher m = OUTPUT_FORMAT_STATEMENT.matcher(overpassQuery);
    370370        if (m.matches()) {
    371             Class<? extends AbstractReader> readerClass = outputFormatReaders.get(OverpassOutpoutFormat.from(m.group(1)));
     371            Class<? extends AbstractReader> readerClass = outputFormatReaders.get(OverpassOutputFormat.from(m.group(1)));
    372372            if (readerClass != null) {
    373373                try {
  • trunk/src/org/openstreetmap/josm/io/audio/AudioPlayer.java

    r16624 r17333  
    171171     * @param url The resource to play, which must be a WAV file or stream
    172172     * @param seconds The number of seconds into the audio to start playing
    173      * @param speed Rate at which audio playes (1.0 = real time, &gt; 1 is faster)
     173     * @param speed Rate at which audio plays (1.0 = real time, &gt; 1 is faster)
    174174     * @throws InterruptedException thread interrupted
    175175     * @throws IOException audio fault exception, e.g. can't open stream,  unhandleable audio format
     
    184184     * Pauses the currently playing audio stream. Does nothing if nothing playing.
    185185     * @throws InterruptedException thread interrupted
    186      * @throws IOException audio fault exception, e.g. can't open stream,  unhandleable audio format
     186     * @throws IOException audio fault exception, e.g. can't open stream, unhandleable audio format
    187187     */
    188188    public static void pause() throws InterruptedException, IOException {
  • trunk/src/org/openstreetmap/josm/io/audio/JavaSoundPlayer.java

    r16913 r17333  
    8989                    bytesToSkip -= skippedBytes;
    9090                    if (skippedBytes == 0) {
    91                         // Avoid inifinite loop
     91                        // Avoid infinite loop
    9292                        Logging.warn("Unable to skip bytes from audio input stream");
    9393                        bytesToSkip = 0;
  • trunk/src/org/openstreetmap/josm/io/auth/CredentialsAgentResponse.java

    r11879 r17333  
    6060
    6161    /**
    62      * Sets the cancelation status (authentication request canceled by user)
    63      * @param canceled the cancelation status (authentication request canceled by user)
     62     * Sets the cancellation status (authentication request canceled by user)
     63     * @param canceled the cancellation status (authentication request canceled by user)
    6464     */
    6565    public void setCanceled(boolean canceled) {
Note: See TracChangeset for help on using the changeset viewer.