Use field that was unused and remove suppression. #1555
Fixes `SuppressionAnnotation` inspection violations in test code. Description: >Reports any inspection suppression comments or annotations.
This commit is contained in:
parent
cea7f4acbe
commit
b543f32fd7
|
|
@ -97,7 +97,6 @@ public class AutomaticBeanTest {
|
|||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static class TestBean extends AutomaticBean {
|
||||
|
||||
private String privateField;
|
||||
|
|
@ -115,7 +114,7 @@ public class AutomaticBeanTest {
|
|||
}
|
||||
|
||||
public void setExceptionalMethod(String value) {
|
||||
throw new IllegalStateException(wrong);
|
||||
throw new IllegalStateException(privateField);
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue