Skip to content

Conversation

@jlahoda
Copy link
Owner

@jlahoda jlahoda commented Jul 13, 2019

No description provided.

throw (ThreadDeath) t;
}
boolean a = false;
assert a = true;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Assert condition produces side effects

private final Method typeEnterSuperCall;

public VanillaPartialReparser() {
Method unenter;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Local variable hides a field

unenter = null;
}
this.unenter = unenter;
Field lazyDocCommentsTable;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Local variable hides a field

lazyDocCommentsTable = null;
}
this.lazyDocCommentsTable = lazyDocCommentsTable;
Field parserDocComments;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Local variable hides a field

parserDocComments = null;
}
this.parserDocComments = parserDocComments;
Method lineMapBuild;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Local variable hides a field

lineMapBuild = null;
}
this.lineMapBuild = lineMapBuild;
Method typeEnterSuperCall;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Local variable hides a field

if (a) {
JavacParser.dumpSource(ci, t);
}
t.printStackTrace();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Print Stack Trace

// } catch (CouplingAbort ca) {
// //Needs full reparse
// return false;
} catch (Throwable t) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Can be replaced with multicatch or several catch clauses catching specific exceptions

}
if (active && node != null) {
Integer pos = endPos.replaceTree((JCTree) node, null);//remove
if (pos != null) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Unnecessary test for null - the expression is never null


int noInner;
boolean hasLocalClass;
final Set<Tree> docOwners = new HashSet<Tree>();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Redundant type arguments in new expression (use diamond operator instead).

import com.sun.source.tree.Tree;
import com.sun.source.tree.VariableTree;
import org.netbeans.api.java.source.support.ErrorAwareTreeScanner;
import com.sun.tools.javac.tree.JCTree.JCClassDecl;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Unused Import

import com.sun.tools.javac.tree.JCTree.JCClassDecl;
import java.util.HashSet;
import java.util.Set;
import org.netbeans.lib.nbjavac.services.NBTreeMaker.IndexedClassDecl;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Unused Import

Document doc = ec.openDocument();
JavaSource source = JavaSource.forFileObject(src);
Object[] topLevel = new Object[1];
source.runUserActionTask(cc -> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Dereferencing possible null pointer

Document doc = ec.openDocument();
JavaSource source = JavaSource.forFileObject(src);
Object[] topLevel = new Object[1];
source.runUserActionTask(cc -> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Dereferencing possible null pointer

if (!Objects.equals(this.docComment, other.docComment)) {
return false;
}
if (this.kind != other.kind) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: The if statement is redundant

if (this.kind != other.kind) {
return false;
}
if (!Objects.equals(this.source, other.source)) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: The if statement is redundant

super(name);
}

protected void setUp() throws Exception {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Add @OverRide Annotation

private final Map<URI,Collection<Symbol.ClassSymbol>> notInProfiles =
new HashMap<>();


Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Field seenPartialReparsePositions can be final

import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;
import java.util.logging.Logger;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Unused Import

import com.sun.tools.javac.util.Context;
import java.util.HashMap;
import java.util.Map;
import java.util.logging.Level;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Unused Import

return new NBJavacTrees(c);
}
});
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jackpot:
warning: Constant name does not follow naming conventions: hasNbJavac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants