From 92e59987b9ff8341aed07ff9841ed71f15994e10 Mon Sep 17 00:00:00 2001 From: Ralf Eichinger Date: Tue, 8 Aug 2023 08:10:18 +0200 Subject: [PATCH] Reuse variable --- .../identifiable/AbstractIdentifiablesController.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dc-cudami-admin/src/main/java/de/digitalcollections/cudami/admin/controller/identifiable/AbstractIdentifiablesController.java b/dc-cudami-admin/src/main/java/de/digitalcollections/cudami/admin/controller/identifiable/AbstractIdentifiablesController.java index 8657dd0d42..350c0edb4d 100644 --- a/dc-cudami-admin/src/main/java/de/digitalcollections/cudami/admin/controller/identifiable/AbstractIdentifiablesController.java +++ b/dc-cudami-admin/src/main/java/de/digitalcollections/cudami/admin/controller/identifiable/AbstractIdentifiablesController.java @@ -175,8 +175,7 @@ public String doForward(Identifiable identifiable, Model model) throws Technical case WORK: return "forward:/works/" + uuid; default: - throw new TechnicalException( - "Unhandled object type " + identifiable.getIdentifiableObjectType()); + throw new TechnicalException("Unhandled object type " + identifiableObjectType); } } }