=== Compliant solution

[source,text]
----
public class Foo {
  private String name; 

  public String getName() { }
}

//...

Foo foo = new Foo();
foo.getName()
----
