Skip to content

Commit 6629bd8

Browse files
committed
No need to deprecate classes when module is deprecated
1 parent b361f76 commit 6629bd8

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
category: deprecated
33
---
4-
* The module `semmle.code.java.frameworks.Castor` has been deprecated and will be removed in a future release, including its two classes `CastorUnmarshaller` and `CastorUnmarshalMethod`.
5-
* The module `semmle.code.java.frameworks.JYaml` has been deprecated and will be removed in a future release, including its two classes `JYamlLoader` and `JYamlLoaderUnsafeLoadMethod`.
4+
* The module `semmle.code.java.frameworks.Castor` has been deprecated and will be removed in a future release.
5+
* The module `semmle.code.java.frameworks.JYaml` has been deprecated and will be removed in a future release.
66
* The classes `UnsafeHessianInputReadObjectMethod` and `BurlapInputReadObjectMethod` in the module `semmle.code.java.frameworks.HessianBurlap` have been deprecated and will be removed in a future release.
77
* The class `YamlBeansReaderReadMethod` in the module `semmle.code.java.frameworks.YamlBeans` has been deprecated and will be removed in a future release.
88
* The class `MethodApacheSerializationUtilsDeserialize` in the module `semmle.code.java.frameworks.apache.Lang` has been deprecated and will be removed in a future release.

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,16 @@ deprecated module;
99
import java
1010

1111
/**
12-
* DEPRECATED: Now modeled using data extensions instead.
13-
*
1412
* The class `org.exolab.castor.xml.Unmarshaller`.
1513
*/
16-
deprecated class CastorUnmarshaller extends RefType {
14+
class CastorUnmarshaller extends RefType {
1715
CastorUnmarshaller() { this.hasQualifiedName("org.exolab.castor.xml", "Unmarshaller") }
1816
}
1917

2018
/**
21-
* DEPRECATED: Now modeled using data extensions instead.
22-
*
2319
* A method with the name `unmarshal` declared in `org.exolab.castor.xml.Unmarshaller`.
2420
*/
25-
deprecated class CastorUnmarshalMethod extends Method {
21+
class CastorUnmarshalMethod extends Method {
2622
CastorUnmarshalMethod() {
2723
this.getDeclaringType() instanceof CastorUnmarshaller and
2824
this.getName() = "unmarshal"

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,16 @@ deprecated module;
99
import java
1010

1111
/**
12-
* DEPRECATED: Now modeled using data extensions instead.
13-
*
1412
* The class `org.ho.yaml.Yaml` or `org.ho.yaml.YamlConfig`.
1513
*/
16-
deprecated class JYamlLoader extends RefType {
14+
class JYamlLoader extends RefType {
1715
JYamlLoader() { this.hasQualifiedName("org.ho.yaml", ["Yaml", "YamlConfig"]) }
1816
}
1917

2018
/**
21-
* DEPRECATED: Now modeled using data extensions instead.
22-
*
2319
* A JYaml unsafe load method, declared on either `Yaml` or `YamlConfig`.
2420
*/
25-
deprecated class JYamlLoaderUnsafeLoadMethod extends Method {
21+
class JYamlLoaderUnsafeLoadMethod extends Method {
2622
JYamlLoaderUnsafeLoadMethod() {
2723
this.getDeclaringType() instanceof JYamlLoader and
2824
this.getName() in ["load", "loadType", "loadStream", "loadStreamOfType"]

0 commit comments

Comments
 (0)