|
| 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 | +Fitness function 3 score: 0.000000 |
| 12 | + |
| 13 | +======== Applied Refactorings ======== |
| 14 | +Iteration 1: "Make Method Static" applied at class SerializableParser to method getResult() |
| 15 | +Iteration 2: "Make Class Abstract" applied to class WebServer |
| 16 | +Iteration 3: "Decrease Method Visibility" applied at class Connection\BadEncodingException to method BadEncodingException(org.apache.xmlrpc.webserver.RequestData,java.lang.String) from package to protected |
| 17 | +Iteration 4: "Make Field Static" applied at class ExtParser to field locator |
| 18 | +Iteration 5: "Decrease Method Visibility" applied at class ServerStreamConnection to method close() from package to protected |
| 19 | +Iteration 6: "Make Class Concrete" applied to class XmlRpcStreamServer |
| 20 | +Iteration 7: "Decrease Field Visibility" applied at class XmlRpcTransportFactoryImpl to field client from private to package |
| 21 | +Iteration 8: "Decrease Method Visibility" applied at class XmlRpcHttpRequestConfig to method getBasicUserName() from package to protected |
| 22 | +Iteration 9: "Increase Method Visibility" applied at class XmlRpcCommonsTransport to method newPostMethod(org.apache.xmlrpc.client.XmlRpcHttpClientConfig) from protected to package |
| 23 | +Iteration 10: "Decrease Method Visibility" applied at class XmlRpcServer to method getDefaultXmlRpcWorkerFactory() from protected to public |
| 24 | +Iteration 11: "Make Field Static" applied at class XmlRpcServletServer\ServletStreamConnection to field request |
| 25 | +Iteration 12: "Make Class Final" applied to class I1Serializer |
| 26 | +Iteration 13: "Decrease Method Visibility" applied at class CharSetXmlWriterFactory to method newXmlWriter() from protected to public |
| 27 | +Iteration 14: "Make Method Non Static" applied at class XmlRpcSystemImpl to method addSystemHandler(org.apache.xmlrpc.server.PropertyHandlerMapping) |
| 28 | +Iteration 15: "Make Class Final" applied to class BooleanSerializer |
| 29 | +Iteration 16: "Make Field Final" applied at class NullSerializer to ParameterDeclaration pHandler [in method write(org.xml.sax.ContentHandler,java.lang.Object)] |
| 30 | +Iteration 17: "Move Method Down" applied to method getOutputStream(org.apache.xmlrpc.common.ServerStreamConnection,org.apache.xmlrpc.common.XmlRpcStreamRequestConfig,java.io.OutputStream) from XmlRpcHttpServer to ConnectionServer |
| 31 | +Iteration 18: "Make Method Non Static" applied at class HttpServletResponseImpl to method getStatusMessage(int) |
| 32 | +Iteration 19: "Move Method Up" applied to method newSocket(boolean,java.lang.String,int) from XmlRpcLiteHttpTransport to XmlRpcHttpTransport |
| 33 | +Iteration 20: "Make Class Concrete" applied to class XmlRpcTransportFactoryImpl |
| 34 | +Iteration 21: "Make Field Final" applied at class HttpServletRequestImpl to LocalVariableDeclaration v [in method HttpServletRequestImpl(java.net.Socket)] |
| 35 | +Iteration 22: "Decrease Method Visibility" applied at class Connection\RequestException to method RequestException(org.apache.xmlrpc.webserver.RequestData,java.lang.String) from package to protected |
| 36 | +Iteration 23: "Make Method Final" applied at class BigIntegerParser to method setResult(java.lang.String) |
| 37 | +Iteration 24: "Make Method Static" applied at class WebServer to method newXmlRpcStreamServer() |
| 38 | +Iteration 25: "Make Method Final" applied at class TypeSerializerImpl to method write(org.xml.sax.ContentHandler,java.lang.String,char[]) |
| 39 | +Iteration 26: "Make Field Non Final" applied at class DefaultXMLWriterFactory to FieldDeclaration factory |
| 40 | +Iteration 27: "Decrease Method Visibility" applied at class WebServer to method createServerSocket(int,int,java.net.InetAddress) from protected to public |
| 41 | +Iteration 28: "Make Method Final" applied at class XmlRpcWriter to method writeValue(java.lang.Object) |
| 42 | +Iteration 29: "Make Field Non Static" applied at class XmlRpcNotAuthorizedException to field serialVersionUID |
| 43 | +Iteration 30: "Increase Field Visibility" applied at class I1Serializer to field EX_I1_TAG from public to protected |
| 44 | +Iteration 31: "Make Field Final" applied at class XmlRpcListableHandlerMapping to ParameterDeclaration pHandlerName [in method getMethodSignature(java.lang.String)] |
| 45 | +Iteration 32: "Increase Method Visibility" applied at class AbstractReflectiveHandlerMapping to method registerPublicMethods(java.lang.String,java.lang.Class) from protected to package |
| 46 | +Iteration 33: "Decrease Field Visibility" applied at class HttpServletRequestImpl to field contentBytesRemaining from private to package |
| 47 | +Iteration 34: "Decrease Method Visibility" applied at class XmlRpcClientWorkerFactory to method newWorker() from protected to public |
| 48 | +Iteration 35: "Decrease Method Visibility" applied at class HttpServletResponseImpl to method getHttpHeaders(java.lang.Integer) from package to protected |
| 49 | +Iteration 36: "Increase Field Visibility" applied at class I1Serializer to field EX_I1_TAG from protected to package |
| 50 | +Iteration 37: "Make Method Non Final" applied at class TypeSerializerImpl to method write(org.xml.sax.ContentHandler,java.lang.String,char[]) |
| 51 | +Iteration 38: "Make Method Final" applied at class BigIntegerSerializer to method write(org.xml.sax.ContentHandler,java.lang.Object) |
| 52 | +Iteration 39: "Remove Method" applied at class Connection\RequestException to method getRequestData() |
| 53 | +Iteration 40: "Make Field Final" applied at class NodeParser to ParameterDeclaration e [in method getExtHandler()] |
| 54 | +Iteration 41: "Decrease Method Visibility" applied at class XmlRpcStreamTransport to method isResponseGzipCompressed(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig) from protected to public |
| 55 | +Iteration 42: "Decrease Method Visibility" applied at class NullParser to method setResult(java.lang.String) from protected to public |
| 56 | +Iteration 43: "Make Class Final" applied to class I4Parser |
| 57 | +Iteration 44: "Decrease Method Visibility" applied at class XmlRpcResponseParser to method addResult(java.lang.Object) from protected to public |
| 58 | +Iteration 45: "Decrease Method Visibility" applied at class XmlRpcCommonsTransport to method isResponseGzipCompressed(org.apache.xmlrpc.common.XmlRpcStreamRequestConfig) from protected to public |
| 59 | +Iteration 46: "Make Class Abstract" applied to class XmlRpcLiteHttpTransportFactory |
| 60 | +Iteration 47: "Make Field Final" applied at class XmlRpcLocalTransport to ParameterDeclaration pObject [in method isExtensionType(java.lang.Object)] |
| 61 | +Iteration 48: "Decrease Method Visibility" applied at class BaseXmlWriterFactory to method newXmlWriter() from protected to public |
| 62 | +Iteration 49: "Decrease Field Visibility" applied at class XmlRpcClientWorker to field factory from private to package |
| 63 | +Iteration 50: "Make Field Final" applied at class XmlRpcHandler to ParameterDeclaration pRequest [in method execute(org.apache.xmlrpc.XmlRpcRequest)] |
| 64 | +Iteration 51: "Make Class Abstract" applied to class XmlRpcServer |
| 65 | +Iteration 52: "Increase Field Visibility" applied at class JaxbSerializer to field JAXB_TAG from public to protected |
| 66 | +Iteration 53: "Decrease Method Visibility" applied at class I4Parser to method setResult(java.lang.String) from protected to public |
| 67 | + |
| 68 | +Time taken to refactor: 299.01s |
| 69 | + |
| 70 | +======== Final Metric Info ======== |
| 71 | +Fitness function 1 score: 0.122657 |
| 72 | +Fitness function 2 score: 0.169811 |
| 73 | +Fitness function 3 score: 0.867925 |
| 74 | + |
| 75 | +This is the ideal solution in the top rank of solutions |
0 commit comments