Skip to content

Commit 670bd28

Browse files
committed
docs(compute-samples): lint fix
1 parent 0a1e0f3 commit 670bd28

File tree

5 files changed

+14
-7
lines changed

5 files changed

+14
-7
lines changed

compute/cloud-client/src/main/java/compute/CreateInstanceTemplate.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ public static void createInstanceTemplate(String projectId, String templateName)
9595
System.out.println("Instance Template creation failed ! ! " + response);
9696
return;
9797
}
98-
System.out.printf("Instance Template Operation Status %s: %s" , templateName, response.getStatus());
98+
System.out
99+
.printf("Instance Template Operation Status %s: %s", templateName, response.getStatus());
99100
}
100101
}
101102
}

compute/cloud-client/src/main/java/compute/CreateTemplateFromInstance.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public static void createTemplateFromInstance(String projectId, String templateN
5555
// Device name must match the name of a disk attached to the instance you are
5656
// basing your template on.
5757
.setDeviceName("disk-1")
58-
// Replace the original boot disk image used in your instance with a Rocky Linux image.
58+
// Replace the original boot disk image used in your instance
59+
// with a Rocky Linux image.
5960
.setInstantiateFrom(InstantiateFrom.CUSTOM_IMAGE)
6061
.setCustomImage("projects/rocky-linux-cloud/global/images/family/rocky-linux-8")
6162
// Override the AutoDelete setting.
@@ -80,7 +81,8 @@ public static void createTemplateFromInstance(String projectId, String templateN
8081
System.out.println("Instance Template creation failed ! ! " + response);
8182
return;
8283
}
83-
System.out.printf("Instance Template creation operation status %s: %s" , templateName, response.getStatus());
84+
System.out.printf("Instance Template creation operation status %s: %s", templateName,
85+
response.getStatus());
8486
}
8587
}
8688
}

compute/cloud-client/src/main/java/compute/CreateTemplateWithSubnet.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public class CreateTemplateWithSubnet {
3232

3333
public static void main(String[] args)
3434
throws IOException, ExecutionException, InterruptedException {
35-
/* TODO(developer): Replace these variables before running the sample.
35+
/*
36+
TODO(developer): Replace these variables before running the sample.
3637
projectId: project ID or project number of the Cloud project you use.
3738
network: the network to be used in the new template. This value uses
3839
the following format: "projects/{project}/global/networks/{network}"
@@ -86,7 +87,8 @@ public static void createTemplateWithSubnet(String projectId, String network, St
8687
System.out.println("Template creation from subnet failed ! ! " + response);
8788
return;
8889
}
89-
System.out.printf("Template creation from subnet operation status %s: %s" , templateName, response.getStatus());
90+
System.out.printf("Template creation from subnet operation status %s: %s", templateName,
91+
response.getStatus());
9092
}
9193
}
9294
}

compute/cloud-client/src/main/java/compute/DeleteInstance.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ public static void deleteInstance(String project, String zone, String instanceNa
6565
System.out.println("Instance deletion failed ! ! " + response);
6666
return;
6767
}
68-
System.out.printf("Operation Status for instance %s: %s ", instanceName, response.getStatus());
68+
System.out
69+
.printf("Operation Status for instance %s: %s ", instanceName, response.getStatus());
6970
}
7071
}
7172
}

compute/cloud-client/src/main/java/compute/DeleteInstanceTemplate.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public static void deleteInstanceTemplate(String projectId, String templateName)
5555
System.out.println("Instance template deletion failed ! ! " + response);
5656
return;
5757
}
58-
System.out.printf("Instance template deletion operation status for %s: %s " , templateName, response.getStatus());
58+
System.out.printf("Instance template deletion operation status for %s: %s ", templateName,
59+
response.getStatus());
5960
}
6061
}
6162
}

0 commit comments

Comments
 (0)