java.util.Collections



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());
Project JetBrains/intellij-community in file ...e/LocalVcs.src.com.intellij.localvcs.LocalVcs.java (2006-11-30)
@@ -2,6 +2,7 @@ package com.intellij.localvcs;
 
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Collections;
 
 public class LocalVcs {
   private Storage myStorage;
@@ -105,6 +106,7 @@ public class LocalVcs {
       result.add(new Label(e, cl, cs, myRoot));
     }
 
+    Collections.reverse(result);    
     return result;
   }
 }
Project JetBrains/intellij-community in file ...s.MavenArtifactCoordinatesArtifactIdConverter.java (2009-08-07)
@@ -6,6 +6,7 @@ import org.jetbrains.idea.maven.indices.MavenProjectIndicesManager;
 import org.jetbrains.idea.maven.project.MavenId;
 
 import java.util.Set;
+import java.util.Collections;
 
 public class MavenArtifactCoordinatesArtifactIdConverter extends MavenArtifactCoordinatesConverter {
   @Override
@@ -16,6 +17,7 @@ public class MavenArtifactCoordinatesArtifactIdConverter extends MavenArtifactCo
 
   @Override
   protected Set<String> doGetVariants(MavenId id, MavenProjectIndicesManager manager) {
+    if (StringUtil.isEmptyOrSpaces(id.getGroupId())) return Collections.emptySet();
     return manager.getArtifactIds(id.getGroupId());
   }
 }