Skip to content

Commit

Permalink
yegor256#192 Added Immutable.Array annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosmiranda committed Jul 22, 2014
1 parent 26974a7 commit 39a470f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ final class DirectoryListing implements Resource {
/**
* Byte representation of transformed data.
*/
@Immutable.Array
private final transient byte[] content;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ final class ObjectVersionListing implements Resource {
/**
* Byte representation of XML data.
*/
@Immutable.Array
private final transient byte[] content;

/**
Expand Down Expand Up @@ -123,7 +124,7 @@ public int status() {
@Override
public long writeTo(final OutputStream stream) throws IOException {
stream.write(this.content);
return (long) this.content.length;
return this.content.length;
}

@Override
Expand Down

0 comments on commit 39a470f

Please sign in to comment.