From: Chris Koeritz Date: Fri, 26 Apr 2013 18:42:16 +0000 (-0400) Subject: cleanups X-Git-Tag: 2.140.90~998 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=4ab9c359ff2240db33ebae1388a54b2cc5995884;p=feisty_meow.git cleanups --- 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__)