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:
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user