Skip to content

Commit 6e2c490

Browse files
committed
Open-Rewrite
1 parent 9cb4316 commit 6e2c490

File tree

32 files changed

+79
-91
lines changed

32 files changed

+79
-91
lines changed

modules/cui-jsf-api/src/main/java/de/cuioss/jsf/api/common/accessor/ManagedAccessor.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
*/
1616
package de.cuioss.jsf.api.common.accessor;
1717

18-
import jakarta.faces.context.FacesContext;
19-
2018
import java.io.Serializable;
2119
import java.util.ResourceBundle;
2220

modules/cui-jsf-bootstrap/src/main/java/de/cuioss/jsf/bootstrap/icon/strategy/Rule.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
*/
1616
package de.cuioss.jsf.bootstrap.icon.strategy;
1717

18-
import java.io.Serial;
19-
import java.io.Serializable;
20-
2118
import lombok.AccessLevel;
2219
import lombok.EqualsAndHashCode;
2320
import lombok.Getter;
2421
import lombok.RequiredArgsConstructor;
2522
import lombok.ToString;
2623

24+
import java.io.Serial;
25+
import java.io.Serializable;
26+
2727
/**
2828
* <p>
2929
* The Rule class represents a condition-result mapping within the Strategy design pattern.

modules/cui-jsf-bootstrap/src/test/java/de/cuioss/jsf/bootstrap/menu/NavigationMenuRendererTest.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@
1515
*/
1616
package de.cuioss.jsf.bootstrap.menu;
1717

18+
import static de.cuioss.tools.collect.CollectionLiterals.immutableList;
19+
1820
import de.cuioss.jsf.api.components.html.AttributeName;
1921
import de.cuioss.jsf.api.components.html.HtmlTreeBuilder;
2022
import de.cuioss.jsf.api.components.html.Node;
21-
import de.cuioss.jsf.api.components.model.menu.NavigationMenuItemContainer;
22-
import de.cuioss.jsf.api.components.model.menu.NavigationMenuItemContainerImpl;
23-
import de.cuioss.jsf.api.components.model.menu.NavigationMenuItemExternalSingleImpl;
24-
import de.cuioss.jsf.api.components.model.menu.NavigationMenuItemSeparatorImpl;
25-
import de.cuioss.jsf.api.components.model.menu.NavigationMenuItemSingleImpl;
23+
import de.cuioss.jsf.api.components.model.menu.*;
2624
import de.cuioss.jsf.api.components.partial.IconProvider;
2725
import de.cuioss.jsf.bootstrap.CssBootstrap;
2826
import de.cuioss.jsf.bootstrap.CssCuiBootstrap;
@@ -44,8 +42,6 @@
4442

4543
import java.io.IOException;
4644

