Introduction to pmd (#972)

* initial check for introduction to pmd

* change name to static-analysis

* move it to static-analysis
This commit is contained in:
tristanzhou
2017-01-08 23:21:03 +13:00
committed by Eugen
parent 8dc3487b67
commit e8a9b60862
3 changed files with 79 additions and 0 deletions
@@ -0,0 +1,12 @@
package com.baeldung.pmd;
public class Cnt {
public int d(int a, int b) {
if (b == 0)
return Integer.MAX_VALUE;
else
return a / b;
}
}