mirror of https://github.com/apache/jclouds.git
Make inner classes static when possible
Found via error-prone.
This commit is contained in:
parent
06e379d7a5
commit
28d090139d
|
@ -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>
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue