From db161851f68c19d15c7c697ae0331006acadf4f8 Mon Sep 17 00:00:00 2001 From: Dennis Labordus Date: Wed, 14 Sep 2022 13:23:31 +0200 Subject: [PATCH] Fixed code smell. Signed-off-by: Dennis Labordus --- .../compas/scl2003/commons/CompasExtensionsManager.java | 8 ++++---- .../compas/scl2007b/commons/CompasExtensionsManager.java | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scl2003/src/main/java/org/lfenergy/compas/scl2003/commons/CompasExtensionsManager.java b/scl2003/src/main/java/org/lfenergy/compas/scl2003/commons/CompasExtensionsManager.java index 86ee9d3..83376ff 100644 --- a/scl2003/src/main/java/org/lfenergy/compas/scl2003/commons/CompasExtensionsManager.java +++ b/scl2003/src/main/java/org/lfenergy/compas/scl2003/commons/CompasExtensionsManager.java @@ -27,16 +27,16 @@ public Optional getCompasPrivate(SCL scl) { return Optional.empty(); } - public Optional getCompasSclName(TPrivate compasPrivate) { - return getCompasValue(compasPrivate, SCL_NAME, String.class); + public Optional getLabels(TPrivate compasPrivate) { + return getCompasValue(compasPrivate, LABELS, TCompasLabels.class); } public Optional getCompasSclFileType(TPrivate compasPrivate) { return getCompasValue(compasPrivate, SCL_FILE_TYPE, SclFileType.class); } - public Optional getLabels(TPrivate compasPrivate) { - return getCompasValue(compasPrivate, LABELS, TCompasLabels.class); + public Optional getCompasSclName(TPrivate compasPrivate) { + return getCompasValue(compasPrivate, SCL_NAME, String.class); } private Optional getCompasValue(TPrivate compasPrivate, CompasExtensionsField field, Class clazz) { diff --git a/scl2007b/src/main/java/org/lfenergy/compas/scl2007b/commons/CompasExtensionsManager.java b/scl2007b/src/main/java/org/lfenergy/compas/scl2007b/commons/CompasExtensionsManager.java index d56bcf1..cb64acf 100644 --- a/scl2007b/src/main/java/org/lfenergy/compas/scl2007b/commons/CompasExtensionsManager.java +++ b/scl2007b/src/main/java/org/lfenergy/compas/scl2007b/commons/CompasExtensionsManager.java @@ -34,14 +34,14 @@ private Optional getCompasValue(TPrivate compasPrivate, CompasExtensionsF return Optional.empty(); } - public Optional getCompasSclName(TPrivate compasPrivate) { - return getCompasValue(compasPrivate, SCL_NAME, String.class); - } - public Optional getCompasSclFileType(TPrivate compasPrivate) { return getCompasValue(compasPrivate, SCL_FILE_TYPE, SclFileType.class); } + public Optional getCompasSclName(TPrivate compasPrivate) { + return getCompasValue(compasPrivate, SCL_NAME, String.class); + } + public Optional getLabels(TPrivate compasPrivate) { return getCompasValue(compasPrivate, LABELS, TCompasLabels.class); }