Commit 8c9e5af duke
committed Dec 7, 2021
File tree 2 files changed +7
-6
lines changed
make/langtools/tools/compileproperties
src/jdk.compiler/share/classes/com/sun/tools/javac/comp
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,8 @@ private boolean parseOptions(String args[]) {
183
183
log .error ("cannot close " + filename , e );
184
184
}
185
185
}
186
- if ( ok = true && contents != null ) {
186
+ ok = true ;
187
+ if ( contents != null ) {
187
188
String tokens [] = (new String (contents )).split ("\\ s+" );
188
189
if ( tokens .length > 0 ) {
189
190
ok = parseOptions (tokens );
Original file line number Diff line number Diff line change @@ -1301,7 +1301,7 @@ class MostSpecificFunctionReturnChecker extends DeferredAttr.PolyScanner {
1301
1301
1302
1302
@ Override
1303
1303
void skip (JCTree tree ) {
1304
- result & = false ;
1304
+ result = false ;
1305
1305
}
1306
1306
1307
1307
@ Override
@@ -1313,9 +1313,9 @@ public void visitConditional(JCConditional tree) {
1313
1313
@ Override
1314
1314
public void visitReference (JCMemberReference tree ) {
1315
1315
if (sRet .hasTag (VOID )) {
1316
- result &= true ;
1316
+ // do nothing
1317
1317
} else if (tRet .hasTag (VOID )) {
1318
- result & = false ;
1318
+ result = false ;
1319
1319
} else if (tRet .isPrimitive () != sRet .isPrimitive ()) {
1320
1320
boolean retValIsPrimitive =
1321
1321
tree .refPolyKind == PolyKind .STANDALONE &&
@@ -1335,9 +1335,9 @@ public void visitParens(JCParens tree) {
1335
1335
@ Override
1336
1336
public void visitLambda (JCLambda tree ) {
1337
1337
if (sRet .hasTag (VOID )) {
1338
- result &= true ;
1338
+ // do nothing
1339
1339
} else if (tRet .hasTag (VOID )) {
1340
- result & = false ;
1340
+ result = false ;
1341
1341
} else {
1342
1342
List <JCExpression > lambdaResults = lambdaResults (tree );
1343
1343
if (!lambdaResults .isEmpty () && unrelatedFunctionalInterfaces (tRet , sRet )) {
You can’t perform that action at this time.
0 commit comments