OSDN Git Service

Use java.util.Date instead of java.sql.Date.
authorNarayan Kamath <narayan@google.com>
Tue, 17 Mar 2015 10:19:45 +0000 (10:19 +0000)
committerNarayan Kamath <narayan@google.com>
Tue, 17 Mar 2015 10:22:14 +0000 (10:22 +0000)
java.sql.Date was being used in a context unrelated to SQL and
there's no good reason to use it this way. Note that the claim in
java.sql.Date's javadoc that it normalizes times to day boundaries
is a lie.

Change-Id: Ibb17d3fe22af6c2a41abd51b2158d6af000ecbbf

src/com/android/gallery3d/filtershow/tools/SaveImage.java
src/com/android/gallery3d/util/SaveVideoFileUtils.java

index 0c12fa4..17d698f 100644 (file)
@@ -49,8 +49,8 @@ import java.io.FilenameFilter;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.OutputStream;
-import java.sql.Date;
 import java.text.SimpleDateFormat;
+import java.util.Date;
 import java.util.TimeZone;
 
 /**
index 10c41de..bef75ba 100644 (file)
@@ -28,8 +28,8 @@ import android.provider.MediaStore.Video.VideoColumns;
 import com.android.gallery3d.filtershow.tools.SaveImage.ContentResolverQueryCallback;
 
 import java.io.File;
-import java.sql.Date;
 import java.text.SimpleDateFormat;
+import java.util.Date;
 
 public class SaveVideoFileUtils {
     // This function can decide which folder to save the video file, and generate