Make inner class static. #1555

Fixes `InnerClassMayBeStatic` inspection violation in test code.

Description:
>Reports any inner classes which may safely be made static. An inner class may be static if it doesn't reference its enclosing instance.
 A static inner class does not keep an implicit reference to its enclosing instance. This prevents a common cause of memory leaks and uses less memory per instance of the class.
This commit is contained in:
Michal Kordas 2015-08-16 23:04:28 +02:00 committed by Roman Ivanov
parent f0c74333de
commit e6faf188e2
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ public class AutomaticBeanTest {
}
@SuppressWarnings("unused")
public class TestBean extends AutomaticBean {
public static class TestBean extends AutomaticBean {
private String privateField;