Assignment2_1_Server_xmlrpc/src/handler/EmployeeHandler.java
@SuppressWarnings("unchecked")
	public Hashtable<String, Employee> deserializeFromDisk(String filePath) {
		Hashtable<String, Employee> ret = new Hashtable<String, Employee>();
		
		try (ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filePath))) {
			ret = (Hashtable<String, Employee>)ois.readObject();
		} catch (IOException e) {
			e.getMessage();
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
			e.getMessage();
		}
		
		return ret;
	}
// Supress Type-safety warning when casting from obj to Hashtable<String, Employee>
Supress Type-safety warning when casting from obj to Hashtable
Supress Type - safety warning when casting from obj to Hashtable
@SuppressWarnings("unchecked")
	public Hashtable<String, Employee> deserializeFromDisk(String filePath) {
		Hashtable<String, Employee> ret = new Hashtable<String, Employee>();
		try (ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filePath))) {
			ret = (Hashtable<String, Employee>)ois.readObject();
		} catch (IOException e) {
			e.getMessage();
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
			e.getMessage();
		}
		return ret;
	}
@ SuppressWarnings ( "unchecked" ) public Hashtable < String , Employee > deserializeFromDisk ( String filePath ) { Hashtable < String , Employee > ret = new Hashtable < String , Employee > ( ) ; try ( ObjectInputStream ois = new ObjectInputStream ( new FileInputStream ( filePath ) ) ) { ret = ( Hashtable < String , Employee > ) ois . readObject ( ) ; } catch ( IOException e ) { e . getMessage ( ) ; } catch ( ClassNotFoundException e ) { e . printStackTrace ( ) ; e . getMessage ( ) ; } return ret ; }
Supress Type-safety warning when casting from obj to Hashtable<String, Employee>
Supress Type - safety warning when casting from obj to Hashtable<String Employee >