noel        2003/05/31 17:02:49

  Modified:    src/java/org/apache/james/mailrepository
                        JDBCMailRepository.java
  Log:
  Allow initialization String members that are never again used to be garbage 
collected.
  
  Revision  Changes    Path
  1.44      +6 -5      
jakarta-james/src/java/org/apache/james/mailrepository/JDBCMailRepository.java
  
  Index: JDBCMailRepository.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-james/src/java/org/apache/james/mailrepository/JDBCMailRepository.java,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- JDBCMailRepository.java   7 May 2003 03:15:49 -0000       1.43
  +++ JDBCMailRepository.java   1 Jun 2003 00:02:49 -0000       1.44
  @@ -152,7 +152,7 @@
       /**
        * Destination URL for the repository.  See class description for more info
        */
  -    protected String destination;
  +//    protected String destination;
   
       /**
        * The table name parsed from the destination URL
  @@ -167,12 +167,12 @@
       /**
        * The name of the filestore to be used to store mail when configured to use 
dbfile mode.
        */
  -    protected String filestore;
  +//    protected String filestore;
   
       /**
        * The name of the SQL configuration file to be used to configure this 
repository.
        */
  -    protected String sqlFileName;
  +    private String sqlFileName;
   
       /**
        * The stream repository used in dbfile mode
  @@ -241,7 +241,7 @@
               getLogger().debug(this.getClass().getName() + ".configure()");
           }
   
  -        destination = conf.getAttribute("destinationURL");
  +        String destination = conf.getAttribute("destinationURL");
           // normalize the destination, to simplify processing.
           if ( ! destination.endsWith("/") ) {
               destination += "/";
  @@ -298,7 +298,7 @@
               getLogger().debug(logBuffer.toString());
           }
   
  -        filestore = conf.getChild("filestore").getValue(null);
  +        String filestore = conf.getChild("filestore").getValue(null);
           sqlFileName = conf.getChild("sqlFile").getValue();
           if (!sqlFileName.startsWith("file://")) {
               throw new ConfigurationException
  @@ -375,6 +375,7 @@
               File sqlFile = null;
               try {
                   sqlFile = AvalonContextUtilities.getFile(context, sqlFileName);
  +                sqlFileName = null;
               } catch (Exception e) {
                   getLogger().fatalError(e.getMessage(), e);
                   throw e;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to