Standardize and improve descriptions of intentions/inspections
This commit is contained in:
committed by
Mikhail Glukhikh
parent
bc7ccbc39b
commit
3b2bbee595
@@ -1,23 +1,22 @@
|
||||
<html>
|
||||
<body>
|
||||
Reports recursive property accessor calls which can end up with StackOverflowError
|
||||
<p>
|
||||
For example:
|
||||
<code><pre>
|
||||
<b>class</b> A {
|
||||
<b>var</b> x = 0
|
||||
<b>get</b>() {
|
||||
<b>return</b> x //recursive getter call
|
||||
}
|
||||
This inspection reports recursive property accessor calls which can end up with a <b>StackOverflowError</b>. For example:
|
||||
<br /><br />
|
||||
|
||||
<b>var</b> y = 0
|
||||
<b>set</b>(value) {
|
||||
<b>if</b> (value > 0) {
|
||||
y = value //recursive setter call
|
||||
}
|
||||
<pre>
|
||||
<b>class</b> A {
|
||||
<b>var</b> x = 0
|
||||
<b>get</b>() {
|
||||
<b>return</b> x //recursive getter call
|
||||
}
|
||||
|
||||
<b>var</b> y = 0
|
||||
<b>set</b>(value) {
|
||||
<b>if</b> (value > 0) {
|
||||
y = value //recursive setter call
|
||||
}
|
||||
}
|
||||
</pre></code>
|
||||
</p>
|
||||
}
|
||||
}
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user