mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Minor code change: Remove GrailsConstraintsUtil.ConstraintMethod
This commit is contained in:
+10
@@ -438,6 +438,16 @@ public class GrLightMethodBuilder extends LightElement implements GrMethod {
|
||||
return (T)myData;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public static <T> T getData(@Nullable PsiElement method, @NotNull Object kind) {
|
||||
if (method instanceof GrLightMethodBuilder) {
|
||||
if (kind.equals(((GrLightMethodBuilder)method).myMethodKind)) {
|
||||
return ((GrLightMethodBuilder)method).<T>getData();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public GrLightMethodBuilder setData(@Nullable Object data) {
|
||||
myData = data;
|
||||
return this;
|
||||
|
||||
Reference in New Issue
Block a user