Changeset 7527
- Timestamp:
- Nov 7, 2018, 9:07:03 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.classpath
r7526 r7527 19 19 <classpathentry kind="lib" path="lib/dist/json-simple-1.1.1.jar"/> 20 20 <classpathentry kind="lib" path="lib/svn/svnant-1.4dev.jar"/> 21 <classpathentry kind="lib" path="lib/dist/commons-collections-3.1.jar"/>22 21 <classpathentry kind="lib" path="lib/dist/jdom-2.0.6.jar"/> 23 22 <classpathentry kind="lib" path="lib/dist/jcommon-1.0.23.jar"/> … … 35 34 <classpathentry kind="lib" path="lib/dist/httpcore-4.4.10.jar"/> 36 35 <classpathentry kind="lib" path="lib/dist/commons-email-1.5.jar"/> 36 <classpathentry kind="lib" path="lib/dist/commons-collections4-4.2.jar"/> 37 37 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> 38 38 <classpathentry kind="output" path="xbin"/> -
trunk/doc/3rd-party-components.txt
r7526 r7527 198 198 Jar files : javax-mail-1.5.3.jar 199 199 200 Apache Commons Collections 4 201 ---------------------------- 202 Package for working with collections. 203 204 More info : https://commons.apache.org/proper/commons-collections/ 205 Version : 4.2 206 License : Apache License 2.0 (apache.license-2.0.txt) 207 Jar files : commons-collections4-4.2.jar 200 208 201 209 jBCrypt … … 368 376 Version : 2.2 369 377 License : Apache License, Version 2.0 (yauaa-LICENSE.txt) 370 Files : yauaa-2.2.jar, snakeyaml-1.18.jar , commons-collections4-4.1.jar378 Files : yauaa-2.2.jar, snakeyaml-1.18.jar 371 379 commons-lang3-3.6.jar 372 380 -
trunk/src/clients/web/net/sf/basedb/clients/web/extensions/ServletWrapper.java
r7517 r7527 35 35 import javax.servlet.http.HttpServletResponse; 36 36 37 import org.apache.commons.collections .iterators.IteratorEnumeration;37 import org.apache.commons.collections4.iterators.IteratorEnumeration; 38 38 39 39 /** … … 116 116 } 117 117 118 @SuppressWarnings("unchecked")119 118 @Override 120 119 public Enumeration<String> getInitParameterNames() 121 120 { 122 return (Enumeration<String>)new IteratorEnumeration(parameters.keySet().iterator());121 return new IteratorEnumeration<String>(parameters.keySet().iterator()); 123 122 } 124 123 -
trunk/src/core/net/sf/basedb/core/Config.java
r5595 r7527 36 36 import java.nio.charset.Charset; 37 37 38 import org.apache.commons.collections .CollectionUtils;39 import org.apache.commons.collections .Predicate;38 import org.apache.commons.collections4.CollectionUtils; 39 import org.apache.commons.collections4.Predicate; 40 40 41 41 import net.sf.basedb.util.ComparableComparator; … … 139 139 { 140 140 final Pattern p = Pattern.compile(filter); 141 CollectionUtils.filter(tmp, new Predicate ()141 CollectionUtils.filter(tmp, new Predicate<String>() 142 142 { 143 143 @Override 144 public boolean evaluate( Objecto)144 public boolean evaluate(String o) 145 145 { 146 return !p.matcher( (String)o).matches() || commonCharsets.contains(o);146 return !p.matcher(o).matches() || commonCharsets.contains(o); 147 147 } 148 148 }); -
trunk/src/core/net/sf/basedb/core/ItemList.java
r6928 r7527 32 32 import java.util.TreeSet; 33 33 34 import org.apache.commons.collections .CollectionUtils;35 import org.apache.commons.collections .Predicate;34 import org.apache.commons.collections4.CollectionUtils; 35 import org.apache.commons.collections4.Predicate; 36 36 37 37 import net.sf.basedb.core.query.Expressions; … … 235 235 } 236 236 237 Predicate countFilter = new Predicate()237 Predicate<Integer> countFilter = new Predicate<Integer>() 238 238 { 239 239 @Override 240 public boolean evaluate( Object o)240 public boolean evaluate(Integer count) 241 241 { 242 int count = (Integer)o;243 242 return minCount <= count && count <= maxCount; 244 243 } -
trunk/src/core/net/sf/basedb/core/ReporterList.java
r7308 r7527 31 31 import java.util.Set; 32 32 33 import org.apache.commons.collections .CollectionUtils;34 import org.apache.commons.collections .Predicate;33 import org.apache.commons.collections4.CollectionUtils; 34 import org.apache.commons.collections4.Predicate; 35 35 36 36 import net.sf.basedb.core.data.ReporterListData; … … 204 204 } 205 205 CollectionUtils.filter(union.values(), 206 new Predicate ()206 new Predicate<Integer>() 207 207 { 208 208 @Override 209 public boolean evaluate( Object o)209 public boolean evaluate(Integer count) 210 210 { 211 int count = (Integer)o;212 211 return minCount <= count && count <= maxCount; 213 212 } -
trunk/src/core/net/sf/basedb/util/overview/OverviewUtil.java
r7005 r7527 31 31 import java.util.Set; 32 32 33 import org.apache.commons.collections .IteratorUtils;33 import org.apache.commons.collections4.IteratorUtils; 34 34 35 35 import net.sf.basedb.core.Annotatable; … … 210 210 (ExtensionsInvoker<ValidationRuleAction>)registry.useExtensions(new ClientContext(dc, overview), settings, "net.sf.basedb.util.overview.validationrule"); 211 211 212 List<ValidationRuleAction> xtRules = (List<ValidationRuleAction>)IteratorUtils.toList(invoker.iterator());212 List<ValidationRuleAction> xtRules = IteratorUtils.toList(invoker.iterator()); 213 213 if (xtRules != null && xtRules.size() > 0) 214 214 { -
trunk/src/core/net/sf/basedb/util/overview/validator/ExtensionNodeValidator.java
r6875 r7527 25 25 import java.util.List; 26 26 27 import org.apache.commons.collections .IteratorUtils;27 import org.apache.commons.collections4.IteratorUtils; 28 28 29 29 import net.sf.basedb.core.Application; … … 190 190 Registry registry = Application.getExtensionsManager().getRegistry(); 191 191 Settings settings = Application.getExtensionsManager().getSettings(); 192 ExtensionsInvoker< ?> invoker =registry.useExtensions(clientContext, settings, "net.sf.basedb.util.overview.validator");192 ExtensionsInvoker<NodeValidatorAction<I>> invoker = (ExtensionsInvoker<NodeValidatorAction<I>>)registry.useExtensions(clientContext, settings, "net.sf.basedb.util.overview.validator"); 193 193 194 194 xtValidators = IteratorUtils.toList(invoker.iterator()); -
trunk/src/core/net/sf/basedb/util/uri/ConnectionManagerUtil.java
r6875 r7527 26 26 import java.util.List; 27 27 28 import org.apache.commons.collections .IteratorUtils;28 import org.apache.commons.collections4.IteratorUtils; 29 29 30 30 import net.sf.basedb.core.Application; … … 66 66 @return A list with the factories 67 67 */ 68 @SuppressWarnings({ "unchecked", "rawtypes" })69 68 public static List<ConnectionManagerFactory> getFactories() 70 69 { 71 70 ExtensionsInvoker<ConnectionManagerFactory> invoker = getInvoker(null, null); 72 List list = IteratorUtils.toList(invoker.iterator(), Math.max(invoker.getNumExtensions(), 1));71 List<ConnectionManagerFactory> list = IteratorUtils.toList(invoker.iterator(), Math.max(invoker.getNumExtensions(), 1)); 73 72 return list; 74 73 }
Note: See TracChangeset
for help on using the changeset viewer.