diff --git a/java/java-psi-impl/src/com/intellij/psi/impl/cache/RecordUtil.java b/java/java-psi-impl/src/com/intellij/psi/impl/cache/RecordUtil.java index 3e83c7a42329..a311b48a80dd 100644 --- a/java/java-psi-impl/src/com/intellij/psi/impl/cache/RecordUtil.java +++ b/java/java-psi-impl/src/com/intellij/psi/impl/cache/RecordUtil.java @@ -59,8 +59,8 @@ public class RecordUtil { public static boolean isDeprecatedByDocComment(@NotNull LighterAST tree, @NotNull LighterASTNode comment) { // todo[r.sh] parse doc comments, implement tree lookup - final String text = LightTreeUtil.toFilteredString(tree, comment, null); - return text != null && text.contains(DEPRECATED_TAG); + String text = LightTreeUtil.toFilteredString(tree, comment, null); + return text.contains(DEPRECATED_TAG); } public static int packModifierList(@NotNull LighterAST tree, @NotNull LighterASTNode modList, @NotNull StubElement parent) { diff --git a/platform/util-rt/src/com/intellij/reference/SoftReference.java b/platform/util-rt/src/com/intellij/reference/SoftReference.java index 209ec09c195f..ce74a7499b6c 100644 --- a/platform/util-rt/src/com/intellij/reference/SoftReference.java +++ b/platform/util-rt/src/com/intellij/reference/SoftReference.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2009 JetBrains s.r.o. + * Copyright 2000-2013 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. @@ -21,24 +21,25 @@ import java.lang.ref.ReferenceQueue; * The class is necessary to debug memory allocations via soft references. All IDEA classes should use this SoftReference * instead of original from java.lang.ref. Whenever we suspect soft memory allocation overhead this easily becomes a hard * reference so we can see allocations and memory consumption in memory profiler. + * * @author max */ +@SuppressWarnings("ClassNameSameAsAncestorName") public class SoftReference extends java.lang.ref.SoftReference { -// T myReferent; + //private final T myReferent; + public SoftReference(final T referent) { super(referent); -// myReferent = referent; + //myReferent = referent; } public SoftReference(final T referent, final ReferenceQueue q) { super(referent, q); -// myReferent = referent; + //myReferent = referent; } - /* - @Override - public T get() { - return myReferent; - } - */ + //@Override + //public T get() { + // return myReferent; + //} }