diff options
author | Narayan Kamath <narayan@google.com> | 2015-03-17 10:19:45 +0000 |
---|---|---|
committer | Narayan Kamath <narayan@google.com> | 2015-03-17 10:22:14 +0000 |
commit | 1fdfadf00a468dd460dd25bf2e074cfb2a225a04 (patch) | |
tree | 8899737e8f37465a93799154c3a91a8f551390e7 /src/com/android/gallery3d | |
parent | 12eae246c5aaf836e9ceebe55117dff650bb2821 (diff) | |
download | android_packages_apps_Gallery2-1fdfadf00a468dd460dd25bf2e074cfb2a225a04.tar.gz android_packages_apps_Gallery2-1fdfadf00a468dd460dd25bf2e074cfb2a225a04.tar.bz2 android_packages_apps_Gallery2-1fdfadf00a468dd460dd25bf2e074cfb2a225a04.zip |
Use java.util.Date instead of java.sql.Date.
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
Diffstat (limited to 'src/com/android/gallery3d')
-rw-r--r-- | src/com/android/gallery3d/filtershow/tools/SaveImage.java | 2 | ||||
-rw-r--r-- | src/com/android/gallery3d/util/SaveVideoFileUtils.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/gallery3d/filtershow/tools/SaveImage.java b/src/com/android/gallery3d/filtershow/tools/SaveImage.java index 0c12fa4d9..17d698f15 100644 --- a/src/com/android/gallery3d/filtershow/tools/SaveImage.java +++ b/src/com/android/gallery3d/filtershow/tools/SaveImage.java @@ -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; /** diff --git a/src/com/android/gallery3d/util/SaveVideoFileUtils.java b/src/com/android/gallery3d/util/SaveVideoFileUtils.java index 10c41de90..bef75bac4 100644 --- a/src/com/android/gallery3d/util/SaveVideoFileUtils.java +++ b/src/com/android/gallery3d/util/SaveVideoFileUtils.java @@ -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 |