37 lines
636 B
Plaintext
37 lines
636 B
Plaintext
== Why is this an issue?
|
|
|
|
This rule allows banning usage of certain constructors.
|
|
|
|
|
|
=== Noncompliant code example
|
|
|
|
Given parameters:
|
|
|
|
* className: java.util.Date
|
|
* argumentTypes: java.lang.String
|
|
|
|
[source,java]
|
|
----
|
|
Date birthday;
|
|
birthday = new Date("Sat Sep 27 05:42:21 EDT 1986"); // Noncompliant
|
|
birthday = new Date(528176541000L); // Compliant
|
|
----
|
|
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::message.adoc[]
|
|
|
|
include::parameters.adoc[]
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::comments-and-links.adoc[]
|
|
endif::env-github,rspecator-view[]
|