File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ And then apply it as follows
77
77
```
78
78
@Source(URL = "http://coders.com/",
79
79
mail = "support@coders.com")
80
- public class MyClass extends HisClass ...
80
+ public class MyClass extends TheirClass ...
81
81
```
82
82
83
83
An annotation application in Scala looks like a constructor invocation, for instantiating a Java annotation one has to use named arguments:
@@ -101,7 +101,7 @@ And then apply it as follows
101
101
102
102
```
103
103
@SourceURL("http://coders.com/")
104
- public class MyClass extends HisClass ...
104
+ public class MyClass extends TheirClass ...
105
105
```
106
106
107
107
In this case, Scala provides the same possibility
@@ -116,7 +116,7 @@ The `mail` element was specified with a default value so we need not explicitly
116
116
```
117
117
@SourceURL(value = "http://coders.com/",
118
118
mail = "support@coders.com")
119
- public class MyClass extends HisClass ...
119
+ public class MyClass extends TheirClass ...
120
120
```
121
121
122
122
Scala provides more flexibility in this respect
You can’t perform that action at this time.
0 commit comments