Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#20129 closed enhancement (fixed)

[patch] Fix typos and misspellings in the code

Reported by: gaben Owned by: team
Priority: minor Milestone: 20.12
Component: Core Version: latest
Keywords: typo Cc:

Description

Mostly comments affected, but also some method and class names as well, so please review carefully. A few comment lines were over 120 column length, so I split these to better fit in code editors window.

One place I made code logic change, but it's just a simplification, see below

  • src/org/openstreetmap/josm/data/osm/DataSet.java

     
    11491149                    DataSourceRemovedEvent clearEvent = new DataSourceRemovedEvent(
    11501150                            this, new LinkedHashSet<>(from.dataSources), from.dataSources.stream());
    11511151                    if (from.dataSources.stream().filter(dataSource -> !dataSources.contains(dataSource))
    1152                             .map(dataSources::add).filter(Boolean.TRUE::equals).count() > 0) {
     1152                            .anyMatch(dataSources::add)) {
    11531153                        cachedDataSourceArea = null;
    11541154                        cachedDataSourceBounds = null;
    11551155                    }

Attachments (3)

josm_typos_fixed_v1.patch (88.4 KB ) - added by gaben 4 years ago.
josm_typos_fixed_v2.patch (92.7 KB ) - added by gaben 4 years ago.
Fix a missed rename (cDdHighPrecisionFormatter), small formatting improvement in gui/ExceptionDialogUtil.java
josm_typos_fixed_v3.patch (101.3 KB ) - added by gaben 4 years ago.
Found a few more issues, final version

Download all attachments as: .zip

Change History (22)

by gaben, 4 years ago

Attachment: josm_typos_fixed_v1.patch added

comment:1 by gaben, 4 years ago

Type: defectenhancement

comment:2 by gaben, 4 years ago

Summary: Fix typos and misspellings in the code[patch] Fix typos and misspellings in the code

by gaben, 4 years ago

Attachment: josm_typos_fixed_v2.patch added

Fix a missed rename (cDdHighPrecisionFormatter), small formatting improvement in gui/ExceptionDialogUtil.java

in reply to:  description comment:3 by Klumbumbus, 4 years ago

Replying to gaben:

A few comment lines were over 120 column length, so I split these to better fit in code editors window.

The maximum line length in JOSM java files is 145.

comment:4 by gaben, 4 years ago

Thanks, I didn't know that. Btw, only the ones made shorter where I looked for spelling issues, so there are still plenty of 120> length lines in the source.

Maybe it worth to propagate somewhere in the developer guideline. At least where to search for the info.

comment:5 by GerdP, 4 years ago

It is hidden in somewhere in the checkstyle and/or sonarlint configuration

by gaben, 4 years ago

Attachment: josm_typos_fixed_v3.patch added

Found a few more issues, final version

comment:6 by GerdP, 4 years ago

Renaming public enum OverpassOutpoutFormat is probably incompatible with the pbf plugin

in reply to:  6 comment:7 by stoecker, 4 years ago

Replying to GerdP:

Renaming public enum OverpassOutpoutFormat is probably incompatible with the pbf plugin

Well, then we fix it there as well :-)

comment:8 by GerdP, 4 years ago

Yes, sure. Since pbf plugin is very stable there is no problem with this.

in reply to:  5 comment:9 by Klumbumbus, 4 years ago

Replying to GerdP:

It is hidden in somewhere in the checkstyle and/or sonarlint configuration

See my link in comment:3 :)

comment:10 by GerdP, 4 years ago

Ah, thanks, didn't recognize the number as link :O

comment:11 by gaben, 4 years ago

Yes, the PBF plugin incompatible with the changes.

If anyone interested, two lines here needs to be changed and everything will be fine :)

comment:12 by Don-vip, 4 years ago

Milestone: 20.12
Priority: normalminor

comment:13 by Don-vip, 4 years ago

Please submit a pull request to https://github.com/blackears/svgSalamander for the changes in com/kitfox package.

Last edited 4 years ago by Don-vip (previous) (diff)

comment:14 by Don-vip, 4 years ago

In 17333/josm:

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

comment:15 by Don-vip, 4 years ago

In 17334/josm:

see #20129 - rename file to match new class name

comment:16 by Don-vip, 4 years ago

In 35650/osm:

see #20129 - update PBF plugin to JOSM 17334

comment:17 by Don-vip, 4 years ago

In 35651/osm:

see #20129 - dist

comment:18 by Don-vip, 4 years ago

Resolution: fixed
Status: newclosed

comment:19 by stoecker, 4 years ago

Hmm, the first change navigatable to navigable. We have a class named "NavigatableComponent.java" ;-)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.