]> Git Server - tankstelle.git/commitdiff
made a method abstract
authorRobin Cheney <cheneyr@eternal.ddnss.de>
Mon, 8 Dec 2025 14:37:21 +0000 (15:37 +0100)
committerRobin Cheney <cheneyr@eternal.ddnss.de>
Mon, 8 Dec 2025 14:37:21 +0000 (15:37 +0100)
src/main/java/de/diejungsvondertanke/tankstelle/core/FuelStation.java

index 3ff85f557bd63e93317da74d1d688bdbc8173330..6bdccf5912e9d56ffb90e59949253718ea841635 100644 (file)
@@ -277,9 +277,7 @@ public abstract class FuelStation {
      * This function is used to get a generic simplified class name for display
      * purposes to indicate the size of this fuel station
      * 
-     * @return {@code null} because this method should be overridden in subclasses
+     * @return a simplified name for the a {@link FuelStation fuel station}
      */
-    public String getSimpleName() {
-        return null;
-    }
+    public abstract String getSimpleName();
 }
\ No newline at end of file