package org.zaproxy.zap.extension.cmss;

import java.net.URL;
import java.util.ArrayList;

public class FingerPrintingThread extends Thread{
	private ArrayList<String> wtfpList = new ArrayList<String>();
	private ArrayList<String> resultList = new ArrayList<String>();
	private int POrAOption;
	private URL targetUrl;
    
	public FingerPrintingThread(URL targetUrl, ArrayList<String> wtfpList, int POrAOption){
    		this.wtfpList = wtfpList;
    		this.POrAOption = POrAOption;
    		this.targetUrl = targetUrl;
	}

	@Override
	public void run() {
		try {
			resultList = FastFingerprinter.filterResults(this.targetUrl, wtfpList, this.POrAOption);
			this.finalize();
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (Throwable e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public ArrayList<String> getFingerPrintingResult(){
		return this.resultList;
	}
}

@@ -668,29 +668,8 @@
 );%0D%0A
-%09%09%09this.finalize();%0D%0A
 %09%09%7D 

remove unnecessary call to finalize