From 4ab9c359ff2240db33ebae1388a54b2cc5995884 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Fri, 26 Apr 2013 14:42:16 -0400 Subject: [PATCH] cleanups --- .../org/feistymeow/dragdrop/dragdrop_list_test.java | 10 +++++++--- nucleus/library/versions/version_checker.cpp | 2 -- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/kona/src/org/feistymeow/dragdrop/dragdrop_list_test.java b/kona/src/org/feistymeow/dragdrop/dragdrop_list_test.java index 57d4adbd..2b8dd8ae 100644 --- a/kona/src/org/feistymeow/dragdrop/dragdrop_list_test.java +++ b/kona/src/org/feistymeow/dragdrop/dragdrop_list_test.java @@ -28,13 +28,14 @@ public class dragdrop_list_test extends JFrame implements ListSelectionListener private JTextField fileName; static private Log logger = LogFactory.getLog(dragdrop_list_test.DraggableDroppableList.class); + @SuppressWarnings({ "rawtypes", "unchecked" }) public dragdrop_list_test(String startPath) { super("dragdrop_test"); // Create the list and put it in a scroll pane list = new DraggableDroppableList(); - DefaultListModel listModel = (DefaultListModel) list.getModel(); + DefaultListModel listModel = (DefaultListModel) list.getModel(); list.setCellRenderer(new CustomCellRenderer()); list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); list.setSelectedIndex(0); @@ -95,8 +96,10 @@ public class dragdrop_list_test extends JFrame implements ListSelectionListener return hashtable; } - public class DraggableDroppableList extends JList implements IDragonDropDataProvider + @SuppressWarnings("rawtypes") + public class DraggableDroppableList extends JList implements IDragonDropDataProvider { + @SuppressWarnings("unchecked") public DraggableDroppableList() { setModel(new DefaultListModel()); @@ -130,7 +133,8 @@ public class dragdrop_list_test extends JFrame implements ListSelectionListener } } - public class CustomCellRenderer implements ListCellRenderer + @SuppressWarnings("rawtypes") + public class CustomCellRenderer implements ListCellRenderer { DefaultListCellRenderer listCellRenderer = new DefaultListCellRenderer(); diff --git a/nucleus/library/versions/version_checker.cpp b/nucleus/library/versions/version_checker.cpp index 98a77c80..88788517 100644 --- a/nucleus/library/versions/version_checker.cpp +++ b/nucleus/library/versions/version_checker.cpp @@ -110,7 +110,6 @@ void *version_checker::get_handle(const astring &library_file_name) #ifdef __WIN32__ return GetModuleHandle(to_unicode_temp(library_file_name)); #else -//hmmm: there really isn't this concept on OSes that i'm aware of. if (library_file_name.t()) return NIL; else return NIL; #endif } @@ -118,7 +117,6 @@ void *version_checker::get_handle(const astring &library_file_name) astring version_checker::module_name(const void *module_handle) { #ifdef __UNIX__ -//hmmm: implement module name for linux if that makes sense. if (module_handle) {} return application_configuration::application_name(); #elif defined(__WIN32__) -- 2.34.1