]> Git Server - tankstelle.git/commitdiff
removed unnecessary imports
authorRobin Cheney <cheneyr@eternal.ddnss.de>
Thu, 20 Nov 2025 14:23:04 +0000 (15:23 +0100)
committerRobin Cheney <cheneyr@eternal.ddnss.de>
Thu, 20 Nov 2025 14:23:32 +0000 (15:23 +0100)
src/main/java/de/diejungsvondertanke/tankstelle/Main.java

index 4ff3123b1610a051b541afd5a618ee4cdb784b99..0e0d38c377c023631112292058f9a49b0517cda5 100644 (file)
@@ -8,14 +8,13 @@ import java.util.Arrays;
 
 import de.diejungsvondertanke.tankstelle.error.NoSuchFuelTypeError;
 
-import javax.swing.*;
-
 /**
  * Main Class
  * 
  * @author Robin Cheney
  * @author Nils Göbbert
  * @author Leander Schnurrer
+ * @author Sergej Pavlenko
  */
 public class Main {
     /**
@@ -348,7 +347,7 @@ public class Main {
         float sum = 0f;
         for (FuelStation fuelStation : fuelStations) {
             for (Fuel fuel : fuelStation.fuels) {
-                if (fuel.getFuelType() == fuelType) {
+                if (fuel.FUEL_TYPE == fuelType) {
                     sum += fuel.getStored_amount();
                     break;
                 }