Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 201936
Collapse All | Expand All

(-)src.import/org/eclipse/hyades/logging/parsers/importer/ParserWrapper.java (-1 / +5 lines)
Lines 18-23 Link Here
18
import java.io.InputStream;
18
import java.io.InputStream;
19
import java.lang.reflect.Method;
19
import java.lang.reflect.Method;
20
import java.util.Hashtable;
20
import java.util.Hashtable;
21
import java.util.Random;
21
22
22
import javax.xml.parsers.DocumentBuilderFactory;
23
import javax.xml.parsers.DocumentBuilderFactory;
23
import javax.xml.parsers.ParserConfigurationException;
24
import javax.xml.parsers.ParserConfigurationException;
Lines 72-77 Link Here
72
	// Hash table to store all active loggers
73
	// Hash table to store all active loggers
73
	protected static Hashtable activeWrappers = new Hashtable();
74
	protected static Hashtable activeWrappers = new Hashtable();
74
	
75
	
76
	// Random number generator for the key
77
	protected static Random _randomGen = new Random();
78
	
75
	/**
79
	/**
76
	 * Default constructor. Classes that extend ParserWrapper must
80
	 * Default constructor. Classes that extend ParserWrapper must
77
	 * override this constructor with one that calls super(); and
81
	 * override this constructor with one that calls super(); and
Lines 83-89 Link Here
83
	 */
87
	 */
84
	public ParserWrapper() {
88
	public ParserWrapper() {
85
		// Generate a key for this instance
89
		// Generate a key for this instance
86
		key = String.valueOf(System.currentTimeMillis());
90
		key = String.valueOf(System.currentTimeMillis()) + "_" + String.valueOf(_randomGen.nextLong());
87
		adapter = new Adapter();
91
		adapter = new Adapter();
88
92
89
		currentPlugin = "org.eclipse.hyades.logging.parsers";
93
		currentPlugin = "org.eclipse.hyades.logging.parsers";

Return to bug 201936