Update of /var/cvs/applications/resources/src/org/mmbase/servlet
In directory james.mmbase.org:/tmp/cvs-serv14591
Modified Files:
AttachmentServlet.java
Log Message:
generics
See also:
http://cvs.mmbase.org/viewcvs/applications/resources/src/org/mmbase/servlet
Index: AttachmentServlet.java
===================================================================
RCS file:
/var/cvs/applications/resources/src/org/mmbase/servlet/AttachmentServlet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- AttachmentServlet.java 25 Sep 2007 12:29:54 -0000 1.1
+++ AttachmentServlet.java 29 Sep 2008 16:32:41 -0000 1.2
@@ -17,7 +17,7 @@
* 'handle'. Also the fields 'filename', 'mimetype' and 'title' can be taken
into consideration by
* this servlet and preferably the node has also those fields.
*
- * @version $Id: AttachmentServlet.java,v 1.1 2007/09/25 12:29:54 michiel Exp $
+ * @version $Id: AttachmentServlet.java,v 1.2 2008/09/29 16:32:41 michiel Exp $
* @author Michiel Meeuwissen
* @since MMBase-1.6
* @see HandleServlet
@@ -30,8 +30,8 @@
return "Serves MMBase nodes as attachments";
}
- protected Map getAssociations() {
- Map a = super.getAssociations();
+ protected Map<String, Integer> getAssociations() {
+ Map<String, Integer> a = super.getAssociations();
a.put("attachments", 50); // Is very good in attachments (determines
mime-type
// starting with 'attachments'
builder fields),
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs