/** * Create an instance of {@link ClassInspectionResponse } * */ public ClassInspectionResponse createClassInspectionResponse() { return new ClassInspectionResponse(); }
public Response inspectClass(ClassInspectionRequest request) throws Exception { ClassInspectionResponse response = new ClassInspectionResponse(); ClassInspectionService classInspectionService = new ClassInspectionService(); c = classInspectionService.inspectClass(request.getClassName(), request.getClasspath()); response.setJavaClass(c); } catch (Exception e) { logger.error("Error inspecting class with classpath: " + e.getMessage(), e); response.setErrorMessage(e.getMessage()); } finally { classInspectionService = null; response.setExecutionTime(System.currentTimeMillis() - startTime);
public int hashCode() { int currentHashCode = 1; { currentHashCode = (currentHashCode* 31); JavaClass theJavaClass; theJavaClass = this.getJavaClass(); if (this.javaClass!= null) { currentHashCode += theJavaClass.hashCode(); } } { currentHashCode = (currentHashCode* 31); String theErrorMessage; theErrorMessage = this.getErrorMessage(); if (this.errorMessage!= null) { currentHashCode += theErrorMessage.hashCode(); } } { currentHashCode = (currentHashCode* 31); Long theExecutionTime; theExecutionTime = this.getExecutionTime(); if (this.executionTime!= null) { currentHashCode += theExecutionTime.hashCode(); } } return currentHashCode; }
leftJavaClass = this.getJavaClass(); JavaClass rightJavaClass; rightJavaClass = that.getJavaClass(); if (this.javaClass!= null) { if (that.javaClass!= null) { leftErrorMessage = this.getErrorMessage(); String rightErrorMessage; rightErrorMessage = that.getErrorMessage(); if (this.errorMessage!= null) { if (that.errorMessage!= null) { leftExecutionTime = this.getExecutionTime(); Long rightExecutionTime; rightExecutionTime = that.getExecutionTime(); if (this.executionTime!= null) { if (that.executionTime!= null) {