Formatting

This commit is contained in:
Roman Shevchenko
2013-02-26 13:59:27 +01:00
parent 5c9c590d06
commit bdd49b2160
2 changed files with 13 additions and 12 deletions
@@ -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) {
@@ -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<T> extends java.lang.ref.SoftReference<T> {
// T myReferent;
//private final T myReferent;
public SoftReference(final T referent) {
super(referent);
// myReferent = referent;
//myReferent = referent;
}
public SoftReference(final T referent, final ReferenceQueue<? super T> q) {
super(referent, q);
// myReferent = referent;
//myReferent = referent;
}
/*
@Override
public T get() {
return myReferent;
}
*/
//@Override
//public T get() {
// return myReferent;
//}
}