james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joac...@apache.org
Subject svn commit: r481875 - in /james/server/trunk/src: java/org/apache/james/mailboxmanager/impl/VirtualMailboxManagerFactory.java test/org/apache/james/mailboxmanager/util/UidToKeyConverterTest.java
Date Sun, 03 Dec 2006 20:30:33 GMT
Author: joachim
Date: Sun Dec  3 12:30:32 2006
New Revision: 481875

URL: http://svn.apache.org/viewvc?view=rev&rev=481875
Log:
fixed JDK 1.4 compliance

Modified:
    james/server/trunk/src/java/org/apache/james/mailboxmanager/impl/VirtualMailboxManagerFactory.java
    james/server/trunk/src/test/org/apache/james/mailboxmanager/util/UidToKeyConverterTest.java

Modified: james/server/trunk/src/java/org/apache/james/mailboxmanager/impl/VirtualMailboxManagerFactory.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/mailboxmanager/impl/VirtualMailboxManagerFactory.java?view=diff&rev=481875&r1=481874&r2=481875
==============================================================================
--- james/server/trunk/src/java/org/apache/james/mailboxmanager/impl/VirtualMailboxManagerFactory.java
(original)
+++ james/server/trunk/src/java/org/apache/james/mailboxmanager/impl/VirtualMailboxManagerFactory.java
Sun Dec  3 12:30:32 2006
@@ -72,7 +72,7 @@
             mailboxManagerFactories.add(mailboxManagerFactory);
             ContainerUtil.enableLogging(mailboxManagerFactory, getLogger()
                     .getChildLogger(
-                            mailboxManagerFactory.getClass().getSimpleName()));
+                            mailboxManagerFactory.getClass().getName()));
             ContainerUtil.configure(mailboxManagerFactory, targetConf);
             
             Configuration[] pointConfs = conf.getChildren("point");
@@ -110,7 +110,7 @@
         VirtualMailboxManager virtualMailboxManager = new VirtualMailboxManager();
         ContainerUtil.enableLogging(virtualMailboxManager, getLogger()
                 .getChildLogger(
-                        virtualMailboxManager.getClass().getSimpleName()));
+                        virtualMailboxManager.getClass().getName()));
         virtualMailboxManager.setMountMap(mountMap);
         virtualMailboxManager.setUser(user);
 

Modified: james/server/trunk/src/test/org/apache/james/mailboxmanager/util/UidToKeyConverterTest.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/test/org/apache/james/mailboxmanager/util/UidToKeyConverterTest.java?view=diff&rev=481875&r1=481874&r2=481875
==============================================================================
--- james/server/trunk/src/test/org/apache/james/mailboxmanager/util/UidToKeyConverterTest.java
(original)
+++ james/server/trunk/src/test/org/apache/james/mailboxmanager/util/UidToKeyConverterTest.java
Sun Dec  3 12:30:32 2006
@@ -38,9 +38,9 @@
     }
     
     public void testKeyToUidValid() {
-        assertEquals(Long.valueOf(3454),uidToKeyConverterImpl.toUid("JAMES-UID-KEY-(3454;123)"));
+        assertEquals(new Long(3454),uidToKeyConverterImpl.toUid("JAMES-UID-KEY-(3454;123)"));
         uidToKeyConverterImpl.setUidValidity(1);
-        assertEquals(Long.valueOf(2),uidToKeyConverterImpl.toUid("JAMES-UID-KEY-(2;1)"));
+        assertEquals(new Long(2),uidToKeyConverterImpl.toUid("JAMES-UID-KEY-(2;1)"));
     }
     
     public void testKeyToUidWrongUidValidity() {



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message