== Why is this an issue?

:operationName: method

include::../description.adoc[]

== How to fix it

=== Code examples

==== Noncompliant code example

[source,apex,diff-id=1,diff-type=noncompliant]
----
public void shouldNotBeEmpty() {  // Noncompliant - method is empty
}

public void notImplemented() {  // Noncompliant - method is empty
}

public void emptyOnPurpose() {  // Noncompliant - method is empty
}
----

==== Compliant solution

[source,apex,diff-id=1,diff-type=compliant]
----
public void shouldNotBeEmpty() {
  doSomething();
}

public void notImplemented() {
  throw new Exception('notImplemented() cannot be performed because...');
}

public void emptyOnPurpose() {
  // comment explaining why the method is empty
}
----

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[]
