diff options
author | skyupward <skyupward@foxmail.com> | 2017-11-15 20:54:43 +0800 |
---|---|---|
committer | Roel Spilker <r.spilker@gmail.com> | 2017-12-11 23:01:53 +0100 |
commit | 0232d99ba646313505536a0663952e9e94340022 (patch) | |
tree | e797a5d04fb7342fd21cb0d49c51e9653a70f259 /usage_examples/ToStringExample_pre.jpage | |
parent | e04e1771e112f6e968c85fcc02be4efec6fc0b70 (diff) | |
download | lombok-0232d99ba646313505536a0663952e9e94340022.tar.gz lombok-0232d99ba646313505536a0663952e9e94340022.tar.bz2 lombok-0232d99ba646313505536a0663952e9e94340022.zip |
getName call it self result in stackoverflow
I think line 12 is incorrect, call "this.getName()" in it self will cause stackoverflow.Change to return this.name.
Diffstat (limited to 'usage_examples/ToStringExample_pre.jpage')
-rw-r--r-- | usage_examples/ToStringExample_pre.jpage | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usage_examples/ToStringExample_pre.jpage b/usage_examples/ToStringExample_pre.jpage index a15fb944..39b25892 100644 --- a/usage_examples/ToStringExample_pre.jpage +++ b/usage_examples/ToStringExample_pre.jpage @@ -9,7 +9,7 @@ public class ToStringExample { private int id; public String getName() { - return this.getName(); + return this.name; } @ToString(callSuper=true, includeFieldNames=true) |