cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: Fix compiler/lint warnings
Date Mon, 09 Sep 2013 20:22:30 GMT
Updated Branches:
  refs/heads/dev 93c652e9c -> 4d24eeee1


Fix compiler/lint warnings


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/4d24eeee
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/4d24eeee
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/4d24eeee

Branch: refs/heads/dev
Commit: 4d24eeee15c27fc75d32b6de1981909dbf743cd5
Parents: 93c652e
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Mon Sep 9 16:22:16 2013 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Mon Sep 9 16:22:16 2013 -0400

----------------------------------------------------------------------
 src/android/DirectoryManager.java               | 5 ++---
 src/android/EncodingException.java              | 1 +
 src/android/FileExistsException.java            | 1 +
 src/android/FileHelper.java                     | 4 ----
 src/android/InvalidModificationException.java   | 1 +
 src/android/NoModificationAllowedException.java | 1 +
 src/android/TypeMismatchException.java          | 1 +
 7 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/4d24eeee/src/android/DirectoryManager.java
----------------------------------------------------------------------
diff --git a/src/android/DirectoryManager.java b/src/android/DirectoryManager.java
index b201811..c2d1278 100644
--- a/src/android/DirectoryManager.java
+++ b/src/android/DirectoryManager.java
@@ -18,12 +18,11 @@
 */
 package org.apache.cordova.file;
 
-import java.io.File;
-
-import android.content.Context;
 import android.os.Environment;
 import android.os.StatFs;
 
+import java.io.File;
+
 /**
  * This class provides file directory utilities.
  * All file operations are performed on the SD card.

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/4d24eeee/src/android/EncodingException.java
----------------------------------------------------------------------
diff --git a/src/android/EncodingException.java b/src/android/EncodingException.java
index a32e18e..e9e1653 100644
--- a/src/android/EncodingException.java
+++ b/src/android/EncodingException.java
@@ -19,6 +19,7 @@
 
 package org.apache.cordova.file;
 
+@SuppressWarnings("serial")
 public class EncodingException extends Exception {
 
     public EncodingException(String message) {

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/4d24eeee/src/android/FileExistsException.java
----------------------------------------------------------------------
diff --git a/src/android/FileExistsException.java b/src/android/FileExistsException.java
index 18aa7ea..5c4d83d 100644
--- a/src/android/FileExistsException.java
+++ b/src/android/FileExistsException.java
@@ -19,6 +19,7 @@
 
 package org.apache.cordova.file;
 
+@SuppressWarnings("serial")
 public class FileExistsException extends Exception {
 
     public FileExistsException(String msg) {

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/4d24eeee/src/android/FileHelper.java
----------------------------------------------------------------------
diff --git a/src/android/FileHelper.java b/src/android/FileHelper.java
index b266444..9e8b626 100644
--- a/src/android/FileHelper.java
+++ b/src/android/FileHelper.java
@@ -26,12 +26,8 @@ import org.apache.cordova.CordovaInterface;
 import org.apache.cordova.LOG;
 
 import java.io.FileInputStream;
-import java.io.FileNotFoundException;
-import java.io.FileOutputStream;
 import java.io.IOException;
 import java.io.InputStream;
-import java.io.OutputStream;
-import java.nio.charset.Charset;
 import java.util.Locale;
 
 public class FileHelper {

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/4d24eeee/src/android/InvalidModificationException.java
----------------------------------------------------------------------
diff --git a/src/android/InvalidModificationException.java b/src/android/InvalidModificationException.java
index aebab4d..8f6bec5 100644
--- a/src/android/InvalidModificationException.java
+++ b/src/android/InvalidModificationException.java
@@ -20,6 +20,7 @@
 
 package org.apache.cordova.file;
 
+@SuppressWarnings("serial")
 public class InvalidModificationException extends Exception {
 
     public InvalidModificationException(String message) {

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/4d24eeee/src/android/NoModificationAllowedException.java
----------------------------------------------------------------------
diff --git a/src/android/NoModificationAllowedException.java b/src/android/NoModificationAllowedException.java
index 8cae115..627eafb 100644
--- a/src/android/NoModificationAllowedException.java
+++ b/src/android/NoModificationAllowedException.java
@@ -19,6 +19,7 @@
 
 package org.apache.cordova.file;
 
+@SuppressWarnings("serial")
 public class NoModificationAllowedException extends Exception {
 
     public NoModificationAllowedException(String message) {

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/4d24eeee/src/android/TypeMismatchException.java
----------------------------------------------------------------------
diff --git a/src/android/TypeMismatchException.java b/src/android/TypeMismatchException.java
index 0ea5993..1315f9a 100644
--- a/src/android/TypeMismatchException.java
+++ b/src/android/TypeMismatchException.java
@@ -20,6 +20,7 @@
 
 package org.apache.cordova.file;
 
+@SuppressWarnings("serial")
 public class TypeMismatchException extends Exception {
 
     public TypeMismatchException(String message) {


Mime
View raw message