Skip to content

Commit e028a31

Browse files
javier-godoypaodb
authored andcommitted
style: remove unnecessary 'this' qualifier
1 parent af98122 commit e028a31

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/com/flowingcode/vaadin/addons/demo/SplitLayoutDemo.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ public SplitLayoutDemo(Component demo, List<SourceCodeTab> tabs) {
4848

4949
code = new MultiSourceCodeViewer(tabs, properties);
5050

51-
this.sourcePosition = code.getSourcePosition();
52-
switch (this.sourcePosition) {
51+
sourcePosition = code.getSourcePosition();
52+
switch (sourcePosition) {
5353
case PRIMARY:
5454
getContent().addToPrimary(code);
5555
getContent().addToSecondary(demo);
@@ -64,7 +64,7 @@ public SplitLayoutDemo(Component demo, List<SourceCodeTab> tabs) {
6464
}
6565

6666
public void switchSourcePosition(SourcePosition position) {
67-
if (!this.sourcePosition.equals(position)) {
67+
if (!sourcePosition.equals(position)) {
6868
toggleSourcePosition();
6969
}
7070
}
@@ -75,7 +75,7 @@ public void toggleSourcePosition() {
7575
getContent().removeAll();
7676
getContent().addToPrimary(secondary);
7777
getContent().addToSecondary(primary);
78-
this.sourcePosition = this.sourcePosition.toggle();
78+
sourcePosition = sourcePosition.toggle();
7979
}
8080

8181
public void setOrientation(Orientation o) {

0 commit comments

Comments
 (0)