mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
nullability
This commit is contained in:
@@ -103,7 +103,6 @@ public class AstBufferUtil {
|
||||
public void visitComposite(CompositeElement composite) {
|
||||
if (composite instanceof LazyParseableElement) {
|
||||
LazyParseableElement lpe = (LazyParseableElement)composite;
|
||||
assert buffer != null;
|
||||
int lpeResult = lpe.copyTo(buffer, end);
|
||||
if (lpeResult >= 0) {
|
||||
end = lpeResult;
|
||||
|
||||
@@ -28,6 +28,7 @@ import com.intellij.psi.tree.ILazyParseableElementType;
|
||||
import com.intellij.util.text.CharArrayUtil;
|
||||
import org.jetbrains.annotations.NonNls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.jetbrains.annotations.TestOnly;
|
||||
|
||||
public class LazyParseableElement extends CompositeElement {
|
||||
@@ -215,7 +216,7 @@ public class LazyParseableElement extends CompositeElement {
|
||||
return super.getLastChildNode();
|
||||
}
|
||||
|
||||
public int copyTo(char[] buffer, int start) {
|
||||
public int copyTo(@Nullable char[] buffer, int start) {
|
||||
CharSequence text = myText();
|
||||
if (text == null) return -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user