Skip to content

Commit

Permalink
Merge pull request #1392 from scireum/feature/sbi/OX-10611
Browse files Browse the repository at this point in the history
Noodle - Only detect intrinsic NLS get call for single parameter calls
  • Loading branch information
sabieber authored Mar 6, 2024
2 parents 984e2a5 + 52979ac commit 75ca366
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ public Node reduce(CompilationContext compilationContext) {
@SuppressWarnings({"java:S3776", "java:S1541"})
@Explain("We rather keep all optimizations in one place.")
private Node optimizeIntrinsics() {
if (NLS.class.equals(method.getDeclaringClass()) && "get".equals(method.getName())) {
if (NLS.class.equals(method.getDeclaringClass())
&& "get".equals(method.getName())
&& parameterNodes.length == 1) {
return new IntrinsicCall(getPosition(),
method.getGenericReturnType(),
OpCode.INTRINSIC_NLS_GET,
Expand Down

0 comments on commit 75ca366

Please sign in to comment.