Skip to content

Commit d99aeb7

Browse files
committed
Apparently {@inheritdoc} doesn't inherit @deprecated from interfaces.
Plus minor type fix ('class' ==> 'method').
1 parent aa1c9d9 commit d99aeb7

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/main/java/org/owasp/esapi/Encoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ public interface Encoder {
492492
* @return input encoded for use in SQL
493493
* @see <a href="https://github.com/ESAPI/esapi-java-legacy/blob/develop/documentation/ESAPI-security-bulletin13.pdf">
494494
* ESAPI Security Bulletin #13</a>
495-
* @deprecated This class is considered dangerous and not easily made safe and thus under strong
495+
* @deprecated This method is considered dangerous and not easily made safe and thus under strong
496496
* consideration to be removed within 1 years time after the 2.7.0.0 release. Please
497497
* see the referenced ESAPI Security Bulletin #13 for further details.
498498
*/

src/main/java/org/owasp/esapi/reference/DefaultEncoder.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,12 @@ private void ensureDangerousMethodExplicitlyEnabled(String fullyQualifiedMethodN
337337

338338
/**
339339
* {@inheritDoc}
340+
*
341+
* @deprecated This method is considered dangerous and not easily made safe and thus under strong
342+
* consideration to be removed within 1 years time after the 2.7.0.0 release. Please
343+
* see the referenced ESAPI Security Bulletin #13 for further details.
340344
*/
345+
@Deprecated
341346
public String encodeForSQL(Codec codec, String input) {
342347

343348
// This will throw if this method is not explicitly enabled in ESAPI.properties.

0 commit comments

Comments
 (0)