Java [unchecked] unchecked case warning
问题 Ok, I've been looking around and done alot of google searching, but I still can't find a way to avoid this warning. Integer result = chooser.showOpenDialog(null); if (result.equals(0)) { String tempHolder = chooser.getSelectedFile().getPath(); filenameLoad = new File(tempHolder); filenameSave = filenameLoad; FileInputStream fis = null; ObjectInputStream in = null; try { fis = new FileInputStream(filenameLoad); in = new ObjectInputStream(fis);; } catch(IOException ex) { ex.printStackTrace(); }