47-
import static de.cuioss.tools.collect.CollectionLiterals.immutableList;
48-
4945
@JsfTestConfiguration(CoreJsfTestConfiguration.class)
5046
class NavigationMenuRendererTest extends AbstractComponentRendererTest<NavigationMenuRenderer> {
5147

modules/cui-jsf-core-components/src/main/java/de/cuioss/jsf/components/converter/PrettyTimeConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public class PrettyTimeConverter extends AbstractConverter<Object> {
8585
* Once this limit is reached, the least recently used entries are removed.
8686
*/
8787
private static final int CACHE_SIZE = 20;
88-
88+
8989
/**
9090
* Thread-safe LRU (Least Recently Used) cache of PrettyTime instances by locale.
9191
* This improves performance by reusing instances for frequently used locales.

modules/cui-jsf-dev/src/main/java/de/cuioss/jsf/dev/metadata/LibraryTagLib.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public enum LibraryTagLib {
6666
* </p>
6767
*/
6868
CUI_CORE("/META-INF/cui-core.taglib.xml", JSF_4_0_FACELET_TAGLIB_NAMESPACE),
69-
69+
7070
/**
7171
* <p>
7272
* The CUI Bootstrap tag library, containing Bootstrap-based UI components.
@@ -79,7 +79,7 @@ public enum LibraryTagLib {
7979
* </p>
8080
*/
8181
CUI_BOOTSTRAP("/META-INF/cui-bootstrap.taglib.xml", JSF_4_0_FACELET_TAGLIB_NAMESPACE),
82-
82+
8383
/**
8484
* <p>
8585
* The PrimeFaces tag library, containing the third-party PrimeFaces components.
@@ -92,7 +92,7 @@ public enum LibraryTagLib {
9292
* </p>
9393
*/
9494
PRIME_FACES("/META-INF/primefaces.taglib.xml", JSF_2_2_FACELET_TAGLIB_NAMESPACE),
95-
95+
9696
/**
9797
* <p>
9898
* The OmniFaces tag library, containing the third-party OmniFaces UI components.
@@ -105,7 +105,7 @@ public enum LibraryTagLib {
105105
* </p>
106106
*/
107107
OMNI_FACES("/META-INF/omnifaces-ui.taglib.xml", JSF_4_0_FACELET_TAGLIB_NAMESPACE),
108-
108+
109109
/**
110110
* <p>
111111
* The Jakarta Faces core tag library, containing the standard faces core components.
@@ -118,7 +118,7 @@ public enum LibraryTagLib {
118118
* </p>
119119
*/
120120
FACES_CORE("/META-INF/resources/mojarra-4.0.7-tlds/faces.core_taglib.xml", JSF_4_0_FACELET_TAGLIB_NAMESPACE),
121-
121+
122122
/**
123123
* <p>
124124
* The Jakarta Faces HTML tag library, containing the standard HTML components.

modules/cui-jsf-dev/src/main/java/de/cuioss/jsf/dev/metadata/composite/CompositeUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
public final class CompositeUtil {
7373

7474
private static final CuiLogger log = new CuiLogger(CompositeUtil.class);
75-
75+
7676
/**
7777
* <p>
7878
* The standard file extension for XHTML-based composite components.
@@ -83,7 +83,7 @@ public final class CompositeUtil {
8383
* </p>
8484
*/
8585
private static final String XHTML_SUFFIX = ".xhtml";
86-
86+
8787
/**
8888
* <p>
8989
* A placeholder facelet suffix used when retrieving the view declaration language.

modules/cui-jsf-dev/src/main/java/de/cuioss/jsf/dev/metadata/composite/attributes/DisplayXmlCode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
public final class DisplayXmlCode extends UINamingContainer {
104104

105105
private static final CuiLogger LOGGER = new CuiLogger(DisplayXmlCode.class);
106-
106+
107107
/**
108108
* Default suffix for XHTML component files.
109109
* Used when retrieving component resources and normalizing component names.

modules/cui-jsf-dev/src/main/java/de/cuioss/jsf/dev/metadata/model/AttributeMetadata.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public class AttributeMetadata implements Serializable {
8888
* </p>
8989
*/
9090
private final String name;
91-
91+
9292
/**
9393
* <p>
9494
* The Java type of the attribute as defined in the taglib XML file.
@@ -101,7 +101,7 @@ public class AttributeMetadata implements Serializable {
101101
* </p>
102102
*/
103103
private final String type;
104-
104+
105105
/**
106106
* <p>
107107
* The description of the attribute as defined in the taglib XML file.
@@ -116,7 +116,7 @@ public class AttributeMetadata implements Serializable {
116116
* </p>
117117
*/
118118
private final String description;
119-
119+
120120
/**
121121
* <p>
122122
* Indicates whether the attribute is required as defined in the taglib XML file.

modules/cui-jsf-dev/src/main/java/de/cuioss/jsf/dev/metadata/model/Tag.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public abstract class Tag implements Serializable, Comparable<Tag> {
6969
* </p>
7070
*/
7171
private final String name;
72-
72+
7373
/**
7474
* <p>
7575
* The description of the tag as defined in the taglib XML file.
@@ -83,7 +83,7 @@ public abstract class Tag implements Serializable, Comparable<Tag> {
8383
* </p>
8484
*/
8585
private final String description;
86-
86+
8787
/**
8888
* <p>
8989
* The list of attributes defined for this tag in the taglib XML file.

modules/cui-jsf-dev/src/main/java/de/cuioss/jsf/dev/metadata/model/TagStorage.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,15 @@
1515
*/
1616
package de.cuioss.jsf.dev.metadata.model;
1717

18+
import static de.cuioss.tools.string.MoreStrings.nullToEmpty;
19+
1820
import lombok.EqualsAndHashCode;
1921
import lombok.Getter;
2022
import lombok.ToString;
2123

2224
import java.io.Serial;
2325
import java.io.Serializable;
24-
import java.util.ArrayList;
25-
import java.util.Collections;
26-
import java.util.Iterator;
27-
import java.util.List;
28-
import java.util.Optional;
29-
30-
import static de.cuioss.tools.string.MoreStrings.nullToEmpty;
26+
import java.util.*;
3127

3228
/**
3329
* <p>

0 commit comments

Comments
 (0)