Skip to content

Commit 2e8195c

Browse files
committed
updates for PR review
1 parent 95b3841 commit 2e8195c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

examples/src/main/java/com/softlayer/api/example/AddSecurityGroupRule.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ public void run(ApiClient client) throws Exception {
2020
sg.setDescription("javaTestDescription");
2121

2222
// create that security group
23-
SecurityGroup sg_out = service.createObject(sg);
24-
System.out.format("Created security group with ID: %s\n", sg_out.getId());
23+
SecurityGroup sgOut = service.createObject(sg);
24+
System.out.format("Created security group with ID: %s\n", sgOut.getId());
2525

2626
// bind the service to the id of the newly created security group
27-
service = sg_out.asService(client);
27+
service = sgOut.asService(client);
2828

2929
// Create a security group rule
3030
Rule rule = new Rule();
3131
rule.setDirection("ingress");
3232
rule.setProtocol("udp");
3333

34-
List newRules = new ArrayList<Rule>();
34+
List<Rule> newRules = new ArrayList<Rule>();
3535
newRules.add(rule);
3636

3737
// Now add the rule(s) to the security group
38-
System.out.format("Adding rule(s) to security group");
38+
System.out.println("Adding rule(s) to security group");
3939
service.addRules(newRules);
4040
}
4141

examples/src/main/java/com/softlayer/api/example/CreateSecurityGroup.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ public void run(ApiClient client) throws Exception {
1717

1818
// Now call the security group service to create it
1919
System.out.println("Make call to create security group");
20-
SecurityGroup sg_out = service.createObject(sg);
21-
System.out.format("Created security group with name = %s\n", sg_out.getName());
20+
SecurityGroup sgOut = service.createObject(sg);
21+
System.out.format("Created security group with name = %s\n", sgOut.getName());
2222
}
2323

2424
public static void main(String[] args) throws Exception {

0 commit comments

Comments
 (0)