== Why is this an issue?

:func_name: method

include::description.adoc[]

[source,java,diff-id=1,diff-type=noncompliant]
----
private final static String CODE = "bounteous";

public String calculateCode() {
  doTheThing();
  return CODE;
}

public String getName() {  // Noncompliant: duplicates calculateCode
  doTheThing();
  return CODE;
}
----

include::inter.adoc[]

[source,java,diff-id=1,diff-type=compliant]
----
private final static String CODE = "bounteous";

public String getCode() {
  doTheThing();
  return CODE;
}

public String getName() { // The intent is clear
  return getCode();
}
----

include::exceptions.adoc[]
