diff --git a/java/java-impl/src/com/intellij/codeInspection/streamMigration/DefaultSerialVersionUidCanBeUpdatedInspection.java b/java/java-impl/src/com/intellij/codeInspection/streamMigration/DefaultSerialVersionUidCanBeUpdatedInspection.java new file mode 100644 index 000000000000..19885a4ea700 --- /dev/null +++ b/java/java-impl/src/com/intellij/codeInspection/streamMigration/DefaultSerialVersionUidCanBeUpdatedInspection.java @@ -0,0 +1,31 @@ +// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +package com.intellij.codeInspection.streamMigration; + +import com.intellij.codeInsight.daemon.GroupNames; +import com.intellij.codeInsight.intention.HighPriorityAction; +import com.intellij.codeInsight.intention.PsiElementBaseIntentionAction; +import com.intellij.codeInspection.*; +import com.intellij.lang.java.JavaLanguage; +import com.intellij.openapi.editor.Editor; +import com.intellij.openapi.project.Project; +import com.intellij.openapi.roots.FileIndexFacade; +import com.intellij.openapi.util.TextRange; +import com.intellij.openapi.vfs.VirtualFile; +import com.intellij.profile.codeInspection.InspectionProjectProfileManager; +import com.intellij.psi.*; +import com.intellij.psi.impl.light.LightElement; +import com.intellij.psi.util.InheritanceUtil; +import com.intellij.psi.util.PsiTreeUtil; +import com.intellij.psi.util.PsiUtil; +import com.intellij.util.IncorrectOperationException; +import com.siyeh.ig.callMatcher.CallMatcher; +import com.siyeh.ig.psiutils.CommentTracker; +import org.jetbrains.annotations.Nls; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + +import static com.intellij.util.ObjectUtils.tryCast; + +public class DefaultSerialVersionUidCanBeUpdatedInspection extends AbstractBaseJavaLocalInspectionTool { + +} diff --git a/java/java-impl/src/intentionDescriptions/ChangeUIDAction/description.html b/java/java-impl/src/intentionDescriptions/ChangeUIDAction/description.html index 974ff9cb160f..8d10ce9ccaf3 100644 --- a/java/java-impl/src/intentionDescriptions/ChangeUIDAction/description.html +++ b/java/java-impl/src/intentionDescriptions/ChangeUIDAction/description.html @@ -1,5 +1,5 @@ -

Intention to change serialVersionUID initializer

+

Intention to change serialVersionUID initializer to randomly generated one

\ No newline at end of file diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/changeUid/afterChange.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/changeUid/afterChange.java index 11a9148f7557..cc6cf51afb0d 100644 --- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/changeUid/afterChange.java +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/changeUid/afterChange.java @@ -1,4 +1,4 @@ -// "Change serial version UID" "true" +// "Randomly change serial version UID" "true" import java.util.function.BinaryOperator; import java.util.function.Function; diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/changeUid/beforeChange.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/changeUid/beforeChange.java index 95ad31d6b4fd..9d586809c668 100644 --- a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/changeUid/beforeChange.java +++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/changeUid/beforeChange.java @@ -1,4 +1,4 @@ -// "Change serial version UID" "true" +// "Randomly change serial version UID" "true" import java.util.function.BinaryOperator; import java.util.function.Function; diff --git a/platform/platform-resources-en/src/messages/CodeInsightBundle.properties b/platform/platform-resources-en/src/messages/CodeInsightBundle.properties index fbcc84bda47b..b08d82b071a8 100644 --- a/platform/platform-resources-en/src/messages/CodeInsightBundle.properties +++ b/platform/platform-resources-en/src/messages/CodeInsightBundle.properties @@ -568,4 +568,4 @@ collapse.selection.overlapping.warning.text=Overlapping fold region(s) exist collapse.selection.overlapping.warning.ok=Remove collapse.selection.overlapping.warning.cancel=Cancel -change.uid.action.name=Change serial version UID \ No newline at end of file +change.uid.action.name=Randomly change serial version UID \ No newline at end of file