Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#18232 closed enhancement (fixed)

remove Test.compareTo() and more

Reported by: GerdP Owned by: team
Priority: normal Milestone: 19.10
Component: Core validator Version:
Keywords: sort Cc:

Description

Since r14973 there should be no code which calls this method.
I'd like to remove the method and the implements ... Comparable<Test> part but I don't know how to deprecate it first.

If I got that right this would also allow to remove all the rather ugly code to override method equals() and hashCode() in Test and the various classes which extend Test
Special case: the classes MapCSSTagChecker and MapCSSTagCheckerAndRule somehow "abuse" the equals() method.

Attachments (1)

18232.patch (5.1 KB ) - added by GerdP 6 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 by Don-vip, 6 years ago

Component: CoreCore validator
Keywords: sort added

You can't really deprecate anything in this particular case. Go on and simply remove it. Just make sure to update all impacted plugins.

comment:2 by Don-vip, 6 years ago

Milestone: 19.10
Type: taskenhancement

by GerdP, 6 years ago

Attachment: 18232.patch added

in reply to:  1 comment:3 by GerdP, 6 years ago

Replying to Don-vip:

You can't really deprecate anything in this particular case. Go on and simply remove it. Just make sure to update all impacted plugins.

Not sure what to do with the plugins. I found pt_assistant and wikipedia which extend class Test, but both seem to work fine with a JOSM binary compiled with the attached patch.
Should I still modify plugin.main.version in gradle.properties and distribute new binaries for them?

comment:4 by Don-vip, 6 years ago

Not sure. If it works, do nothing :) We'll see if someone report an error.

comment:5 by GerdP, 6 years ago

In 15463/josm:

see #18232: remove Test.compareTo() and more

comment:6 by GerdP, 6 years ago

Resolution: fixed
Status: newclosed

comment:7 by Don-vip, 4 years ago

Caused #20991

comment:8 by Don-vip, 4 years ago

In 17989/josm:

fix #20991 - see #18232 - restore ability to export validator errors, broken since r15463

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.