Permalink
Browse files

Change data type of "size" in Image.java

The data type of "size" should be changed to "Long", because "Integer" will cause an error for large images as follows: 
  "...Numeric value (20700856320) out of range of int..."
  • Loading branch information...
1 parent 0bb1d77 commit 6003be3aff0d05d6bc6973fa948800ef61d2cacd @seaman25 seaman25 committed Mar 19, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 glance-model/src/main/java/org/openstack/glance/model/Image.java
@@ -23,7 +23,7 @@
@JsonProperty("container_format")
private String containerFormat;
- private Integer size;
+ private Long size;
private String checksum;
@@ -130,14 +130,14 @@ public void setContainerFormat(String containerFormat) {
/**
* @return the size
*/
- public Integer getSize() {
+ public Long getSize() {
return size;
}
/**
* @param size the size to set
*/
- public void setSize(Integer size) {
+ public void setSize(Long size) {
this.size = size;
}

0 comments on commit 6003be3

Please sign in to comment.