mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-15 02:59:33 +07:00
[vcs-log] add Nls/NlsSafe/NonNls annotations to vcs log api classes
GitOrigin-RevId: 1fe7854251917af63e6be8e5ac64765145c09647
This commit is contained in:
committed by
intellij-monorepo-bot
parent
22d6e99901
commit
cee12a385c
@@ -1,5 +1,6 @@
|
||||
package com.intellij.vcs.log;
|
||||
|
||||
import com.intellij.openapi.util.NlsSafe;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
@@ -18,6 +19,7 @@ public interface Hash {
|
||||
* Returns the String representation of this hash.
|
||||
*/
|
||||
@NotNull
|
||||
@NlsSafe
|
||||
String asString();
|
||||
|
||||
/**
|
||||
@@ -29,5 +31,6 @@ public interface Hash {
|
||||
* <p>Usually (e.g. it is default for Git) the short hash is 7 symbols long.</p>
|
||||
*/
|
||||
@NotNull
|
||||
@NlsSafe
|
||||
String toShortString();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.intellij.vcs.log;
|
||||
|
||||
import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.awt.*;
|
||||
@@ -22,6 +23,7 @@ public interface RefGroup {
|
||||
* Returns the name of the reference group. This reference will be displayed on the branches panel.
|
||||
*/
|
||||
@NotNull
|
||||
@Nls
|
||||
String getName();
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.intellij.vcs.log;
|
||||
|
||||
import com.intellij.openapi.util.NlsSafe;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -19,5 +20,6 @@ import java.util.List;
|
||||
*/
|
||||
public interface VcsCommitMetadata extends VcsShortCommitDetails {
|
||||
@NotNull
|
||||
@NlsSafe
|
||||
String getFullMessage();
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// 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.vcs.log;
|
||||
|
||||
import com.intellij.openapi.util.NlsSafe;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -26,7 +27,7 @@ public interface VcsLogBranchFilter extends VcsLogBranchLikeFilter {
|
||||
* @return text presentation for the filter.
|
||||
*/
|
||||
@NotNull
|
||||
Collection<String> getTextPresentation();
|
||||
Collection<@NlsSafe String> getTextPresentation();
|
||||
|
||||
/**
|
||||
* @return true if filter has no patterns
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// 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.vcs.log;
|
||||
|
||||
import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
@@ -11,5 +12,6 @@ public interface VcsLogFilter {
|
||||
VcsLogFilterCollection.FilterKey<?> getKey();
|
||||
|
||||
@NotNull
|
||||
@Nls
|
||||
String getDisplayText();
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.intellij.vcs.log;
|
||||
|
||||
import com.intellij.openapi.util.NlsSafe;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Collection;
|
||||
@@ -24,7 +25,7 @@ import static com.intellij.vcs.log.VcsLogFilterCollection.HASH_FILTER;
|
||||
public interface VcsLogHashFilter extends VcsLogFilter {
|
||||
|
||||
@NotNull
|
||||
Collection<String> getHashes();
|
||||
Collection<@NlsSafe String> getHashes();
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
|
||||
@@ -15,11 +15,13 @@
|
||||
*/
|
||||
package com.intellij.vcs.log;
|
||||
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
public interface VcsLogUi {
|
||||
|
||||
@NotNull
|
||||
@NonNls
|
||||
String getId();
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.intellij.vcs.log;
|
||||
|
||||
import com.intellij.openapi.util.NlsSafe;
|
||||
import com.intellij.openapi.util.text.StringUtil;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -28,7 +29,7 @@ public interface VcsLogUserFilter extends VcsLogDetailsFilter {
|
||||
* Filter values in text format, such that the filter could be later restored from it.
|
||||
*/
|
||||
@NotNull
|
||||
Collection<String> getValuesAsText();
|
||||
Collection<@NlsSafe String> getValuesAsText();
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.intellij.vcs.log;
|
||||
|
||||
import com.intellij.openapi.util.NlsSafe;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -35,6 +36,7 @@ public interface VcsRef {
|
||||
* Returns the display name of the reference.
|
||||
*/
|
||||
@NotNull
|
||||
@NlsSafe
|
||||
String getName();
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.intellij.vcs.log;
|
||||
|
||||
import com.intellij.openapi.util.NlsSafe;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -25,6 +26,7 @@ public interface VcsShortCommitDetails extends TimedVcsCommit {
|
||||
VirtualFile getRoot();
|
||||
|
||||
@NotNull
|
||||
@NlsSafe
|
||||
String getSubject();
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user