﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
14179	Duplicated lines in GeoImageLayer.java	holgermappt	team	"This looks like duplicated code in `src/org/openstreetmap/josm/gui/layer/geoimage/GeoImageLayer.java`, lines 201-205:
{{{#!java
            progressMonitor.subTask(tr(""Read photos...""));
            progressMonitor.setTicksCount(files.size());

            progressMonitor.subTask(tr(""Read photos...""));
            progressMonitor.setTicksCount(files.size());
}}}
If I interpret the `ProgressMonitor` documentation correctly then `subTask()` and `setTicksCount()` both overwrite the value that was set in the previous call, so the same operation is done twice. If that interpretation is right it can be reduced to:
{{{#!java
            progressMonitor.subTask(tr(""Read photos...""));
            progressMonitor.setTicksCount(files.size());
}}}
"	enhancement	closed	minor	16.12	Core image mapping	latest	fixed		
