Skip to content

Commit 82d9180

Browse files
committed
only have one deprecated alias for XmlDtd
1 parent 7704a9e commit 82d9180

File tree

5 files changed

+10
-25
lines changed
  • cpp/ql/lib/semmle/code/cpp
  • csharp/ql/lib/semmle/code/csharp
  • javascript/ql/lib/semmle/javascript
  • java/ql/lib/semmle/code/xml
  • python/ql/lib/semmle/python/xml

5 files changed

+10
-25
lines changed

cpp/ql/lib/semmle/code/cpp/XML.qll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class XmlFile extends XmlParent, File {
135135
XmlDtd getADtd() { xmlDTDs(result, _, _, _, this) }
136136

137137
/** DEPRECATED: Alias for getADtd */
138-
deprecated XmlDTD getADTD() { result = this.getADtd() }
138+
deprecated XmlDtd getADTD() { result = this.getADtd() }
139139
}
140140

141141
/** DEPRECATED: Alias for XmlFile */
@@ -178,10 +178,7 @@ class XmlDtd extends XmlLocatable, @xmldtd {
178178
}
179179

180180
/** DEPRECATED: Alias for XmlDtd */
181-
deprecated class XmlDTD = XmlDtd;
182-
183-
/** DEPRECATED: Alias for XmlDtd */
184-
deprecated class XMLDTD = XmlDTD;
181+
deprecated class XMLDTD = XmlDtd;
185182

186183
/**
187184
* An XML element in an XML file.

csharp/ql/lib/semmle/code/csharp/XML.qll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class XmlFile extends XmlParent, File {
135135
XmlDtd getADtd() { xmlDTDs(result, _, _, _, this) }
136136

137137
/** DEPRECATED: Alias for getADtd */
138-
deprecated XmlDTD getADTD() { result = this.getADtd() }
138+
deprecated XmlDtd getADTD() { result = this.getADtd() }
139139
}
140140

141141
/** DEPRECATED: Alias for XmlFile */
@@ -178,10 +178,7 @@ class XmlDtd extends XmlLocatable, @xmldtd {
178178
}
179179

180180
/** DEPRECATED: Alias for XmlDtd */
181-
deprecated class XmlDTD = XmlDtd;
182-
183-
/** DEPRECATED: Alias for XmlDtd */
184-
deprecated class XMLDTD = XmlDTD;
181+
deprecated class XMLDTD = XmlDtd;
185182

186183
/**
187184
* An XML element in an XML file.

java/ql/lib/semmle/code/xml/XML.qll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class XmlFile extends XmlParent, File {
135135
XmlDtd getADtd() { xmlDTDs(result, _, _, _, this) }
136136

137137
/** DEPRECATED: Alias for getADtd */
138-
deprecated XmlDTD getADTD() { result = this.getADtd() }
138+
deprecated XmlDtd getADTD() { result = this.getADtd() }
139139
}
140140

141141
/** DEPRECATED: Alias for XmlFile */
@@ -178,10 +178,7 @@ class XmlDtd extends XmlLocatable, @xmldtd {
178178
}
179179

180180
/** DEPRECATED: Alias for XmlDtd */
181-
deprecated class XmlDTD = XmlDtd;
182-
183-
/** DEPRECATED: Alias for XmlDtd */
184-
deprecated class XMLDTD = XmlDTD;
181+
deprecated class XMLDTD = XmlDtd;
185182

186183
/**
187184
* An XML element in an XML file.

javascript/ql/lib/semmle/javascript/XML.qll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class XmlFile extends XmlParent, File {
135135
XmlDtd getADtd() { xmlDTDs(result, _, _, _, this) }
136136

137137
/** DEPRECATED: Alias for getADtd */
138-
deprecated XmlDTD getADTD() { result = this.getADtd() }
138+
deprecated XmlDtd getADTD() { result = this.getADtd() }
139139
}
140140

141141
/** DEPRECATED: Alias for XmlFile */
@@ -178,10 +178,7 @@ class XmlDtd extends XmlLocatable, @xmldtd {
178178
}
179179

180180
/** DEPRECATED: Alias for XmlDtd */
181-
deprecated class XmlDTD = XmlDtd;
182-
183-
/** DEPRECATED: Alias for XmlDtd */
184-
deprecated class XMLDTD = XmlDTD;
181+
deprecated class XMLDTD = XmlDtd;
185182

186183
/**
187184
* An XML element in an XML file.

python/ql/lib/semmle/python/xml/XML.qll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class XmlFile extends XmlParent, File {
135135
XmlDtd getADtd() { xmlDTDs(result, _, _, _, this) }
136136

137137
/** DEPRECATED: Alias for getADtd */
138-
deprecated XmlDTD getADTD() { result = this.getADtd() }
138+
deprecated XmlDtd getADTD() { result = this.getADtd() }
139139
}
140140

141141
/** DEPRECATED: Alias for XmlFile */
@@ -178,10 +178,7 @@ class XmlDtd extends XmlLocatable, @xmldtd {
178178
}
179179

180180
/** DEPRECATED: Alias for XmlDtd */
181-
deprecated class XmlDTD = XmlDtd;
182-
183-
/** DEPRECATED: Alias for XmlDtd */
184-
deprecated class XMLDTD = XmlDTD;
181+
deprecated class XMLDTD = XmlDtd;
185182

186183
/**
187184
* An XML element in an XML file.

0 commit comments

Comments
 (0)