harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r823764 - /harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/theme/DefaultFileDialog.java
Date Sat, 10 Oct 2009 02:12:08 GMT
Author: ndbeyer
Date: Sat Oct 10 02:12:07 2009
New Revision: 823764

URL: http://svn.apache.org/viewvc?rev=823764&view=rev
Log:
remove unnecessary null check and add explicit imports

Modified:
    harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/theme/DefaultFileDialog.java

Modified: harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/theme/DefaultFileDialog.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/theme/DefaultFileDialog.java?rev=823764&r1=823763&r2=823764&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/theme/DefaultFileDialog.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/awt/src/main/java/common/org/apache/harmony/awt/theme/DefaultFileDialog.java
Sat Oct 10 02:12:07 2009
@@ -19,8 +19,21 @@
  */
 package org.apache.harmony.awt.theme;
 
-import java.awt.*;
-
+import java.awt.BorderLayout;
+import java.awt.Button;
+import java.awt.Canvas;
+import java.awt.Choice;
+import java.awt.Dimension;
+import java.awt.FileDialog;
+import java.awt.Graphics;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.Insets;
+import java.awt.Label;
+import java.awt.List;
+import java.awt.Panel;
+import java.awt.SystemColor;
+import java.awt.TextField;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 import java.awt.event.ItemEvent;
@@ -30,8 +43,6 @@
 import org.apache.harmony.awt.ChoiceStyle;
 import org.apache.harmony.awt.ComponentInternals;
 
-
-
 /**
  * DefaultFileDialog
  * Pure Java Implementation of FileDialog
@@ -182,8 +193,8 @@
     private void fillLists() {
         clearLists();
         updateFilter();
-        File curFolder = new File(path.getText());
-        if ((curFolder != null) && curFolder.isDirectory()) {
+        final File curFolder = new File(path.getText());
+        if (curFolder.isDirectory()) {
             File[] allFiles = curFolder.listFiles(fileDialog.getFilenameFilter());
             int count = allFiles.length;
             for (int i = 0; i < count; i++) {



Mime
View raw message