A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/commit/7a058e12df6204eb4717fb6d8b58cf1a559d0379 below:

Suppress CompareObjectsWithEquals · pmd/pmd@7a058e1 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+3

-3

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+3

-3

lines changed Original file line number Diff line number Diff line change

@@ -113,7 +113,7 @@ default boolean isCompileTimeConstant() {

113 113

@Experimental

114 114

default @Nullable ExprContext getConversionContextType() {

115 115

ExprContext ctx = PolyResolution.getConversionContextTypeForExternalUse(this);

116 -

return ctx == RegularCtx.NO_CTX ? null : ctx;

116 +

return ctx == RegularCtx.NO_CTX ? null : ctx; // NOPMD

117 117

}

118 118 119 119

}

Original file line number Diff line number Diff line change

@@ -84,7 +84,7 @@ private JTypeMirror polyTypeOtherCtx(TypeNode e, RegularCtx ctx) {

84 84

JTypeMirror standalone = branchingMirror.getStandaloneType();

85 85

if (standalone != null) {

86 86

return standalone;

87 -

} else if (ctx == ExprContext.RegularCtx.NO_CTX) {

87 +

} else if (ctx == ExprContext.RegularCtx.NO_CTX) { // NOPMD

88 88

// null standalone, force resolution anyway, because there is no context

89 89

// this is more general than ExprMirror#getStandaloneType, it's not a bug

90 90

if (e instanceof ASTConditionalExpression) {

@@ -352,7 +352,7 @@ static ExprContext getConversionContextTypeForExternalUse(ASTExpression e) {

352 352

// Constructor or method call, maybe there's another context around

353 353

// We want to fetch the outermost invocation node, but not further

354 354

ExprContext outerCtx = contextOf(papi, /*onlyInvoc:*/true);

355 -

return outerCtx == RegularCtx.NO_CTX ? new InvocCtx(node.getIndexInParent(), papi)

355 +

return outerCtx == RegularCtx.NO_CTX ? new InvocCtx(node.getIndexInParent(), papi) // NOPMD

356 356

: outerCtx;

357 357

}

358 358

} else if (doesCascadesContext(papa, node)) {

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4