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:
Michal Kordas 2015-08-20 18:27:52 +02:00 committed by Roman Ivanov
parent cea7f4acbe
commit b543f32fd7
1 changed files with 1 additions and 2 deletions

View File

@ -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) {