Change FileByteSource.read() to not unnecessarily copy the byte array in the normal case where the file size doesn't change.
Change FileByteSource.read() to not unnecessarily copy the byte array in the normal case where the file size doesn't change.

It was incorrectly assuming that if the first read loop filled the original array, the last read() call would have returned -1 if it was done, which is not the case.

Guava bug: https://code.google.com/p/guava-libraries/issues/detail?id=1376
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=45616868

lijunhuayc/guava,fengshao0907/guava,ChengLong/guava,elijah513/guava,sunbeansoft/guava,sensui/guava-libraries,rgoldberg/guava,Haus1/guava-libraries,sunbeansoft/guava,0359xiaodong/guava,mway08/guava,xasx/guava,tobecrazy/guava,SyllaJay/guava,Ariloum/guava,xueyin87/guava-libraries,Xaerxess/guava,Ranjodh-Singh/ranjodh87-guavalib,liyazhou/guava,yf0994/guava-libraries,mgalushka/guava,aditya-chaturvedi/guava,weihungliu/guava,ceosilvajr/guava,GitHub4Lgfei/guava,jayhetee/guava,10045125/guava,Overruler/guava-libraries,qingsong-xu/guava,fengshao0907/guava,1yvT0s/guava,jackyglony/guava,EdwardLee03/guava,Xaerxess/guava,jiteshmohan/guava,mgalushka/guava,marstianna/guava,monokurobo/guava,cogitate/guava-libraries,yangxu998/guava-libraries,sebadiaz/guava,levenhdu/guava,KengoTODA/guava-libraries,GitHub4Lgfei/guava,chen870647924/guava-libraries,clcron/guava-libraries,GabrielNicolasAvellaneda/guava,KengoTODA/guava,paplorinc/guava,clcron/guava-libraries,5A68656E67/guava,okaywit/guava-libraries,Overruler/guava-libraries,DavesMan/guava,mosoft521/guava,chen870647924/guava-libraries,Ranjodh-Singh/ranjodh87-guavalib,kaoudis/guava,DucQuang1/guava,typetools/guava,HarveyTvT/guava,monokurobo/guava,renchunxiao/guava,r4-keisuke/guava,lijunhuayc/guava,ChengLong/guava,jsnchen/guava,mkodekar/guava-libraries,BollyCheng/guava,ignaciotcrespo/guava,RoliMG/guava,sarvex/guava,thinker-fang/guava,KengoTODA/guava,kingland/guava,jakubmalek/guava,Yijtx/guava,sensui/guava-libraries,renchunxiao/guava,jayhetee/guava,rcpoison/guava,manolama/guava,njucslqq/guava,jsnchen/guava,dubu/guava-libraries,tunzao/guava,VikingDen/guava,nulakasatish/guava-libraries,Kevin2030/guava,tailorlala/guava-libraries,flowbywind/guava,jackyglony/guava,liyazhou/guava,xueyin87/guava-libraries,disc99/guava,rgoldberg/guava,leesir/guava,paddx01/guava-src,codershamo/guava,ignaciotcrespo/guava,zcwease/guava-libraries,jedyang/guava,DaveAKing/guava-libraries,r4-keisuke/guava,scr/guava,mbarbero/guava-libraries,sebadiaz/guava,lgscofield/guava,leesir/guava,maidh91/guava-libraries,mosoft521/guava,mohanaraosv/guava,tli2/guava,norru/guava,XiWenRen/guava,dushmis/guava,maidh91/guava-libraries,gvikei/guava-libraries,anigeorge/guava,jankill/guava,allenprogram/guava,juneJuly/guava,nulakasatish/guava-libraries,dpursehouse/guava,abel-von/guava,5A68656E67/guava,GabrielNicolasAvellaneda/guava,sander120786/guava-libraries,Kevin2030/guava,eidehua/guava,gmaes/guava,jedyang/guava,XiWenRen/guava,yigubigu/guava,0359xiaodong/guava,Yijtx/guava,huangsihuan/guava,easyfmxu/guava,DucQuang1/guava,m3n78am/guava,npvincent/guava,dubu/guava-libraries,yuan232007/guava,seanli310/guava,BollyCheng/guava,pwz3n0/guava,manolama/guava,zcwease/guava-libraries,lgscofield/guava,levenhdu/guava,taoguan/guava,tailorlala/guava-libraries,SaintBacchus/guava,Balzanka/guava-libraries,aiyanbo/guava,mkodekar/guava-libraries,mway08/guava,HarveyTvT/guava,jiteshmohan/guava,anigeorge/guava,hannespernpeintner/guava,licheng-xd/guava,dnrajugade/guava-libraries,DavesMan/guava,Balzanka/guava-libraries,qingsong-xu/guava,paddx01/guava-src,dnrajugade/guava-libraries,aiyanbo/guava,codershamo/guava,berndhopp/guava,yanyongshan/guava,SaintBacchus/guava,aditya-chaturvedi/guava,taoguan/guava,cogitate/guava-libraries,kgislsompo/guava-libraries,cklsoft/guava,eidehua/guava,leogong/guava,binhvu7/guava,janus-project/guava.janusproject.io,pwz3n0/guava,scr/guava,weihungliu/guava,dmi3aleks/guava,abel-von/guava,google/guava,fengshao0907/guava-libraries,kucci/guava-libraries,cklsoft/guava,disc99/guava,EdwardLee03/guava,rcpoison/guava,yuan232007/guava,allenprogram/guava,thinker-fang/guava,jamesbrowder/guava-libraries,jakubmalek/guava,rob3ns/guava,tobecrazy/guava,easyfmxu/guava,rob3ns/guava,gmaes/guava,typetools/guava,yanyongshan/guava,xasx/guava,kucci/guava-libraries,allalizaki/guava-libraries,1yvT0s/guava,leogong/guava,DaveAKing/guava-libraries,mohanaraosv/guava,kingland/guava,baratali/guava,jamesbrowder/guava-libraries,marstianna/guava,yf0994/guava-libraries,tli2/guava,RoliMG/guava,AnselQiao/guava,janus-project/guava.janusproject.io,mosoft521/guava,SyllaJay/guava,jankill/guava,flowbywind/guava,seanli310/guava,allalizaki/guava-libraries,mengdiwang/guava-libraries,kgislsompo/guava-libraries,tunzao/guava,dpursehouse/guava,huangsihuan/guava,AnselQiao/guava,Akshay77/guava,kaoudis/guava,witekcc/guava,montycheese/guava,yigubigu/guava,VikingDen/guava,okaywit/guava-libraries,google/guava,norru/guava,gvikei/guava-libraries,lisb/guava,cgdecker/guava,yangxu998/guava-libraries,hannespernpeintner/guava,sander120786/guava-libraries,Haus1/guava-libraries,danielnorberg/guava-libraries,KengoTODA/guava-libraries,Akshay77/guava,dushmis/guava,witekcc/guava,Ariloum/guava,mgedigian/guava-bloom-filter,elijah513/guava,uschindler/guava,montycheese/guava,google/guava,fengshao0907/guava-libraries,licheng-xd/guava,paplorinc/guava,baratali/guava,juneJuly/guava,mengdiwang/guava-libraries,ningg/guava,njucslqq/guava,npvincent/guava,lisb/guava,ben-manes/guava,ningg/guava,berndhopp/guava,mbarbero/guava-libraries,m3n78am/guava