Skip to content

Commit f28da00

Browse files
committed
Java: Fix qldoc as followup to github#8323
1 parent 7e866ed commit f28da00

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

java/ql/lib/semmle/code/java/frameworks/Networking.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import semmle.code.java.Type
66

7-
/** The type `java.net.UrlConnection`. */
7+
/** The type `java.net.URLConnection`. */
88
class TypeUrlConnection extends RefType {
99
TypeUrlConnection() { this.hasQualifiedName("java.net", "URLConnection") }
1010
}
@@ -29,7 +29,7 @@ class TypeUri extends RefType {
2929
TypeUri() { this.hasQualifiedName("java.net", "URI") }
3030
}
3131

32-
/** The method `java.net.UrlConnection::getInputStream`. */
32+
/** The method `java.net.URLConnection::getInputStream`. */
3333
class UrlConnectionGetInputStreamMethod extends Method {
3434
UrlConnectionGetInputStreamMethod() {
3535
this.getDeclaringType() instanceof TypeUrlConnection and

java/ql/lib/semmle/code/java/security/Encryption.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class GetSocketFactory extends Method {
9898
}
9999
}
100100

101-
/** The `createSSLEngine` method of the class `javax.net.ssl.SSLContext` */
101+
/** The `createSSLEngine` method of the class `javax.net.ssl.SSLContext`. */
102102
class CreateSslEngineMethod extends Method {
103103
CreateSslEngineMethod() {
104104
this.hasName("createSSLEngine") and
@@ -120,7 +120,7 @@ class SetHostnameVerifierMethod extends Method {
120120
}
121121
}
122122

123-
/** The `setDefaultHostnameVerifier` method of the class `javax.net.ssl.HttpsUrlConnection`. */
123+
/** The `setDefaultHostnameVerifier` method of the class `javax.net.ssl.HttpsURLConnection`. */
124124
class SetDefaultHostnameVerifierMethod extends Method {
125125
SetDefaultHostnameVerifierMethod() {
126126
this.hasName("setDefaultHostnameVerifier") and
@@ -152,7 +152,7 @@ class SslUnwrapMethod extends Method {
152152
}
153153
}
154154

155-
/** The `getSession` method of the class `javax.net.ssl.SSLSession`.select */
155+
/** The `getSession` method of the class `javax.net.ssl.SSLSession`. */
156156
class GetSslSessionMethod extends Method {
157157
GetSslSessionMethod() {
158158
this.hasName("getSession") and

java/ql/lib/semmle/code/java/security/XmlParsers.qll

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -454,15 +454,15 @@ class SaxParser extends RefType {
454454
/** DEPRECATED: Alias for SaxParser */
455455
deprecated class SAXParser = SaxParser;
456456

457-
/** The class `javax.xml.parsers.SaxParserFactory`. */
457+
/** The class `javax.xml.parsers.SAXParserFactory`. */
458458
class SaxParserFactory extends RefType {
459459
SaxParserFactory() { this.hasQualifiedName("javax.xml.parsers", "SAXParserFactory") }
460460
}
461461

462462
/** DEPRECATED: Alias for SaxParserFactory */
463463
deprecated class SAXParserFactory = SaxParserFactory;
464464

465-
/** A call to `SaxParser.parse`. */
465+
/** A call to `SAXParser.parse`. */
466466
class SaxParserParse extends XmlParserCall {
467467
SaxParserParse() {
468468
exists(Method m |
@@ -590,7 +590,7 @@ class SaxReader extends RefType {
590590
/** DEPRECATED: Alias for SaxReader */
591591
deprecated class SAXReader = SaxReader;
592592

593-
/** A call to `SaxReader.read`. */
593+
/** A call to `SAXReader.read`. */
594594
class SaxReaderRead extends XmlParserCall {
595595
SaxReaderRead() {
596596
exists(Method m |
@@ -668,15 +668,15 @@ class SafeSaxReader extends VarAccess {
668668
deprecated class SafeSAXReader = SafeSaxReader;
669669

670670
/* https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#xmlreader */
671-
/** The class `org.xml.sax.XmlReader`. */
671+
/** The class `org.xml.sax.XMLReader`. */
672672
class XmlReader extends RefType {
673673
XmlReader() { this.hasQualifiedName("org.xml.sax", "XMLReader") }
674674
}
675675

676676
/** DEPRECATED: Alias for XmlReader */
677677
deprecated class XMLReader = XmlReader;
678678

679-
/** A call to `XmlReader.read`. */
679+
/** A call to `XMLReader.read`. */
680680
class XmlReaderParse extends XmlParserCall {
681681
XmlReaderParse() {
682682
exists(Method m |
@@ -827,15 +827,15 @@ deprecated class CreatedSafeXMLReader = CreatedSafeXmlReader;
827827
* https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#jaxb-unmarshaller
828828
*/
829829

830-
/** The class `javax.xml.transform.sax.SaxSource` */
830+
/** The class `javax.xml.transform.sax.SAXSource` */
831831
class SaxSource extends RefType {
832832
SaxSource() { this.hasQualifiedName("javax.xml.transform.sax", "SAXSource") }
833833
}
834834

835835
/** DEPRECATED: Alias for SaxSource */
836836
deprecated class SAXSource = SaxSource;
837837

838-
/** A call to the constructor of `SaxSource` with `XmlReader` and `InputSource`. */
838+
/** A call to the constructor of `SAXSource` with `XmlReader` and `InputSource`. */
839839
class ConstructedSaxSource extends ClassInstanceExpr {
840840
ConstructedSaxSource() {
841841
this.getConstructedType() instanceof SaxSource and
@@ -858,7 +858,7 @@ class ConstructedSaxSource extends ClassInstanceExpr {
858858
/** DEPRECATED: Alias for ConstructedSaxSource */
859859
deprecated class ConstructedSAXSource = ConstructedSaxSource;
860860

861-
/** A call to the `SaxSource.setXMLReader` method. */
861+
/** A call to the `SAXSource.setXMLReader` method. */
862862
class SaxSourceSetReader extends MethodAccess {
863863
SaxSourceSetReader() {
864864
exists(Method m |

java/ql/src/experimental/Security/CWE/CWE-611/XXELib.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,15 +204,15 @@ private class SafeDigesterFlowConfig extends DataFlow4::Configuration {
204204
override int fieldFlowBranchLimit() { result = 0 }
205205
}
206206

207-
/** The class `java.beans.XmlDecoder`. */
207+
/** The class `java.beans.XMLDecoder`. */
208208
class XmlDecoder extends RefType {
209209
XmlDecoder() { this.hasQualifiedName("java.beans", "XMLDecoder") }
210210
}
211211

212212
/** DEPRECATED: Alias for XmlDecoder */
213213
deprecated class XMLDecoder = XmlDecoder;
214214

215-
/** A call to `XmlDecoder.readObject`. */
215+
/** A call to `XMLDecoder.readObject`. */
216216
class XmlDecoderReadObject extends XmlParserCall {
217217
XmlDecoderReadObject() {
218218
exists(Method m |

0 commit comments

Comments
 (0)