Skip to content

Commit 56b3803

Browse files
ngonzalezpazFCjavier-godoy
authored andcommitted
style: fix code smells
1 parent 980772f commit 56b3803

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/java/com/flowingcode/addons/applayout/AbstractFcAppRouterLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public abstract class AbstractFcAppRouterLayout extends Div implements RouterLay
3939

4040
private AppLayout app;
4141

42-
public AbstractFcAppRouterLayout() {
42+
protected AbstractFcAppRouterLayout() {
4343
getElement().getStyle().set("width", "100%");
4444
getElement().getStyle().set("height", "100vh");
4545
getElement().getStyle().set("display", "flex");

src/main/java/com/flowingcode/addons/applayout/AppLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void setMenuItems(Component... menuitems) {
8989
}
9090

9191
public void clearMenuItems() {
92-
drawer.setMenuItems(new ArrayList<MenuItem>());
92+
drawer.setMenuItems(new ArrayList<>());
9393
}
9494

9595
public void setToolbarIconButtons(Component... components) {

src/main/java/com/flowingcode/addons/applayout/AppToolbar.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public Element getElement() {
6060
@Override
6161
public int getComponentCount() {
6262
return (int) getChildren().count();
63-
};
63+
}
6464

6565
@Override
6666
public Component getComponentAt(int index) {
@@ -73,7 +73,7 @@ public Component getComponentAt(int index) {
7373
.orElseThrow(() -> new IllegalArgumentException(
7474
"The 'index' argument should not be greater than or equals to the number of children components. It was: "
7575
+ index));
76-
};
76+
}
7777

7878
};
7979

0 commit comments

Comments
 (0)