Permalink
Browse files

[#1572] added javadoc explaining conditional formatting

  • Loading branch information...
Notalifeform committed Feb 9, 2013
1 parent 932da8f commit 52f40e90114858f7714ae7a5a06c5fd63e8376f6
Showing with 5 additions and 0 deletions.
  1. +5 −0 framework/src/play/mvc/Mailer.java
@@ -28,6 +28,11 @@
protected static ThreadLocal<HashMap<String, Object>> infos = new ThreadLocal<HashMap<String, Object>>();
+ /**
+ * Set subject of mail, optionally providing formatting arguments
+ * @param subject plain String or formatted string - interpreted as formatted string only if aguments are provided
+ * @param args optional arguments for formatting subject
+ */
public static void setSubject(String subject, Object... args) {
HashMap<String, Object> map = infos.get();
if (map == null) {

0 comments on commit 52f40e9

Please sign in to comment.