[i18n] annotations

GitOrigin-RevId: 278b6d23f160dd6fe93e1a28f6699be65cc761dd
This commit is contained in:
Tagir Valeev
2020-08-05 10:14:27 +00:00
committed by intellij-monorepo-bot
parent cd5f9b2822
commit f842ce8802
3 changed files with 10 additions and 6 deletions
@@ -4,6 +4,7 @@ package com.intellij.openapi.keymap;
import com.intellij.openapi.actionSystem.*;
import com.intellij.openapi.util.Disposer;
import com.intellij.openapi.util.InvalidDataException;
import com.intellij.openapi.util.NlsSafe;
import com.intellij.openapi.util.SystemInfo;
import com.intellij.openapi.util.registry.Registry;
import com.intellij.openapi.util.registry.RegistryValue;
@@ -55,7 +56,7 @@ public final class KeymapUtil {
}
@NotNull
public static String getShortcutText(@NotNull Shortcut shortcut) {
public static @NlsSafe String getShortcutText(@NotNull Shortcut shortcut) {
String s = "";
if (shortcut instanceof KeyboardShortcut) {
@@ -237,7 +238,7 @@ public final class KeymapUtil {
}
@NotNull
public static String getFirstKeyboardShortcutText(@NotNull AnAction action) {
public static @NlsSafe String getFirstKeyboardShortcutText(@NotNull AnAction action) {
return getFirstKeyboardShortcutText(action.getShortcutSet());
}
@@ -20,6 +20,7 @@ import com.intellij.openapi.roots.OrderRootType;
import com.intellij.openapi.roots.ProjectModelElement;
import com.intellij.openapi.roots.RootProvider;
import com.intellij.openapi.util.JDOMExternalizable;
import com.intellij.openapi.util.NlsSafe;
import com.intellij.openapi.vfs.VirtualFile;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NonNls;
@@ -33,7 +34,7 @@ import org.jetbrains.annotations.Nullable;
public interface Library extends JDOMExternalizable, Disposable, ProjectModelElement {
Library[] EMPTY_ARRAY = new Library[0];
@Nullable
@Nullable @NlsSafe
String getName();
String @NotNull [] getUrls(@NotNull OrderRootType rootType);
@@ -21,6 +21,8 @@ import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.fileEditor.FileDocumentManager;
import com.intellij.openapi.progress.ProgressIndicator;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.util.NlsContexts;
import com.intellij.openapi.util.NlsSafe;
import com.intellij.openapi.util.Pair;
import com.intellij.openapi.util.text.StringUtil;
import com.intellij.openapi.vcs.BranchChangeListener;
@@ -89,7 +91,7 @@ abstract class GitBranchOperation {
protected abstract void rollback();
@NotNull
public abstract String getSuccessMessage();
public abstract @NlsContexts.NotificationContent String getSuccessMessage();
@NotNull
@Nls(capitalization = Nls.Capitalization.Sentence)
@@ -161,7 +163,7 @@ abstract class GitBranchOperation {
}
@NotNull
protected String successfulRepositoriesJoined() {
protected @NlsSafe String successfulRepositoriesJoined() {
return GitUtil.joinToHtml(mySuccessfulRepositories);
}
@@ -177,7 +179,7 @@ abstract class GitBranchOperation {
return repositories;
}
protected void notifySuccess(@NotNull String message) {
protected void notifySuccess(@NotNull @NlsContexts.NotificationContent String message) {
VcsNotifier.getInstance(myProject).notifySuccess(message);
}