]> Git Server - tankstelle.git/commitdiff
javadoc corrections
authorRobin Cheney <cheneyr@eternal.ddnss.de>
Mon, 17 Nov 2025 17:06:03 +0000 (18:06 +0100)
committerRobin Cheney <cheneyr@eternal.ddnss.de>
Mon, 17 Nov 2025 17:06:03 +0000 (18:06 +0100)
src/main/java/de/diejungsvondertanke/tankstelle/Main.java

index 106a4f6d23062bc298631988ba15fa5ccd0ed75d..85c1230d2c94e34bf3a5c12e50c58cc759bb72cf 100644 (file)
@@ -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();