File tree 5 files changed +7
-7
lines changed
event-aggregator/src/main/java/com/iluwatar/event/aggregator
iterator/src/main/java/com/iluwatar/iterator
layers/src/main/java/com/iluwatar/layers
5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ public EventEmitter(EventObserver obs) {
43
43
registerObserver (obs );
44
44
}
45
45
46
- public void registerObserver (EventObserver obs ) {
46
+ public final void registerObserver (EventObserver obs ) {
47
47
observers .add (obs );
48
48
}
49
49
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public ItemType getType() {
46
46
return type ;
47
47
}
48
48
49
- public void setType (ItemType type ) {
49
+ public final void setType (ItemType type ) {
50
50
this .type = type ;
51
51
}
52
52
}
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public Set<CakeLayer> getLayers() {
75
75
return layers ;
76
76
}
77
77
78
- public void setLayers (Set <CakeLayer > layers ) {
78
+ public final void setLayers (Set <CakeLayer > layers ) {
79
79
this .layers = layers ;
80
80
}
81
81
Original file line number Diff line number Diff line change @@ -66,15 +66,15 @@ public String getName() {
66
66
return name ;
67
67
}
68
68
69
- public void setName (String name ) {
69
+ public final void setName (String name ) {
70
70
this .name = name ;
71
71
}
72
72
73
73
public int getCalories () {
74
74
return calories ;
75
75
}
76
76
77
- public void setCalories (int calories ) {
77
+ public final void setCalories (int calories ) {
78
78
this .calories = calories ;
79
79
}
80
80
Original file line number Diff line number Diff line change @@ -66,11 +66,11 @@ public String getName() {
66
66
return name ;
67
67
}
68
68
69
- public void setName (String name ) {
69
+ public final void setName (String name ) {
70
70
this .name = name ;
71
71
}
72
72
73
- public int getCalories () {
73
+ public final int getCalories () {
74
74
return calories ;
75
75
}
76
76
You can’t perform that action at this time.
0 commit comments