Cleanup (formatting)

This commit is contained in:
Roman Shevchenko
2015-05-22 16:23:22 +02:00
parent a55d60c6c3
commit 987b074885
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2013 JetBrains s.r.o.
* Copyright 2000-2015 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -34,6 +34,13 @@ import com.intellij.util.IncorrectOperationException;
public class PsiAnnotationStubImpl extends StubBase<PsiAnnotation> implements PsiAnnotationStub {
private static final Logger LOG = Logger.getInstance("#com.intellij.psi.impl.java.stubs.impl.PsiAnnotationStubImpl");
static {
CharTableImpl.addStringsFromClassToStatics(AnnotationUtil.class);
CharTableImpl.staticIntern("@NotNull");
CharTableImpl.staticIntern("@Nullable");
CharTableImpl.staticIntern("@Override");
}
private final String myText;
private SoftReference<PsiAnnotation> myParsedFromRepository;
@@ -43,13 +50,6 @@ public class PsiAnnotationStubImpl extends StubBase<PsiAnnotation> implements Ps
myText = interned == null ? text : interned.toString();
}
static {
CharTableImpl.addStringsFromClassToStatics(AnnotationUtil.class);
CharTableImpl.staticIntern("@NotNull");
CharTableImpl.staticIntern("@Nullable");
CharTableImpl.staticIntern("@Override");
}
@Override
public String getText() {
return myText;