diff options
author | Vitaly Takmazov | 2016-01-10 18:54:05 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-01-10 18:54:05 +0300 |
commit | ee86970fcae9878af0adcad00cf5333647b8babf (patch) | |
tree | 60c303f317236c2caab896173fafdaff1eebb115 /src/main/java/com/juick/api/PM.java | |
parent | 9eba4bda6dce22fb37d9156a5291f2cee3243361 (diff) |
refactoring
Diffstat (limited to 'src/main/java/com/juick/api/PM.java')
-rw-r--r-- | src/main/java/com/juick/api/PM.java | 3 |
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); |