Skip to content

Commit 9c22bc1

Browse files
paulpadriaanm
authored andcommitted
Removing ancient comments and pointless comments.
Translating <code></code> into backticks. Removed the "@param tree ..." blocks which have been taunting me for half a decade now. Removed commented-out blocks of code which had been sitting there for two years or more.
1 parent e6a8347 commit 9c22bc1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/library/scala/xml/Elem.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ package scala.xml
1717
* @author Burak Emir <[email protected]>
1818
*/
1919
object Elem {
20-
/** Build an Elem, setting its minimizeEmpty property to <code>true</code> if it has no children. Note that this
20+
/** Build an Elem, setting its minimizeEmpty property to `true` if it has no children. Note that this
2121
* default may not be exactly what you want, as some XML dialects don't permit some elements to be minimized.
2222
*
2323
* @deprecated This factory method is retained for backward compatibility; please use the other one, with which you

src/library/scala/xml/Node.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ abstract class Node extends NodeSeq {
5555
def scope: NamespaceBinding = TopScope
5656

5757
/**
58-
* convenience, same as <code>getNamespace(this.prefix)</code>
58+
* convenience, same as `getNamespace(this.prefix)`
5959
*/
6060
def namespace = getNamespace(this.prefix)
6161

@@ -64,8 +64,8 @@ abstract class Node extends NodeSeq {
6464
* checks if scope is `'''null'''`.
6565
*
6666
* @param pre the prefix whose namespace name we would like to obtain
67-
* @return the namespace if <code>scope != null</code> and prefix was
68-
* found, else <code>null</code>
67+
* @return the namespace if `scope != null` and prefix was
68+
* found, else `null`
6969
*/
7070
def getNamespace(pre: String): String = if (scope eq null) null else scope.getURI(pre)
7171

@@ -74,8 +74,8 @@ abstract class Node extends NodeSeq {
7474
* Same as `attributes.getValue(key)`
7575
*
7676
* @param key of queried attribute.
77-
* @return value of <code>UnprefixedAttribute</code> with given key
78-
* in attributes, if it exists, otherwise <code>null</code>.
77+
* @return value of `UnprefixedAttribute` with given key
78+
* in attributes, if it exists, otherwise `null`.
7979
*/
8080
final def attribute(key: String): Option[Seq[Node]] = attributes.get(key)
8181

0 commit comments

Comments
 (0)