Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 6003be3aff0d05d6bc6973fa948800ef61d2cacd 1 parent 0bb1d77
@seaman25 seaman25 authored
View
6 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.