From: Robin Cheney Date: Mon, 17 Nov 2025 17:06:03 +0000 (+0100) Subject: javadoc corrections X-Git-Url: https://git.eternal.ddnss.de/?a=commitdiff_plain;h=f6b96cf5247f0835837781f5e48daad73f2d8300;p=tankstelle.git javadoc corrections --- diff --git a/src/main/java/de/diejungsvondertanke/tankstelle/Main.java b/src/main/java/de/diejungsvondertanke/tankstelle/Main.java index 106a4f6..88e9987 100644 --- a/src/main/java/de/diejungsvondertanke/tankstelle/Main.java +++ b/src/main/java/de/diejungsvondertanke/tankstelle/Main.java @@ -13,6 +13,7 @@ import de.diejungsvondertanke.tankstelle.error.NoSuchFuelTypeError; * * @author Robin Cheney * @author Nils Göbbert + * @author Leander Schnurrer */ public class Main { /** @@ -254,9 +255,9 @@ public class Main { } /** - * Add new large fuel stations + * Add new large fuel station * - * @param supermarket_company add the special attribut for large fuel stations + * @param supermarket_company add the special attribute for large fuel stations * * @author Leander Schnurrer */ @@ -268,9 +269,9 @@ public class Main { } /** - * Add new medium fuel stations + * Add new medium fuel station * - * @param retail_space add the special attribut for medium fuel stations + * @param retail_space add the special attribute for medium fuel stations * * @author Leander Schnurrer */ @@ -282,9 +283,9 @@ public class Main { } /** - * Add new small fuel stations + * Add new small fuel station * - * @param number_of_vending_machines add the special attribut for small fuel + * @param number_of_vending_machines add the special attribute for small fuel * stations * * @author Leander Schnurrer @@ -297,20 +298,20 @@ public class Main { } /** - * Determine the total stock levels of selected petrol stations for a given type + * Determine the total stock levels of selected fuel stations for a given type * of fuel * * @param fuelType select the fuel type - * @param FuelStations select the fuel stations + * @param fuelStations select the fuel stations * * @return the sum of stock levels of the specific fuel type from the selected * fuel stations * * @author Leander Schnurrer */ - public static float getTotalStockLevelOfFuel(FuelType fuelType, FuelStation[] FuelStations) { + public static float getTotalStockLevelOfFuel(FuelType fuelType, FuelStation[] fuelStations) { float sum = 0f; - for (FuelStation fuelStation : FuelStations) { + for (FuelStation fuelStation : fuelStations) { for (Fuel fuel : fuelStation.fuels) { if (fuel.getFuelType() == fuelType) { sum += fuel.getStored_amount();