java.util.Collections



API Populatity

406 Client projects

Project: java

Package: java.util

Related APIs
389 java.util.List
169 java.util.Set
131 java.util.Map
Project Activiti/Activiti in file ...g.activiti.engine.impl.db.DbSqlSessionFactory.java (2012-09-26)
@@ -13,7 +13,6 @@
 
 package org.activiti.engine.impl.db;
 
-import java.util.Collections;
 import java.util.HashMap;
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
@@ -77,7 +76,6 @@ public class DbSqlSessionFactory implements SessionFactory {
     addDatabaseSpecificStatement("postgres", "insertComment", "insertComment_postgres");
     addDatabaseSpecificStatement("postgres", "selectCommentsByTaskId", "selectCommentsByTaskId_postgres");
     addDatabaseSpecificStatement("postgres", "selectCommentsByProcessInstanceId", "selectCommentsByProcessInstanceId_postgres");
-    addDatabaseSpecificStatement("postgres", "selectHistoricVariableInstanceByQueryCriteria", "selectHistoricVariableInstanceByQueryCriteria_postgres");
         
     // oracle
     databaseSpecificLimitBeforeStatements.put("oracle", "select * from ( select a.*, ROWNUM rnum from (");
Project Graylog2/graylog2-server in file ...org.graylog2.utilities.date.NaturalDateParser.java (2014-11-28)
@@ -24,6 +24,7 @@ import org.joda.time.DateTime;
 import org.joda.time.DateTimeZone;
 import org.joda.time.format.DateTimeFormat;
 
+import java.util.Collections;
 import java.util.Date;
 import java.util.List;
 import java.util.Map;
@@ -40,6 +41,7 @@ public class NaturalDateParser {
         final List<DateGroup> groups = parser.parse(string);
         if (!groups.isEmpty()) {
             final List<Date> dates = groups.get(0).getDates();
+            Collections.sort(dates);
 
             if (dates.size() >= 1) {
                 from = dates.get(0);
Project JetBrains/intellij-community in file ...tellij.designer.designSurface.tools.PasteTool.java (2012-04-01)
@@ -17,8 +17,6 @@ package com.intellij.designer.designSurface.tools;
 
 import com.intellij.designer.designSurface.OperationContext;
 
-import java.util.Collections;
-
 /**
  * @author Alexander Lobas
  */
@@ -34,6 +32,7 @@ public class PasteTool extends AbstractCreationTool {
   public void activate() {
     super.activate();
     myContext.setType(OperationContext.PASTE);
+    myContext.setPasteFactory(myFactory);
 
     try {
       myContext.setComponents(myFactory.create());