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=21f909e76917b1f71c302505de7e39b04172e097;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..85c1230 100644 --- a/src/main/java/de/diejungsvondertanke/tankstelle/Main.java +++ b/src/main/java/de/diejungsvondertanke/tankstelle/Main.java @@ -254,9 +254,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 +268,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 +282,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 +297,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();