Permalink
Browse files

Minor changes in Limits.Builder constructor: check for null context a…

…nd removal of the unnecesary super() call
  • Loading branch information...
1 parent 9835f1b commit d536e0614b03aa3da0d174a3ad4c578e750356ec Carlos Garcia committed Jul 31, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 abiquo/src/main/java/org/jclouds/abiquo/domain/enterprise/Limits.java
@@ -78,8 +78,7 @@ public static Builder builder(final ApiContext<AbiquoApi> context, Datacenter da
protected Datacenter datacenter;
public Builder(final ApiContext<AbiquoApi> context, final Datacenter datacenter) {
- super();
- this.context = context;
+ this.context = checkNotNull(context, "missing context object");
this.datacenter = checkNotNull(datacenter, "missing datacenter object");
}

0 comments on commit d536e06

Please sign in to comment.