|
| 1 | +======== Search Information ======== |
| 2 | +Search: Multi-Objective Genetic Algorithm |
| 3 | +Generations: 100 |
| 4 | +Population Size: 50 |
| 5 | +Crossover Probability: 0.200000 |
| 6 | +Mutation Probability: 0.800000 |
| 7 | + |
| 8 | +======== Initial Metric Info ======== |
| 9 | +Fitness function 1 score: 0.000000 |
| 10 | +Fitness function 2 score: 0.000000 |
| 11 | + |
| 12 | +======== Applied Refactorings ======== |
| 13 | +Iteration 1: "Remove Method" applied at class ThreadPool to method addTask(org.apache.xmlrpc.util.ThreadPool.Task) |
| 14 | +Iteration 2: "Make Field Final" applied at class XmlRpcClientWorkerFactory to ParameterDeclaration pClient [in method XmlRpcClientWorkerFactory(org.apache.xmlrpc.client.XmlRpcClient)] |
| 15 | +Iteration 3: "Make Class Concrete" applied to class XmlRpcTransportFactoryImpl |
| 16 | +Iteration 4: "Make Class Final" applied to class StringParser |
| 17 | +Iteration 5: "Collapse Hierarchy" applied from all elements in XmlRpcLocalTransportFactory to XmlRpcTransportFactoryImpl |
| 18 | +Iteration 6: "Make Method Final" applied at class AtomicParser to method characters(char[],int,int) |
| 19 | +Iteration 7: "Increase Method Visibility" applied at class Util to method getSignatureType(java.lang.Class) from public to protected |
| 20 | +Iteration 8: "Make Class Final" applied to class XmlRpcClientRequestImpl |
| 21 | +Iteration 9: "Decrease Method Visibility" applied at class XmlRpcTransportImpl to method XmlRpcTransportImpl(org.apache.xmlrpc.client.XmlRpcClient) from protected to public |
| 22 | +Iteration 10: "Decrease Method Visibility" applied at class TypeFactoryImpl\1738171978\1236384105 to method getTimeZone() from protected to public |
| 23 | +Iteration 11: "Make Class Final" applied to class MapParser |
| 24 | +Iteration 12: "Decrease Method Visibility" applied at class XmlRpcWriter to method writeValue(java.lang.Object) from protected to public |
| 25 | +Iteration 13: "Increase Field Visibility" applied at class XmlRpcCommonsTransport to field method from protected to package |
| 26 | +Iteration 14: "Remove Method" applied at class XmlRpcServletServer\ServletStreamConnection to method getRequest() |
| 27 | +Iteration 15: "Make Field Final" applied at class BaseXmlWriterFactory to ParameterDeclaration pStream [in method getXmlWriter(org.apache.xmlrpc.common.XmlRpcStreamConfig,java.io.OutputStream)] |
| 28 | +Iteration 16: "Make Field Static" applied at class AtomicParser to field level |
| 29 | +Iteration 17: "Move Method Down" applied to method characters(char[],int,int) from AtomicParser to BigDecimalParser |
| 30 | +Iteration 18: "Move Method Up" applied to method write(org.xml.sax.ContentHandler,java.lang.Object) from StringSerializer to TypeSerializerImpl |
| 31 | +Iteration 19: "Decrease Method Visibility" applied at class XmlRpcStreamRequestConfig to method isGzipCompressing() from package to protected |
| 32 | +Iteration 20: "Remove Method" applied at class XmlRpcWorkerFactory to method getCurrentRequests() |
| 33 | +Iteration 21: "Make Field Static" applied at class XmlRpcRequestParser to field methodName |
| 34 | +Iteration 22: "Make Class Concrete" applied to class TypeSerializerImpl |
| 35 | +Iteration 23: "Decrease Field Visibility" applied at class XmlRpcController to field maxThreads from private to package |
| 36 | +Iteration 24: "Make Class Abstract" applied to class XmlRpcServer |
| 37 | +Iteration 25: "Decrease Method Visibility" applied at class ServerStreamConnection to method close() from package to protected |
| 38 | +Iteration 26: "Make Field Final" applied at class XmlRpcNoSuchHandlerException to ParameterDeclaration pMessage [in method XmlRpcNoSuchHandlerException(java.lang.String)] |
| 39 | +Iteration 27: "Make Method Final" applied at class I8Serializer to method write(org.xml.sax.ContentHandler,java.lang.Object) |
| 40 | +Iteration 28: "Move Method Down" applied to method writeRequest(org.apache.xmlrpc.client.XmlRpcStreamTransport.ReqWriter) from XmlRpcSunHttpTransport to XmlRpcSun14HttpTransport |
| 41 | +Iteration 29: "Make Field Static" applied at class DateSerializer to field format |
| 42 | +Iteration 30: "Decrease Method Visibility" applied at class XmlRpcStreamRequestProcessor to method execute(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig,org.apache.xmlrpc.common.ServerStreamConnection) from package to protected |
| 43 | +Iteration 31: "Increase Field Visibility" applied at class AbstractReflectiveHandlerMapping to field handlerMap from protected to package |
| 44 | +Iteration 32: "Move Method Down" applied to method getOutputStream(org.apache.xmlrpc.common.ServerStreamConnection,org.apache.xmlrpc.common.XmlRpcStreamRequestConfig,java.io.OutputStream) from XmlRpcHttpServer to ConnectionServer |
| 45 | +Iteration 33: "Move Method Up" applied to method isUsingByteArrayOutput(org.apache.xmlrpc.client.XmlRpcHttpClientConfig) from XmlRpcHttpTransport to XmlRpcStreamTransport |
| 46 | +Iteration 34: "Make Field Final" applied at class BooleanParser to ParameterDeclaration pResult [in method setResult(java.lang.String)] |
| 47 | +Iteration 35: "Remove Method" applied at class XmlRpcHttpRequestConfigImpl to method setConnectionTimeout(int) |
| 48 | +Iteration 36: "Increase Field Visibility" applied at class XmlRpcHttpTransport to field USER_AGENT from public to protected |
| 49 | +Iteration 37: "Increase Field Visibility" applied at class I8Serializer to field EX_I8_TAG from public to protected |
| 50 | +Iteration 38: "Decrease Method Visibility" applied at class XmlRpcStreamTransport to method getInputStream() from protected to public |
| 51 | +Iteration 39: "Decrease Method Visibility" applied at class MapParser to method addResult(java.lang.Object) from protected to public |
| 52 | +Iteration 40: "Decrease Method Visibility" applied at class XmlRpcStreamServer to method getRequest(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig,java.io.InputStream) from protected to public |
| 53 | +Iteration 41: "Move Method Down" applied to method setRequestHeader(java.lang.String,java.lang.String) from XmlRpcSunHttpTransport to XmlRpcSun14HttpTransport |
| 54 | +Iteration 42: "Make Class Abstract" applied to class XmlRpcLiteHttpTransportFactory |
| 55 | +Iteration 43: "Make Method Final" applied at class HttpUtil to method readLine(java.io.InputStream,byte[]) |
| 56 | +Iteration 44: "Remove Method" applied at class TypeFactoryImpl to method getController() |
| 57 | +Iteration 45: "Decrease Method Visibility" applied at class TypeConverter to method backConvert(java.lang.Object) from package to protected |
| 58 | +Iteration 46: "Decrease Method Visibility" applied at class TypeConverterFactory to method getTypeConverter(java.lang.Class) from package to protected |
| 59 | +Iteration 47: "Decrease Method Visibility" applied at class TypeSerializer to method write(org.xml.sax.ContentHandler,java.lang.Object) from package to protected |
| 60 | +Iteration 48: "Increase Field Visibility" applied at class JaxbSerializer to field JAXB_TAG from public to protected |
| 61 | +Iteration 49: "Make Method Static" applied at class LimitedInputStream to method markSupported() |
| 62 | +Iteration 50: "Make Class Final" applied to class XmlRpcInvocationException |
| 63 | +Iteration 51: "Move Method Up" applied to method executeAsync(org.apache.xmlrpc.XmlRpcRequest,org.apache.xmlrpc.client.AsyncCallback) from XmlRpcClient to XmlRpcController |
| 64 | +Iteration 52: "Decrease Method Visibility" applied at class XmlRpcStreamRequestProcessor to method execute(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig,org.apache.xmlrpc.common.ServerStreamConnection) from protected to public |
| 65 | +Iteration 53: "Make Field Final" applied at class ServletConnection to ParameterDeclaration t [in method run()] |
| 66 | +Iteration 54: "Remove Method" applied at class HttpServletRequestImpl to method getRequestURL() |
| 67 | +Iteration 55: "Decrease Field Visibility" applied at class RequestData to field success from private to package |
| 68 | +Iteration 56: "Make Method Non Static" applied at class Util to method getMethodHelp(java.lang.Class,java.lang.reflect.Method) |
| 69 | +Iteration 57: "Move Method Up" applied to method newURLConnection(java.net.URL) from XmlRpcSunHttpTransport to XmlRpcHttpTransport |
| 70 | +Iteration 58: "Make Field Final" applied at class TypeSerializer to ParameterDeclaration pHandler [in method write(org.xml.sax.ContentHandler,java.lang.Object)] |
| 71 | +Iteration 59: "Decrease Method Visibility" applied at class PropertyHandlerMapping to method newHandlerClass(java.lang.ClassLoader,java.lang.String) from protected to public |
| 72 | +Iteration 60: "Remove Method" applied at class PropertyHandlerMapping to method removeHandler(java.lang.String) |
| 73 | +Iteration 61: "Decrease Method Visibility" applied at class XmlRpcRequestParser to method addResult(java.lang.Object) from protected to public |
| 74 | +Iteration 62: "Decrease Method Visibility" applied at class ServerStreamConnection to method close() from protected to public |
| 75 | +Iteration 63: "Increase Field Visibility" applied at class AbstractReflectiveHandlerMapping to field handlerMap from package to private |
| 76 | +Iteration 64: "Increase Field Visibility" applied at class XmlRpcHttpTransport to field USER_AGENT from protected to package |
| 77 | +Iteration 65: "Increase Method Visibility" applied at class Util to method getSignatureType(java.lang.Class) from protected to package |
| 78 | +Iteration 66: "Decrease Field Visibility" applied at class XmlRpcController to field maxThreads from package to protected |
| 79 | +Iteration 67: "Increase Method Visibility" applied at class Util to method getSignatureType(java.lang.Class) from package to private |
| 80 | +Iteration 68: "Make Class Final" applied to class I8Serializer |
| 81 | +Iteration 69: "Make Field Final" applied at class XmlRpcClientDefaults to ParameterDeclaration t1 [in method newTransportFactory(org.apache.xmlrpc.client.XmlRpcClient)] |
| 82 | +Iteration 70: "Make Method Non Final" applied at class Connection to method toHTTPBytes(java.lang.String) |
| 83 | +Iteration 71: "Make Method Final" applied at class XmlRpcServerWorker to method getController() |
| 84 | +Iteration 72: "Make Class Abstract" applied to class WebServer |
| 85 | +Iteration 73: "Increase Method Visibility" applied at class TypeConverterFactoryImpl\ListTypeConverter to method newList(int) from protected to package |
| 86 | +Iteration 74: "Make Class Final" applied to class XmlRpcLoadException |
| 87 | +Iteration 75: "Decrease Method Visibility" applied at class XmlRpcTransportFactoryImpl to method XmlRpcTransportFactoryImpl(org.apache.xmlrpc.client.XmlRpcClient) from protected to public |
| 88 | +Iteration 76: "Make Method Final" applied at class XmlRpcTransportImpl to method getClient() |
| 89 | +Iteration 77: "Decrease Method Visibility" applied at class BaseXmlWriterFactory to method newXmlWriter() from protected to public |
| 90 | +Iteration 78: "Make Class Final" applied to class XmlRpcLocalTransport |
| 91 | +Iteration 79: "Make Class Non Final" applied to class I8Serializer |
| 92 | +Iteration 80: "Make Method Static" applied at class XmlRpcLocalTransport to method isExtensionType(java.lang.Object) |
| 93 | +Iteration 81: "Decrease Method Visibility" applied at class XmlRpcStreamConfig to method getEncoding() from package to protected |
| 94 | +Iteration 82: "Decrease Method Visibility" applied at class XmlRpcLiteHttpTransport to method sendRequestHeaders(java.io.OutputStream) from private to package |
| 95 | +Iteration 83: "Decrease Method Visibility" applied at class ObjectArrayParser to method addResult(java.lang.Object) from protected to public |
| 96 | +Iteration 84: "Decrease Method Visibility" applied at class LongParser to method setResult(java.lang.String) from protected to public |
| 97 | +Iteration 85: "Make Class Abstract" applied to class XmlRpcTransportFactoryImpl |
| 98 | + |
| 99 | +Time taken to refactor: 465.45s |
| 100 | + |
| 101 | +======== Final Metric Info ======== |
| 102 | +Fitness function 1 score: 0.255859 |
| 103 | +Fitness function 2 score: 0.823529 |
0 commit comments