Skip to content

Commit

Permalink
for reindex for all index provider for next release, because of value…
Browse files Browse the repository at this point in the history
… contract violations #737
  • Loading branch information
Haehnchen committed May 28, 2016
1 parent b32c976 commit 60c81ca
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package fr.adrienbrault.idea.symfony2plugin.stubs.indexes;

import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import com.intellij.patterns.PlatformPatterns;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
Expand All @@ -20,8 +18,6 @@
import com.jetbrains.php.lang.psi.elements.*;
import com.jetbrains.php.lang.psi.stubs.indexes.PhpConstantNameIndex;
import fr.adrienbrault.idea.symfony2plugin.Symfony2ProjectComponent;
import fr.adrienbrault.idea.symfony2plugin.routing.dict.JsonRoute;
import fr.adrienbrault.idea.symfony2plugin.routing.dict.RouteInterface;
import fr.adrienbrault.idea.symfony2plugin.stubs.dict.StubIndexedRoute;
import fr.adrienbrault.idea.symfony2plugin.stubs.indexes.externalizer.ObjectStreamDataExternalizer;
import fr.adrienbrault.idea.symfony2plugin.util.AnnotationBackportUtil;
Expand All @@ -31,9 +27,6 @@
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
Expand All @@ -42,7 +35,7 @@

public class AnnotationRoutesStubIndex extends FileBasedIndexExtension<String, StubIndexedRoute> {

public static final ID<String, StubIndexedRoute> KEY = ID.create("fr.adrienbrault.idea.symfony2plugin.annotation_routes_json");
public static final ID<String, StubIndexedRoute> KEY = ID.create("fr.adrienbrault.idea.symfony2plugin.annotation_routes");
private final KeyDescriptor<String> myKeyDescriptor = new EnumeratorStringDescriptor();
private static ObjectStreamDataExternalizer<StubIndexedRoute> EXTERNALIZER = new ObjectStreamDataExternalizer<>();

Expand Down Expand Up @@ -102,7 +95,7 @@ public boolean dependsOnFileContent() {

@Override
public int getVersion() {
return 9;
return 10;
}

public static Map<String, String> getFileUseImports(PsiFile psiFile) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public boolean dependsOnFileContent() {

@Override
public int getVersion() {
return 1;
return 2;
}

private static boolean isValidForIndex(FileContent inputData, PsiFile psiFile) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public boolean dependsOnFileContent() {

@Override
public int getVersion() {
return 1;
return 2;
}

public static class StringDataExternalizer implements DataExternalizer<String> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

public class DoctrineMetadataFileStubIndex extends FileBasedIndexExtension<String, DoctrineModelSerializable> {

public static final ID<String, DoctrineModelSerializable> KEY = ID.create("fr.adrienbrault.idea.symfony2plugin.doctrine_metadata_json");
public static final ID<String, DoctrineModelSerializable> KEY = ID.create("fr.adrienbrault.idea.symfony2plugin.doctrine_metadata");
private final KeyDescriptor<String> myKeyDescriptor = new EnumeratorStringDescriptor();
private static ObjectStreamDataExternalizer<DoctrineModelSerializable> EXTERNALIZER = new ObjectStreamDataExternalizer<>();

Expand Down Expand Up @@ -102,7 +102,7 @@ public boolean dependsOnFileContent() {

@Override
public int getVersion() {
return 1;
return 2;
}

public static boolean isValidForIndex(FileContent inputData, PsiFile psiFile) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public boolean dependsOnFileContent() {

@Override
public int getVersion() {
return 1;
return 2;
}

private class MyPsiRecursiveElementWalkingVisitor extends PsiRecursiveElementVisitor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public boolean dependsOnFileContent() {

@Override
public int getVersion() {
return 1;
return 2;
}

public static boolean isValidForIndex(FileContent inputData, PsiFile psiFile) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public boolean dependsOnFileContent() {

@Override
public int getVersion() {
return 1;
return 2;
}

public static boolean isValidForIndex(FileContent inputData) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public boolean dependsOnFileContent() {

@Override
public int getVersion() {
return 2;
return 3;
}

public static boolean isValidForIndex(FileContent inputData, PsiFile psiFile) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class ServicesDefinitionStubIndex extends FileBasedIndexExtension<String,

private static int MAX_FILE_BYTE_SIZE = 5242880;

public static final ID<String, ServiceSerializable> KEY = ID.create("fr.adrienbrault.idea.symfony2plugin.service_definition_json");
public static final ID<String, ServiceSerializable> KEY = ID.create("fr.adrienbrault.idea.symfony2plugin.service_definition");
private final KeyDescriptor<String> myKeyDescriptor = new EnumeratorStringDescriptor();
private static ObjectStreamDataExternalizer<ServiceSerializable> EXTERNALIZER = new ObjectStreamDataExternalizer<>();

Expand Down Expand Up @@ -82,7 +82,7 @@ public boolean dependsOnFileContent() {

@Override
public int getVersion() {
return 3;
return 4;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public boolean dependsOnFileContent() {

@Override
public int getVersion() {
return 3;
return 4;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public boolean dependsOnFileContent() {

@Override
public int getVersion() {
return 2;
return 3;
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public boolean dependsOnFileContent() {

@Override
public int getVersion() {
return 1;
return 2;
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public boolean dependsOnFileContent() {

@Override
public int getVersion() {
return 1;
return 2;
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public boolean dependsOnFileContent() {

@Override
public int getVersion() {
return 1;
return 2;
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public boolean dependsOnFileContent() {

@Override
public int getVersion() {
return 3;
return 4;
}

}

0 comments on commit 60c81ca

Please sign in to comment.