OriginalCompleteBeforeOriginalCompleteAfterBeforeAfterProjectCommitCompilationUnitLineNosNamesTemplateVariableToCodeBeforeRelevantImportsTemplateVariableToCodeAfterisRelevantisSafe
SuggestedFix testFix=SuggestedFix.builder().merge(removeStatic).addImport(TEST_CLASS).prefixWith(methodTree,TEST_ANNOTATION).build();SuggestedFix testFix=SuggestedFix.builder().merge(removeStatic.orElse(null)).addImport(TEST_CLASS).prefixWith(methodTree,TEST_ANNOTATION).build();removeStaticremoveStatic.orElse(null)error-proneec64a7c4d81db6cc7c8220cb3dcbe181e9dafb26com.google.errorprone.bugpatterns.JUnit4TestNotRun
_1181
_2182
_1removeStatic
_2removeStatic
TCIVarremoveStatic
TCIVarremoveStatic
UsesTrue
writeComponent(json,session,component,analysis,userSession);writeComponent(json,session,component,analysis.orElse(null),userSession);analysisanalysis.orElse(null)sonarqube2fdbed4ea7e5db4621bc387dfba9af3121eecef2org.sonar.server.ui.ws.ComponentNavigationAction
_1118
_2119
_1analysis
_2analysis
TCIVaranalysis
TCIVaranalysis
UsesTrue
((Node)nodeWithVariables).notifyPropertyChange(ObservableProperty.MAXIMUM_COMMON_TYPE,currentMaxCommonType,newMaxCommonType);((Node)nodeWithVariables).notifyPropertyChange(ObservableProperty.MAXIMUM_COMMON_TYPE,currentMaxCommonType.orElse(null),newMaxCommonType.orElse(null));newMaxCommonTypenewMaxCommonType.orElse(null)javaparser9a228915f61892f6ba99fcf1e42e42e1e2622a00com.github.javaparser.ast.body.VariableDeclarator.customInitialization.register
_1131
_2131
_1newMaxCommonType
_2newMaxCommonType
TCIVarnewMaxCommonType
TCIVarnewMaxCommonType
UsesTrue
((Node)nodeWithVariables).notifyPropertyChange(ObservableProperty.MAXIMUM_COMMON_TYPE,currentMaxCommonType,newMaxCommonType);((Node)nodeWithVariables).notifyPropertyChange(ObservableProperty.MAXIMUM_COMMON_TYPE,currentMaxCommonType.orElse(null),newMaxCommonType.orElse(null));currentMaxCommonTypecurrentMaxCommonType.orElse(null)javaparser9a228915f61892f6ba99fcf1e42e42e1e2622a00com.github.javaparser.ast.body.VariableDeclarator.customInitialization.register
_1121
_2121
_1currentMaxCommonType
_2currentMaxCommonType
TCIVarcurrentMaxCommonType
TCIVarcurrentMaxCommonType
UsesTrue
assertPageEquals(ImmutableList.of(VARCHAR),actualPage,expectedPage);assertPageEquals(ImmutableList.of(VARCHAR),actualPage.orElse(null),expectedPage);actualPageactualPage.orElse(null)presto4efb7c28ba7b019e64a6d802984330a074ae1e47com.facebook.presto.operator.project.TestPageProcessor
_1240
_2250
_1actualPage
_2actualPage
TCIVaractualPage
TCIVaractualPage
UsesTrue
assertPageEquals(ImmutableList.of(VARCHAR),actualPage,expectedPage);assertPageEquals(ImmutableList.of(VARCHAR),actualPage.orElse(null),expectedPage);actualPageactualPage.orElse(null)presto4efb7c28ba7b019e64a6d802984330a074ae1e47com.facebook.presto.operator.project.TestPageProcessor
_1223
_2233
_1actualPage
_2actualPage
TCIVaractualPage
TCIVaractualPage
UsesTrue
writeProtobuf(buildResponse(qualityGate,defaultQualityGate,conditions,metricsById),request,response);writeProtobuf(buildResponse(qualityGate,defaultQualityGate.orElse(null),conditions,metricsById),request,response);defaultQualityGatedefaultQualityGate.orElse(null)sonarqube70fd4ee3f448a9bd0ce7e97d269b2ca41355a8f0org.sonar.server.qualitygate.ws.ShowAction
_192
_293
_1defaultQualityGate
_2defaultQualityGate
TCIVardefaultQualityGate
TCIVardefaultQualityGate
UsesTrue
writeProtobuf(buildResponse(qualityGates,defaultQualityGate),request,response);writeProtobuf(buildResponse(qualityGates,defaultQualityGate.orElse(null)),request,response);defaultQualityGatedefaultQualityGate.orElse(null)sonarqube70fd4ee3f448a9bd0ce7e97d269b2ca41355a8f0org.sonar.server.qualitygate.ws.ListAction
_166
_270
_1defaultQualityGate
_2defaultQualityGate
TCIVardefaultQualityGate
TCIVardefaultQualityGate
UsesTrue
return Response.ok(Collections.singletonMap(STR0,activeConfig)).build();return Response.ok(Collections.singletonMap(STR0,activeConfig.orElse(null))).build();activeConfigactiveConfig.orElse(null)graylog2-server3bcb34c2a7ba8126196d79f041d2852a2cbc4d54org.graylog.security.authservice.rest.AuthServicesResource
_156
_256
_1activeConfig
_2activeConfig
TCIVaractiveConfig
TCIVaractiveConfig
UsesTrue
final boolean headerMatches=headerValue != null && pattern != null && pattern.matcher(headerValue).matches();final boolean headerMatches=headerValue != null && pattern != null && pattern.matcher(headerValue.orElse(null)).matches();headerValueheaderValue.orElse(null)pac4j49ccc89f2d97cadadc2b217dd8505007b930fff5org.pac4j.core.matching.HeaderMatcher
_133
_234
_1headerValue
_2headerValue
TCIVarheaderValue
TCIVarheaderValue
UsesTrue
notificationUpdater.add(dbSession,request.getChannel(),request.getType(),user,project);notificationUpdater.add(dbSession,request.getChannel(),request.getType(),user,project.orElse(null));projectproject.orElse(null)sonarqube0000edfd89ee6084a0cde4a08424b3bad346e69eorg.sonar.server.notification.ws.AddAction
_1127
_2127
_1project
_2project
TCIVarproject
TCIVarproject
UsesTrue
return toStringHelper(this).add(STR0,specification).toString();return toStringHelper(this).omitNullValues().add(STR0,specification.orElse(null)).toString();specificationspecification.orElse(null)presto6ae5918fc6cae7dc7ce2f43d9409a9fe8eebd027com.facebook.presto.sql.planner.assertions.WindowMatcher
_128
_242
_1specification
_2specification
TCIVarspecification
TCIVarspecification
UsesTrue