Toggle navigation
Home
java.lang.Void to java.lang.Integer
No. of Instances - 6
No. of Commits - 4
No. of Projects - {'alluxio', 'infinispan', 'ignite', 'byte-buddy'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Jdk
Mapping:
Cascading Type Change (Different)
userReportLostFile_result
to
createFile_result
FileDoesNotExistException
to
SuspectedFileSizeException
Cascading Type Change (Similar)
Void
to
Integer
AsyncMethodCallback<Void>
to
AsyncMethodCallback<Integer>
Add or Remove Method invocation
result.setEIsSet(true)
to
result.setSuccessIsSet(true)
Update Anonymous class
{ public void onComplete( Void o){ userReportLostFile_result result=new userReportLostFile_result(); try { fcall.sendResponse(fb,result,org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch ( Exception e) { LOGGER.error("Exception writing to internal frame buffer",e); } fb.close(); } public void onError( Exception e){ byte msgType=org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; userReportLostFile_result result=new userReportLostFile_result(); if (e instanceof FileDoesNotExistException) { result.e=(FileDoesNotExistException)e; result.setEIsSet(true); msg=result; } else { msgType=org.apache.thrift.protocol.TMessageType.EXCEPTION; msg=(org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR,e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch ( Exception ex) { LOGGER.error("Exception writing to internal frame buffer",ex); } fb.close(); } }
to
{ public void onComplete( Integer o){ createFile_result result=new createFile_result(); result.success=o; result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result,org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; } catch ( Exception e) { LOGGER.error("Exception writing to internal frame buffer",e); } fb.close(); } public void onError( Exception e){ byte msgType=org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; createFile_result result=new createFile_result(); if (e instanceof FileAlreadyExistException) { result.faee=(FileAlreadyExistException)e; result.setFaeeIsSet(true); msg=result; } else if (e instanceof BlockInfoException) { result.bie=(BlockInfoException)e; result.setBieIsSet(true); msg=result; } else if (e instanceof SuspectedFileSizeException) { result.sfse=(SuspectedFileSizeException)e; result.setSfseIsSet(true); msg=result; } else if (e instanceof TachyonException) { result.te=(TachyonException)e; result.setTeIsSet(true); msg=result; } else { msgType=org.apache.thrift.protocol.TMessageType.EXCEPTION; msg=(org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR,e.getMessage()); } try { fcall.sendResponse(fb,msg,msgType,seqid); return; } catch ( Exception ex) { LOGGER.error("Exception writing to internal frame buffer",ex); } fb.close(); } }