Fix example so it compiles
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/fileupload/trunk@1537850 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 974f97f..c780800 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -48,6 +48,9 @@
When deserializing DiskFileItems ensure that the repository location, if
any, is a valid one.
</action>
+ <action dev="markt" type="fix">
+ Correct example in usage documentation so it compiles.
+ </action>
</release>
<release version="1.3" description="maintenance release, JDK1.5 update" date="2013-03-27">
diff --git a/src/site/xdoc/using.xml b/src/site/xdoc/using.xml
index 8be690f..8e2113b 100644
--- a/src/site/xdoc/using.xml
+++ b/src/site/xdoc/using.xml
@@ -141,7 +141,7 @@
Handling a request in this scenario couldn't be much simpler:
</p>
<source><![CDATA[// Create a factory for disk-based file items
-FileItemFactory factory = new DiskFileItemFactory();
+DiskFileItemFactory factory = new DiskFileItemFactory();
// Configure a repository (to ensure a secure temp location is used)
ServletContext servletContext = this.getServletConfig().getServletContext();