src/main/java/de/uapcore/lightpit/LightPITModule.java

changeset 36
0f4f8f255c32
parent 34
824d4042c857
child 51
dd0a45ae25d7
--- a/src/main/java/de/uapcore/lightpit/LightPITModule.java	Sun May 10 10:11:10 2020 +0200
+++ b/src/main/java/de/uapcore/lightpit/LightPITModule.java	Sun May 10 10:11:37 2020 +0200
@@ -128,24 +128,13 @@
     class ELProxy {
         private final String bundleBaseName, modulePath, menuKey, titleKey, nameKey, descKey;
 
-        public static ELProxy convert(LightPITModule annotation) {
-            return new ELProxy(
-                    annotation.bundleBaseName(),
-                    annotation.modulePath(),
-                    annotation.menuKey(),
-                    annotation.titleKey(),
-                    annotation.nameKey(),
-                    annotation.descKey()
-            );
-        }
-
-        private ELProxy(String bundleBaseName, String modulePath, String menuKey, String titleKey, String nameKey, String descKey) {
-            this.bundleBaseName = bundleBaseName;
-            this.modulePath = modulePath;
-            this.menuKey = menuKey;
-            this.titleKey = titleKey;
-            this.nameKey = nameKey;
-            this.descKey = descKey;
+        public ELProxy(LightPITModule annotation) {
+            bundleBaseName = annotation.bundleBaseName();
+            modulePath = annotation.modulePath();
+            menuKey = annotation.menuKey();
+            titleKey = annotation.titleKey();
+            nameKey = annotation.nameKey();
+            descKey = annotation.descKey();
         }
 
         public String getBundleBaseName() {

mercurial