OSDN Git Service

コンパイラ警告の除去
authoryukihane <yukihane.feather@gmail.com>
Fri, 19 Aug 2011 23:14:56 +0000 (08:14 +0900)
committeryukihane <yukihane.feather@gmail.com>
Fri, 19 Aug 2011 23:14:56 +0000 (08:14 +0900)
frontend/src/yukihane/inqubus/gui/MainFrame.java
frontend/src/yukihane/inqubus/model/TargetsTableModel.java

index f7c6464..1841dbe 100644 (file)
@@ -460,7 +460,8 @@ private void idFieldFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_
             try {
                 Transferable transferable = support.getTransferable();
                 if (transferable.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {
-                    List<File> data = (List<File>) transferable.getTransferData(DataFlavor.javaFileListFlavor);
+                    @SuppressWarnings("unchecked")
+                    final List<File> data = (List<File>) transferable.getTransferData(DataFlavor.javaFileListFlavor);
                     Collection<Target> targets = Target.from(data);
                     targetModel.addTarget(targets);
                 } else if (transferable.isDataFlavorSupported(DataFlavor.stringFlavor)) {
@@ -484,6 +485,7 @@ private void idFieldFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_
     }
 
     private class TableTransferHandler extends DownloadListTransferHandler {
+        private static final long serialVersionUID = 1L;
 
         @Override
         public boolean canImport(TransferHandler.TransferSupport support) {
index c12133e..1adf80d 100644 (file)
@@ -10,6 +10,7 @@ import javax.swing.table.AbstractTableModel;
  * @author yuki
  */
 public class TargetsTableModel extends AbstractTableModel {
+    private static final long serialVersionUID = 1L;
 
     private final List<Target> targets = new ArrayList<Target>();
     private final String[] columnNames = new String[]{"動画", "コメント", "投コメ", "状態"};