Skip to content

Commit

Permalink
Annotate Operator as @nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
phroa committed Oct 6, 2015
1 parent dd5b1e7 commit 892986f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ protected AbstractInventoryProperty(@Nullable V value) {
* @param value The property value
* @param op The operator for the property
*/
protected AbstractInventoryProperty(@Nullable V value, Operator op) {
protected AbstractInventoryProperty(@Nullable V value, @Nullable Operator op) {
this(null, value, op);
}

Expand All @@ -94,7 +94,7 @@ protected AbstractInventoryProperty(@Nullable K key, @Nullable V value) {
this(key, value, null);
}

protected AbstractInventoryProperty(@Nullable K key, @Nullable V value, Operator op) {
protected AbstractInventoryProperty(@Nullable K key, @Nullable V value, @Nullable Operator op) {
this.key = key != null ? key : this.getDefaultKey(value);
this.value = value;
this.operator = op != null ? op : this.getDefaultOperator(this.key, value);
Expand Down

0 comments on commit 892986f

Please sign in to comment.