Toggle navigation
Home
java.lang.Integer to java.lang.Void
No. of Instances - 1
No. of Commits - 1
No. of Projects - {'redisson'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Jdk
Mapping:
Introduce Literal
result
to
null
Cascading Type Change (Similar)
Integer
to
Void
Callable<Integer>
to
Callable<Void>
Add or Remove Method invocation
readBuffer(reader,datanode,strategy,corruptedBlockMap)
to
readToBuffer(reader,datanode,strategy,corruptedBlockMap)
Update Anonymous class
{ @Override public Integer call() throws Exception { int result=0; while (result < targetLength) { int ret=readBuffer(reader,datanode,strategy,corruptedBlockMap); if (ret < 0) { throw new IOException("Unexpected EOS from the reader"); } result+=ret; } updateReadStatistics(readStatistics,targetLength,reader); return result; } }
to
{ @Override public Void call() throws Exception { if (reader == null) { throw new IOException("The BlockReader is null. " + "The BlockReader creation failed or the reader hit exception."); } Preconditions.checkState(currentReaderOffset <= targetReaderOffset); if (currentReaderOffset < targetReaderOffset) { long skipped=reader.skip(targetReaderOffset - currentReaderOffset); Preconditions.checkState(skipped == targetReaderOffset - currentReaderOffset); } int result=0; while (result < targetLength) { int ret=readToBuffer(reader,datanode,strategy,corruptedBlockMap); if (ret < 0) { throw new IOException("Unexpected EOS from the reader"); } result+=ret; } updateReadStatistics(readStatistics,targetLength,reader); return null; } }