Commit 9ba8a6ef authored by Riegel's avatar Riegel
Browse files

Code cleaning. Ref #69

parent 1d8506eb
Pipeline #10053 passed with stage
in 1 minute and 13 seconds
......@@ -7,7 +7,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class AllTerrainNode extends Renderable {
private List<CityObject> land;
private final List<CityObject> land;
public AllTerrainNode(List<CityObject> land) {
this.land = land;
......
......@@ -7,7 +7,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class AllTransportationNode extends Renderable {
private List<TransportationObject> transportation;
private final List<TransportationObject> transportation;
public AllTransportationNode(List<TransportationObject> transportation) {
this.transportation = transportation;
......
......@@ -7,7 +7,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class AllVegetationNode extends Renderable {
private List<Vegetation> vegetation;
private final List<Vegetation> vegetation;
public AllVegetationNode(List<Vegetation> vegetation) {
this.vegetation = vegetation;
......
......@@ -7,7 +7,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class AllWaterNode extends Renderable {
private List<WaterObject> water;
private final List<WaterObject> water;
public AllWaterNode(List<WaterObject> water) {
this.water = water;
......
......@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class BoundarySurfaceNode extends Renderable {
private BoundarySurface bs;
private final BoundarySurface bs;
public BoundarySurfaceNode(BoundarySurface bs) {
this.bs = bs;
......
......@@ -24,7 +24,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class BridgeConstructiveElementNode extends Renderable {
private BridgeConstructiveElement bce;
private final BridgeConstructiveElement bce;
public BridgeConstructiveElementNode(BridgeConstructiveElement bce) {
this.bce = bce;
......
......@@ -24,7 +24,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class BridgeNode extends Renderable {
private BridgeObject bridge;
private final BridgeObject bridge;
public BridgeNode(BridgeObject bridge) {
this.bridge = bridge;
......
......@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class BuildingNode extends Renderable {
private Building building;
private final Building building;
public BuildingNode(Building building) {
this.building = building;
......
......@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class BuildingPartNode extends Renderable {
private BuildingPart bp;
private final BuildingPart bp;
public BuildingPartNode(BuildingPart bp) {
this.bp = bp;
......
......@@ -22,7 +22,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class ButtonRenderable extends Renderable {
private Runnable run;
private final Runnable run;
public ButtonRenderable(Runnable run) {
this.run = run;
......
......@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class CityObjectNode extends Renderable {
private CityObject co;
private final CityObject co;
public CityObjectNode(CityObject co) {
this.co = co;
......
......@@ -9,7 +9,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class EdgeNode extends Renderable {
private static DecimalFormat nf;
private static final DecimalFormat nf;
static {
DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance();
......@@ -18,7 +18,7 @@ public class EdgeNode extends Renderable {
}
private static final String SEPERATOR = ", ";
private Edge e;
private final Edge e;
private String text;
public EdgeNode(Edge e) {
......
......@@ -49,7 +49,7 @@ public class ErrorItemVisitor implements ErrorVisitor {
private static final String NAME_OF_ATTRIBUTE = "Name of Attribute: ";
private static final String CHILD_ID = "ChildId: ";
private TreeItem<Renderable> root;
private final TreeItem<Renderable> root;
public ErrorItemVisitor(TreeItem<Renderable> root) {
this.root = root;
......
......@@ -5,7 +5,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class ErrorNode extends Renderable {
private CheckError err;
private final CheckError err;
public ErrorNode(CheckError e) {
this.err = e;
......
......@@ -6,8 +6,8 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class GeometryNode extends Renderable {
private Geometry geom;
private String text;
private final Geometry geom;
private final String text;
public GeometryNode(Geometry geom) {
this.geom = geom;
......
......@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class InstallationNode extends Renderable {
private Installation bi;
private final Installation bi;
public InstallationNode(Installation bi) {
this.bi = bi;
......
......@@ -24,7 +24,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class LandUseNode extends Renderable {
private LandObject landUse;
private final LandObject landUse;
public LandUseNode(LandObject landUse) {
this.landUse = landUse;
......
......@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class LinearRingNode extends Renderable {
private LinearRing lr;
private final LinearRing lr;
private String text;
public LinearRingNode(LinearRing lr, CheckStatus cs) {
......
......@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class OpeningNode extends Renderable {
private Opening opening;
private final Opening opening;
public OpeningNode(Opening o) {
opening = o;
......
......@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class PolygonNode extends Renderable {
private Polygon p;
private final Polygon p;
private String text;
public PolygonNode(Polygon p, CheckStatus cs) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment