Avoid C-style array declarations

Found via error-prone.
This commit is contained in:
Andrew Gaul 2016-10-23 13:49:11 -07:00
parent ea82f58b35
commit 424a88fdc5
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ public class VMImageToImage implements Function<VMImage, Image> {
}
public static VMImage decodeFieldsFromUniqueId(final String id) {
String fields[] = checkNotNull(id, "id").split("/");
String[] fields = checkNotNull(id, "id").split("/");
VMImage vmImage;
boolean custom = fields.length == 5;
if (custom) {