Merge branch 'master' of https://github.com/kullfar/pmd into kullfar-master

This commit is contained in:
Andreas Dangel
2015-10-16 17:18:35 +02:00

View File

@ -593,19 +593,25 @@ starts-with(@Image,'Runtime.getRuntime') and
<example>
<![CDATA[
public class GCCall {
public GCCall() {
public GCCall() {
// Explicit gc call !
System.gc();
}
public void doSomething() {
// Explicit gc call !
Runtime.getRuntime().gc();
// Explicit gc call !
Runtime.getRuntime().gc();
}
public explicitGCcall() { // Explicit gc call ! System.gc(); }
public explicitGCcall() {
// Explicit gc call !
System.gc();
}
public void doSomething() { // Explicit gc call ! Runtime.getRuntime().gc(); }
public void doSomething() {
// Explicit gc call !
Runtime.getRuntime().gc();
}
}
]]>
</example>