aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/api/PM.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-01-10 18:54:05 +0300
committerGravatar Vitaly Takmazov2016-01-10 18:54:05 +0300
commitee86970fcae9878af0adcad00cf5333647b8babf (patch)
tree60c303f317236c2caab896173fafdaff1eebb115 /src/main/java/com/juick/api/PM.java
parent9eba4bda6dce22fb37d9156a5291f2cee3243361 (diff)
refactoring
Diffstat (limited to 'src/main/java/com/juick/api/PM.java')
-rw-r--r--src/main/java/com/juick/api/PM.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/juick/api/PM.java b/src/main/java/com/juick/api/PM.java
index ffcd155a..f22a4add 100644
--- a/src/main/java/com/juick/api/PM.java
+++ b/src/main/java/com/juick/api/PM.java
@@ -10,6 +10,7 @@ import com.juick.xmpp.extensions.JuickMessage;
import java.io.IOException;
import java.sql.Connection;
import java.util.ArrayList;
+import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -40,7 +41,7 @@ public class PM {
return;
}
- ArrayList<com.juick.Message> msgs = PMQueries.getPMMessages(sql, vuid, uid);
+ List<com.juick.Message> msgs = PMQueries.getPMMessages(sql, vuid, uid);
if (msgs != null && !msgs.isEmpty()) {
String json = messageSerializer.serializeList(msgs);
Main.replyJSON(request, response, json);