* initial check for introduction to pmd * change name to static-analysis * move it to static-analysis
13 lines
186 B
Java
13 lines
186 B
Java
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;
|
|
}
|
|
|
|
}
|