diff options
author | Julian Kast <julian@livio.com> | 2020-03-05 10:25:07 -0500 |
---|---|---|
committer | Julian Kast <julian@livio.com> | 2020-03-05 10:25:07 -0500 |
commit | 091fab86d9c7f7f4f3c9999d0b8e6b5ca511007f (patch) | |
tree | 3e5f91ddc4b5a0208ebe8a5cbc2d5c0fecfe76e1 /android/sdl_android/src/main | |
parent | 823c495fb4a1c85ac533575a0f3bef0dc8e4e19e (diff) | |
download | sdl_android-091fab86d9c7f7f4f3c9999d0b8e6b5ca511007f.tar.gz |
Since overwrite is set to true by default, I removed it form constructors and added it to the top of the classes
Diffstat (limited to 'android/sdl_android/src/main')
2 files changed, 3 insertions, 11 deletions
diff --git a/android/sdl_android/src/main/java/com/smartdevicelink/managers/file/filetypes/SdlArtwork.java b/android/sdl_android/src/main/java/com/smartdevicelink/managers/file/filetypes/SdlArtwork.java index 0ff923346..ad837aae3 100644 --- a/android/sdl_android/src/main/java/com/smartdevicelink/managers/file/filetypes/SdlArtwork.java +++ b/android/sdl_android/src/main/java/com/smartdevicelink/managers/file/filetypes/SdlArtwork.java @@ -51,9 +51,7 @@ public class SdlArtwork extends SdlFile implements Cloneable{ /** * Creates a new instance of SdlArtwork */ - public SdlArtwork(){ - super(); - } + public SdlArtwork() {} /** * Creates a new instance of SdlArtwork diff --git a/android/sdl_android/src/main/java/com/smartdevicelink/managers/file/filetypes/SdlFile.java b/android/sdl_android/src/main/java/com/smartdevicelink/managers/file/filetypes/SdlFile.java index 54d006565..95861bb43 100644 --- a/android/sdl_android/src/main/java/com/smartdevicelink/managers/file/filetypes/SdlFile.java +++ b/android/sdl_android/src/main/java/com/smartdevicelink/managers/file/filetypes/SdlFile.java @@ -50,14 +50,12 @@ public class SdlFile{ private boolean persistentFile; private boolean isStaticIcon; // Overwrite property by default is set to true in SdlFile constructors indicating that a file can be overwritten - private boolean overwrite; + private boolean overwrite = true; /** * Creates a new instance of SdlFile */ - public SdlFile(){ - overwrite = true; - } + public SdlFile() { } /** * Creates a new instance of SdlFile @@ -71,7 +69,6 @@ public class SdlFile{ this.fileType = fileType; this.id = id; this.persistentFile = persistentFile; - overwrite = true; } /** @@ -86,7 +83,6 @@ public class SdlFile{ this.fileType = fileType; this.uri = uri; this.persistentFile = persistentFile; - overwrite = true; } /** @@ -101,7 +97,6 @@ public class SdlFile{ this.fileType = fileType; this.fileData = data; this.persistentFile = persistentFile; - overwrite = true; } /** @@ -113,7 +108,6 @@ public class SdlFile{ this.fileData = staticIconName.toString().getBytes(); this.persistentFile = false; this.isStaticIcon = true; - overwrite = true; } /** |