Affects PMD Version:
6.23.0.
Description:
LooseCoupling must ignore class literals. For Example ArrayList.class
Code Sample demonstrating the issue:
void someMethod(Object o){
if ( o.getClass() == ArrayList.class ) { // This case must be ignored by rule!
// do something
}
}
Running PMD through: Maven
Affects PMD Version:
6.23.0.
Description:
LooseCoupling must ignore class literals. For Example ArrayList.class
Code Sample demonstrating the issue:
Running PMD through: Maven