Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#17187 closed task (fixed)

replace deprecated methods, adapt to changes in core

Reported by: GerdP Owned by: GerdP
Priority: normal Milestone:
Component: Plugin utilsplugin2 Version:
Keywords: Cc: simon04

Description

  • since #14654 some core methods are deprecated which are often used in the plugin
  • some methods don't work because they compare hashCode() of Dataset.getSelected()
  • several equals() methods are flagged by errorprone
  • javadoc is poor
  • dead code should be removed

Attachments (1)

17187-alpha.patch (38.1 KB ) - added by GerdP 6 years ago.
work in progress

Download all attachments as: .zip

Change History (15)

by GerdP, 6 years ago

Attachment: 17187-alpha.patch added

work in progress

comment:1 by GerdP, 6 years ago

Resolution: fixed
Status: assignedclosed

fixed with [o34812:34813]
Most important change: Shift+Z and Alt+Shift+Z work again.
I fixed only those java docs where I was sure what to do.

comment:2 by GerdP, 6 years ago

Seems that Jenkins somehow did not catch this change. I get the new plugin binary when I update but in https://josm.openstreetmap.de/jenkins/ "JOSM-Plugins" still shows 34811.

comment:3 by simon04, 6 years ago

In the meanwhile is says Plugin-Version: 34817

Did you probably forget to svn update after your first commit, see DevelopersGuide/DevelopingPlugins#Publishingthenewplugin?

comment:4 by GerdP, 6 years ago

I don't think so. I've committed further changes yesterday afternoon but JOSM-Plugins started this morning.
Maybe it is only executed once per day?
I'm about to commit another change in the o5m plugin this afternoon. Let's see if that changes something.

comment:5 by stoecker, 6 years ago

Cron-Job is called every 10 minutes.

comment:6 by GerdP, 6 years ago

So it seems that something is wrong. The commit for the src and the dist happended yesterday afternoon:
https://trac.openstreetmap.org/log/subversion/applications/editors?rev=34819
The Jenkins build JOSM-Plugins started this morning after another dist (34819)

comment:7 by GerdP, 6 years ago

I've now committed changes to o5m plugin. I see that Nexus-JOSM-Plugins is triggered, but not JOSM-Plugins.

comment:8 by Don-vip, 6 years ago

Nothing wrong, look at job history, it is triggered on a time schedule, every morning.

comment:9 by GerdP, 6 years ago

OK, thanks. Now I see that you started it manually a few times.

comment:10 by Don-vip, 6 years ago

Yes, when the build fails I usually don't wait the next day :)

comment:11 by GerdP, 6 years ago

I think what confused me was the link described with "Build wurde durch eine SCM-Änderung ausgelöst." (~ "Build was triggered by an SCM change.") https://josm.openstreetmap.de/jenkins/job/JOSM-Plugins/lastBuild/pollingLog
I assume there is a cron job which checks once per day if there are scm changes?

comment:12 by GerdP, 6 years ago

I think something is wrong with the findbugs report in the JOSM-Plugins build. It shows errors for an older version of the source.
It seems that it checks out-aged binaries?
Example: I think I fixed all the problems listed here:
https://josm.openstreetmap.de/jenkins/job/JOSM-Plugins/1476/findbugsResult/module.1218276750/package.-690128254/category.672572432/

comment:13 by Don-vip, 6 years ago

It shouldn't. Does it work locally? Maybe it was analyzed on yesterday binaries, so we have a 1-day lag. Let's see tomorrow if the errors disappear.

comment:14 by GerdP, 6 years ago

See #17026

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain GerdP.
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.