Make inner classes static when possible

Found via error-prone.
This commit is contained in:
Andrew Gaul 2015-12-12 08:11:46 +08:00
parent 06e379d7a5
commit 28d090139d
2 changed files with 2 additions and 1 deletions

View File

@ -746,6 +746,7 @@
<compilerArg>-Xlint:-rawtypes</compilerArg>
<compilerArg>-Xlint:-serial</compilerArg>
<compilerArg>-Xlint:-unchecked</compilerArg>
<compilerArg>-Xep:ClassCanBeStatic:ERROR</compilerArg>
<compilerArg>-Xep:GuiceAssistedInjectScoping:OFF</compilerArg>
<compilerArg>-Xep:LongLiteralLowerCaseSuffix:OFF</compilerArg>
<compilerArg>-Xep:NonAtomicVolatileUpdate:OFF</compilerArg>

View File

@ -33,7 +33,7 @@ public class BlockDevice {
this.diskImage = new DiskImage(diskImageCapacity);
}
private class DiskImage {
private static class DiskImage {
private float capacity;
public DiskImage(float capacity) {