rspec/rules/S2094/java/rule.adoc

44 lines
677 B
Plaintext
Raw Normal View History

== Why is this an issue?
2020-06-30 12:48:07 +02:00
include::../description.adoc[]
include::../noncompliant.adoc[]
=== Compliant solution
[source,java]
----
public interface Nothing {
}
----
2020-06-30 12:48:07 +02:00
=== Exceptions
2020-06-30 12:48:07 +02:00
Empty classes can be used as marker types (for Spring for instance), therefore empty classes that are annotated will be ignored.
[source,java]
2020-06-30 12:48:07 +02:00
----
@Configuration
@EnableWebMvc
public final class ApplicationConfiguration {
}
----
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
include::../message.adoc[]
'''
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::env-github,rspecator-view[]