nullability

This commit is contained in:
Vladimir Krivosheev
2012-10-04 17:03:03 +04:00
parent 5860231401
commit b0b7d01885
2 changed files with 2 additions and 2 deletions
@@ -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;