You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by pg...@apache.org on 2002/08/08 01:44:55 UTC
cvs commit: jakarta-james/src/java/org/apache/james/transport MatchLoader.java MailetLoader.java
pgoldstein 2002/08/07 16:44:55
Modified: src/java/org/apache/james/transport MatchLoader.java
MailetLoader.java
Log:
Part of the String=>StringBuffer changes. Includes some additional
commenting, formatting fixes, and wrapping of logging calls in log
level checks. Also converted equalsIgnoreCase paradigm as discussed on
mailing list. Locale issue for both toUpperCase() and toLowerCase() was
addressed as well.
Revision Changes Path
1.4 +13 -2 jakarta-james/src/java/org/apache/james/transport/MatchLoader.java
Index: MatchLoader.java
===================================================================
RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/transport/MatchLoader.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- MatchLoader.java 25 May 2002 17:17:08 -0000 1.3
+++ MatchLoader.java 7 Aug 2002 23:44:55 -0000 1.4
@@ -67,11 +67,22 @@
//do this so we loop through all the packages
}
}
- throw new ClassNotFoundException("Requested matcher not found: " + matchName + ". looked in " + matcherPackages.toString());
+ StringBuffer exceptionBuffer =
+ new StringBuffer(128)
+ .append("Requested matcher not found: ")
+ .append(matchName)
+ .append(". looked in ")
+ .append(matcherPackages.toString());
+ throw new ClassNotFoundException(exceptionBuffer.toString());
} catch (MessagingException me) {
throw me;
} catch (Exception e) {
- throw new MailetException("Could not load matcher (" + matchName + ")", e);
+ StringBuffer exceptionBuffer =
+ new StringBuffer(128)
+ .append("Could not load matcher (")
+ .append(matchName)
+ .append(")");
+ throw new MailetException(exceptionBuffer.toString(), e);
}
}
}
1.3 +13 -2 jakarta-james/src/java/org/apache/james/transport/MailetLoader.java
Index: MailetLoader.java
===================================================================
RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/transport/MailetLoader.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- MailetLoader.java 18 Jan 2002 02:48:37 -0000 1.2
+++ MailetLoader.java 7 Aug 2002 23:44:55 -0000 1.3
@@ -61,11 +61,22 @@
//do this so we loop through all the packages
}
}
- throw new ClassNotFoundException("Requested mailet not found: " + mailetName + ". looked in " + mailetPackages.toString());
+ StringBuffer exceptionBuffer =
+ new StringBuffer(128)
+ .append("Requested mailet not found: ")
+ .append(mailetName)
+ .append(". looked in ")
+ .append(mailetPackages.toString());
+ throw new ClassNotFoundException(exceptionBuffer.toString());
} catch (MessagingException me) {
throw me;
} catch (Exception e) {
- throw new MailetException("Could not load mailet (" + mailetName + ")", e);
+ StringBuffer exceptionBuffer =
+ new StringBuffer(128)
+ .append("Could not load mailet (")
+ .append(mailetName)
+ .append(")");
+ throw new MailetException(exceptionBuffer.toString(), e);
}
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>