[vlma-devel] commit: Avoid use of 'new String()'. (Adrien Grand )

git version control git at videolan.org
Sat Aug 2 18:53:24 CEST 2008


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Sat Aug  2 17:11:11 2008 +0200| [af7cd279db89c8a4e5d0a606fe6722c3b89c0260] | committer: Adrien Grand 

Avoid use of 'new String()'.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=af7cd279db89c8a4e5d0a606fe6722c3b89c0260
---

 .../web/media/MediaProgramRemoveController.java    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/vlma-webapp/src/main/java/org/videolan/vlma/web/media/MediaProgramRemoveController.java b/vlma-webapp/src/main/java/org/videolan/vlma/web/media/MediaProgramRemoveController.java
index 7fdc1de..ed486fa 100644
--- a/vlma-webapp/src/main/java/org/videolan/vlma/web/media/MediaProgramRemoveController.java
+++ b/vlma-webapp/src/main/java/org/videolan/vlma/web/media/MediaProgramRemoveController.java
@@ -96,7 +96,7 @@ public class MediaProgramRemoveController extends SimpleFormController {
         Media media = data.getMedia(mediaId);
 
         // Determine the success view with the media class
-        String successView = new String();
+        String successView = null;
         if (media.getClass() == FilesChannel.class) {
             successView = getSuccessViewFile();
         }



More information about the vlma-devel mailing list