MCPcopy Create free account
hub / github.com/BeichenDream/InjectJDBC / eq

Method eq

src/com/abc/Main.java:149–163  ·  view source on GitHub ↗
(String url,String properties)

Source from the content-addressed store, hash-verified

147 }
148 }
149 private static boolean eq(String url,String properties) throws Throwable{
150 if (dbConnMap.containsKey(url)) {
151 String valueProperties=(String) dbConnMap.get(url);
152 if (valueProperties.indexOf(properties)!=-1) {
153 return true;
154 }else {
155 if (valueProperties.length()>2000) {
156 valueProperties="";
157 }
158 dbConnMap.put(url, valueProperties+"\t"+properties);
159 return true;
160 }
161 }
162 return false;
163 }
164
165 public static void add(String url, Properties info) {
166 try {

Callers 1

addMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected