Add final modifiers

This commit is contained in:
Alexander Sytnyk 2017-08-07 17:52:15 +03:00
parent 191505c0c2
commit cade8b05f2
2 changed files with 7 additions and 7 deletions

View file

@ -23,8 +23,8 @@ import java.util.List;
class MeasurementToolAdapter extends ArrayAdapter<WptPt> {
private MapActivity mapActivity;
private List<WptPt> points;
private final MapActivity mapActivity;
private final List<WptPt> points;
private RemovePointListener listener;
MeasurementToolAdapter(@NonNull Context context, @LayoutRes int resource, List<WptPt> points) {

View file

@ -28,18 +28,18 @@ public class MeasurementToolLayer extends OsmandMapLayer implements ContextMenuL
private OsmandMapTileView view;
private boolean inMeasurementMode;
private LinkedList<WptPt> measurementPoints = new LinkedList<>();
private final LinkedList<WptPt> measurementPoints = new LinkedList<>();
private LinkedList<WptPt> cacheMeasurementPoints = new LinkedList<>();
private Bitmap centerIconDay;
private Bitmap centerIconNight;
private Bitmap pointIcon;
private Paint bitmapPaint;
private RenderingLineAttributes lineAttrs = new RenderingLineAttributes("measureDistanceLine");
private Path path = new Path();
private final RenderingLineAttributes lineAttrs = new RenderingLineAttributes("measureDistanceLine");
private final Path path = new Path();
private int marginX;
private int marginY;
private TIntArrayList tx = new TIntArrayList();
private TIntArrayList ty = new TIntArrayList();
private final TIntArrayList tx = new TIntArrayList();
private final TIntArrayList ty = new TIntArrayList();
@Override
public void initLayer(OsmandMapTileView view) {