Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
94d460b1
Commit
94d460b1
authored
6 years ago
by
Alexey Kudravtsev
Browse files
Options
Download
Email Patches
Plain Diff
removed moronic nullable
parent
fd7fc574
Branches unavailable
Tags unavailable
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
platform/core-api/src/com/intellij/psi/util/CachedValueProvider.java
+3
-0
...re-api/src/com/intellij/psi/util/CachedValueProvider.java
platform/core-api/src/com/intellij/psi/util/ParameterizedCachedValueProvider.java
+1
-3
...m/intellij/psi/util/ParameterizedCachedValueProvider.java
python/psi-api/src/com/jetbrains/python/codeInsight/PyCustomMember.java
+0
-1
.../src/com/jetbrains/python/codeInsight/PyCustomMember.java
xml/impl/src/com/intellij/xml/actions/EscapeEntitiesAction.java
+0
-2
...pl/src/com/intellij/xml/actions/EscapeEntitiesAction.java
with
4 additions
and
6 deletions
+4
-6
platform/core-api/src/com/intellij/psi/util/CachedValueProvider.java
+
3
-
0
View file @
94d460b1
...
...
@@ -94,6 +94,7 @@ public interface CachedValueProvider<T> {
* Creates a result
* @see #getDependencyItems()
*/
@NotNull
public
static
<
T
>
Result
<
T
>
createSingleDependency
(
@Nullable
T
value
,
@NotNull
Object
dependency
)
{
return
create
(
value
,
dependency
);
}
...
...
@@ -102,6 +103,7 @@ public interface CachedValueProvider<T> {
* Creates a result
* @see #getDependencyItems()
*/
@NotNull
public
static
<
T
>
Result
<
T
>
create
(
@Nullable
T
value
,
@NotNull
Object
...
dependencies
)
{
return
new
Result
<>(
value
,
dependencies
);
}
...
...
@@ -110,6 +112,7 @@ public interface CachedValueProvider<T> {
* Creates a result
* @see #getDependencyItems()
*/
@NotNull
public
static
<
T
>
Result
<
T
>
create
(
@Nullable
T
value
,
@NotNull
Collection
<?>
dependencies
)
{
return
new
Result
<>(
value
,
ArrayUtil
.
toObjectArray
(
dependencies
));
}
...
...
This diff is collapsed.
Click to expand it.
platform/core-api/src/com/intellij/psi/util/ParameterizedCachedValueProvider.java
+
1
-
3
View file @
94d460b1
...
...
@@ -15,9 +15,7 @@
*/
package
com.intellij.psi.util
;
import
org.jetbrains.annotations.Nullable
;
@FunctionalInterface
public
interface
ParameterizedCachedValueProvider
<
ResultType
,
ParameterType
>
{
@Nullable
CachedValueProvider
.
Result
<
ResultType
>
compute
(
ParameterType
param
);
}
This diff is collapsed.
Click to expand it.
python/psi-api/src/com/jetbrains/python/codeInsight/PyCustomMember.java
+
0
-
1
View file @
94d460b1
...
...
@@ -181,7 +181,6 @@ public class PyCustomMember extends UserDataHolderBase {
if
(
myTypeName
!=
null
)
{
final
ParameterizedCachedValueProvider
<
PyClass
,
PsiElement
>
provider
=
new
ParameterizedCachedValueProvider
<
PyClass
,
PsiElement
>()
{
@Nullable
@Override
public
CachedValueProvider
.
Result
<
PyClass
>
compute
(
final
PsiElement
param
)
{
...
...
This diff is collapsed.
Click to expand it.
xml/impl/src/com/intellij/xml/actions/EscapeEntitiesAction.java
+
0
-
2
View file @
94d460b1
...
...
@@ -24,7 +24,6 @@ import com.intellij.xml.Html5SchemaProvider;
import
com.intellij.xml.util.XmlUtil
;
import
gnu.trove.TIntObjectHashMap
;
import
org.jetbrains.annotations.NotNull
;
import
org.jetbrains.annotations.Nullable
;
/**
* @author Dennis.Ushakov
...
...
@@ -32,7 +31,6 @@ import org.jetbrains.annotations.Nullable;
public
class
EscapeEntitiesAction
extends
BaseCodeInsightAction
implements
CodeInsightActionHandler
{
private
static
final
ParameterizedCachedValueImpl
<
TIntObjectHashMap
<
String
>,
PsiFile
>
ESCAPES
=
new
ParameterizedCachedValueImpl
<
TIntObjectHashMap
<
String
>,
PsiFile
>(
new
ParameterizedCachedValueProvider
<
TIntObjectHashMap
<
String
>,
PsiFile
>()
{
@Nullable
@Override
public
CachedValueProvider
.
Result
<
TIntObjectHashMap
<
String
>>
compute
(
PsiFile
param
)
{
final
XmlFile
file
=
XmlUtil
.
findXmlFile
(
param
,
Html5SchemaProvider
.
getCharsDtdLocation
());
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help