From: markt Date: Sun, 16 Jan 2011 15:29:38 +0000 (+0000) Subject: Rename variables to start with lower case letter to make code easier to read X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7d14daa56b0daa12bd5352d816a7e01e1519974f;p=tomcat7.0 Rename variables to start with lower case letter to make code easier to read git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1059583 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/naming/factory/SendMailFactory.java b/java/org/apache/naming/factory/SendMailFactory.java index 63653bfcc..57e0d3571 100644 --- a/java/org/apache/naming/factory/SendMailFactory.java +++ b/java/org/apache/naming/factory/SendMailFactory.java @@ -80,14 +80,14 @@ public class SendMailFactory implements ObjectFactory "javax.mail.internet.MimePartDataSource"; @Override - public Object getObjectInstance(Object RefObj, Name Nm, Context Ctx, - Hashtable Env) throws Exception { - final Reference Ref = (Reference)RefObj; + public Object getObjectInstance(Object refObj, Name name, Context ctx, + Hashtable env) throws Exception { + final Reference ref = (Reference)refObj; // Creation of the DataSource is wrapped inside a doPrivileged // so that javamail can read its default properties without // throwing Security Exceptions - if (Ref.getClassName().equals(DataSourceClassName)) { + if (ref.getClassName().equals(DataSourceClassName)) { return AccessController.doPrivileged( new PrivilegedAction() { @@ -96,7 +96,7 @@ public class SendMailFactory implements ObjectFactory // set up the smtp session that will send the message Properties props = new Properties(); // enumeration of all refaddr - Enumeration list = Ref.getAll(); + Enumeration list = ref.getAll(); // current refaddr to be set RefAddr refaddr; // set transport to smtp @@ -111,7 +111,7 @@ public class SendMailFactory implements ObjectFactory MimeMessage message = new MimeMessage( Session.getInstance(props)); try { - String from = (String)Ref.get("mail.from").getContent(); + String from = (String)ref.get("mail.from").getContent(); message.setFrom(new InternetAddress(from)); message.setSubject(""); } catch (Exception e) {}