]> 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:11:13 +0000 (18:11 +0100)
src/main/java/de/diejungsvondertanke/tankstelle/Main.java

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