diff options
author | Vitaly Takmazov | 2016-06-30 13:50:47 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-06-30 13:50:47 +0300 |
commit | be18339f67341c02a071eddde94d230384a40a41 (patch) | |
tree | 2e8a6fa79c01bdf1ca9697281b5ce998a1c1af6e /src/main/java/com/juick/rss/Utils.java | |
parent | 4d0d91d9cb408d0a323b18c1e5e609d74bdbba4c (diff) |
update deps and apply changes
Diffstat (limited to 'src/main/java/com/juick/rss/Utils.java')
-rw-r--r-- | src/main/java/com/juick/rss/Utils.java | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/src/main/java/com/juick/rss/Utils.java b/src/main/java/com/juick/rss/Utils.java index a6842fe1..036a5a6b 100644 --- a/src/main/java/com/juick/rss/Utils.java +++ b/src/main/java/com/juick/rss/Utils.java @@ -17,50 +17,12 @@ */ package com.juick.rss; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Statement; -import java.util.ArrayList; - /** * * @author ugnich */ public class Utils { - public static void finishSQL(ResultSet rs, Statement stmt) { - if (rs != null) { - try { - rs.close(); - } catch (SQLException e) { - } - } - if (stmt != null) { - try { - stmt.close(); - } catch (SQLException e) { - } - } - } - - public static String convertArray2String(ArrayList<Integer> mids) { - String q = ""; - for (int i = 0; i < mids.size(); i++) { - if (i > 0) { - q += ","; - } - q += mids.get(i); - } - return q; - } - - public static String encodeHTML(String str) { - String ret = str; - ret = ret.replaceAll("<", "<"); - ret = ret.replaceAll(">", ">"); - return str; - } - public static int parseInt(String str, int def) { int ret = def; if (str != null) { |