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
7777```
7878@Source(URL = "http://coders.com/",
7979 mail = "support@coders.com")
80- public class MyClass extends HisClass ...
80+ public class MyClass extends TheirClass ...
8181```
8282
8383An 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
101101
102102```
103103@SourceURL("http://coders.com/")
104- public class MyClass extends HisClass ...
104+ public class MyClass extends TheirClass ...
105105```
106106
107107In 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
116116```
117117@SourceURL(value = "http://coders.com/",
118118 mail = "support@coders.com")
119- public class MyClass extends HisClass ...
119+ public class MyClass extends TheirClass ...
120120```
121121
122122Scala provides more flexibility in this respect
You can’t perform that action at this time.
0 commit comments