File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
main/java/com/iluwatar/adapter
test/java/com/iluwatar/adapter Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 26
26
* The Captain uses {@link RowingBoat} to sail. <br>
27
27
* This is the client in the pattern.
28
28
*/
29
- public class Captain implements RowingBoat {
29
+ public class Captain {
30
30
31
31
private RowingBoat rowingBoat ;
32
32
@@ -40,7 +40,6 @@ public void setRowingBoat(RowingBoat rowingBoat) {
40
40
this .rowingBoat = rowingBoat ;
41
41
}
42
42
43
- @ Override
44
43
public void row () {
45
44
rowingBoat .row ();
46
45
}
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ public void setup() {
66
66
*/
67
67
@ Test
68
68
public void testAdapter () {
69
- RowingBoat captain = (RowingBoat ) beans .get (ROWING_BEAN );
69
+ Captain captain = (Captain ) beans .get (ROWING_BEAN );
70
70
71
71
// when captain moves
72
72
captain .row ();
You can’t perform that action at this time.
0 commit comments