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; ...@@ -7,7 +7,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class AllTerrainNode extends Renderable { public class AllTerrainNode extends Renderable {
private List<CityObject> land; private final List<CityObject> land;
public AllTerrainNode(List<CityObject> land) { public AllTerrainNode(List<CityObject> land) {
this.land = land; this.land = land;
......
...@@ -7,7 +7,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -7,7 +7,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class AllTransportationNode extends Renderable { public class AllTransportationNode extends Renderable {
private List<TransportationObject> transportation; private final List<TransportationObject> transportation;
public AllTransportationNode(List<TransportationObject> transportation) { public AllTransportationNode(List<TransportationObject> transportation) {
this.transportation = transportation; this.transportation = transportation;
......
...@@ -7,7 +7,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -7,7 +7,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class AllVegetationNode extends Renderable { public class AllVegetationNode extends Renderable {
private List<Vegetation> vegetation; private final List<Vegetation> vegetation;
public AllVegetationNode(List<Vegetation> vegetation) { public AllVegetationNode(List<Vegetation> vegetation) {
this.vegetation = vegetation; this.vegetation = vegetation;
......
...@@ -7,7 +7,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -7,7 +7,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class AllWaterNode extends Renderable { public class AllWaterNode extends Renderable {
private List<WaterObject> water; private final List<WaterObject> water;
public AllWaterNode(List<WaterObject> water) { public AllWaterNode(List<WaterObject> water) {
this.water = water; this.water = water;
......
...@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class BoundarySurfaceNode extends Renderable { public class BoundarySurfaceNode extends Renderable {
private BoundarySurface bs; private final BoundarySurface bs;
public BoundarySurfaceNode(BoundarySurface bs) { public BoundarySurfaceNode(BoundarySurface bs) {
this.bs = bs; this.bs = bs;
......
...@@ -24,7 +24,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -24,7 +24,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class BridgeConstructiveElementNode extends Renderable { public class BridgeConstructiveElementNode extends Renderable {
private BridgeConstructiveElement bce; private final BridgeConstructiveElement bce;
public BridgeConstructiveElementNode(BridgeConstructiveElement bce) { public BridgeConstructiveElementNode(BridgeConstructiveElement bce) {
this.bce = bce; this.bce = bce;
......
...@@ -24,7 +24,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -24,7 +24,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class BridgeNode extends Renderable { public class BridgeNode extends Renderable {
private BridgeObject bridge; private final BridgeObject bridge;
public BridgeNode(BridgeObject bridge) { public BridgeNode(BridgeObject bridge) {
this.bridge = bridge; this.bridge = bridge;
......
...@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class BuildingNode extends Renderable { public class BuildingNode extends Renderable {
private Building building; private final Building building;
public BuildingNode(Building building) { public BuildingNode(Building building) {
this.building = building; this.building = building;
......
...@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class BuildingPartNode extends Renderable { public class BuildingPartNode extends Renderable {
private BuildingPart bp; private final BuildingPart bp;
public BuildingPartNode(BuildingPart bp) { public BuildingPartNode(BuildingPart bp) {
this.bp = bp; this.bp = bp;
......
...@@ -22,7 +22,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -22,7 +22,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class ButtonRenderable extends Renderable { public class ButtonRenderable extends Renderable {
private Runnable run; private final Runnable run;
public ButtonRenderable(Runnable run) { public ButtonRenderable(Runnable run) {
this.run = run; this.run = run;
......
...@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class CityObjectNode extends Renderable { public class CityObjectNode extends Renderable {
private CityObject co; private final CityObject co;
public CityObjectNode(CityObject co) { public CityObjectNode(CityObject co) {
this.co = co; this.co = co;
......
...@@ -9,7 +9,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -9,7 +9,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class EdgeNode extends Renderable { public class EdgeNode extends Renderable {
private static DecimalFormat nf; private static final DecimalFormat nf;
static { static {
DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance(); DecimalFormatSymbols dfs = DecimalFormatSymbols.getInstance();
...@@ -18,7 +18,7 @@ public class EdgeNode extends Renderable { ...@@ -18,7 +18,7 @@ public class EdgeNode extends Renderable {
} }
private static final String SEPERATOR = ", "; private static final String SEPERATOR = ", ";
private Edge e; private final Edge e;
private String text; private String text;
public EdgeNode(Edge e) { public EdgeNode(Edge e) {
......
...@@ -49,7 +49,7 @@ public class ErrorItemVisitor implements ErrorVisitor { ...@@ -49,7 +49,7 @@ public class ErrorItemVisitor implements ErrorVisitor {
private static final String NAME_OF_ATTRIBUTE = "Name of Attribute: "; private static final String NAME_OF_ATTRIBUTE = "Name of Attribute: ";
private static final String CHILD_ID = "ChildId: "; private static final String CHILD_ID = "ChildId: ";
private TreeItem<Renderable> root; private final TreeItem<Renderable> root;
public ErrorItemVisitor(TreeItem<Renderable> root) { public ErrorItemVisitor(TreeItem<Renderable> root) {
this.root = root; this.root = root;
......
...@@ -5,7 +5,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -5,7 +5,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class ErrorNode extends Renderable { public class ErrorNode extends Renderable {
private CheckError err; private final CheckError err;
public ErrorNode(CheckError e) { public ErrorNode(CheckError e) {
this.err = e; this.err = e;
......
...@@ -6,8 +6,8 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -6,8 +6,8 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class GeometryNode extends Renderable { public class GeometryNode extends Renderable {
private Geometry geom; private final Geometry geom;
private String text; private final String text;
public GeometryNode(Geometry geom) { public GeometryNode(Geometry geom) {
this.geom = geom; this.geom = geom;
......
...@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class InstallationNode extends Renderable { public class InstallationNode extends Renderable {
private Installation bi; private final Installation bi;
public InstallationNode(Installation bi) { public InstallationNode(Installation bi) {
this.bi = bi; this.bi = bi;
......
...@@ -24,7 +24,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -24,7 +24,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class LandUseNode extends Renderable { public class LandUseNode extends Renderable {
private LandObject landUse; private final LandObject landUse;
public LandUseNode(LandObject landUse) { public LandUseNode(LandObject landUse) {
this.landUse = landUse; this.landUse = landUse;
......
...@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class LinearRingNode extends Renderable { public class LinearRingNode extends Renderable {
private LinearRing lr; private final LinearRing lr;
private String text; private String text;
public LinearRingNode(LinearRing lr, CheckStatus cs) { public LinearRingNode(LinearRing lr, CheckStatus cs) {
......
...@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class OpeningNode extends Renderable { public class OpeningNode extends Renderable {
private Opening opening; private final Opening opening;
public OpeningNode(Opening o) { public OpeningNode(Opening o) {
opening = o; opening = o;
......
...@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer; ...@@ -6,7 +6,7 @@ import de.hft.stuttgart.citydoctor2.gui.Renderer;
public class PolygonNode extends Renderable { public class PolygonNode extends Renderable {
private Polygon p; private final Polygon p;
private String text; private String text;
public PolygonNode(Polygon p, CheckStatus cs) { 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