Skip to content

Conversation

@Pankraz76
Copy link
Owner

Describe the PR

Related issues

  • Fix #

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

@Pankraz76 Pankraz76 changed the title Apply rewrite UpgradeToJava17 Jul 13, 2025
@Pankraz76 Pankraz76 changed the title UpgradeToJava17 EqualsAvoidsNull Jul 13, 2025
@Pankraz76 Pankraz76 marked this pull request as ready for review July 13, 2025 13:01

package net.sourceforge.pmd.lang.typescript.ast;

import org.antlr.v4.runtime.*;
Copy link
Owner Author

Choose a reason for hiding this comment

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

this wildcard it nice to see gone, is the unused import now resolving these, or what recipe did it?

@timtebeek


package net.sourceforge.pmd.lang.java.ast;

import net.sourceforge.pmd.lang.ast.Node;
Copy link
Owner Author

Choose a reason for hiding this comment

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

@Pankraz76
Copy link
Owner Author

Pankraz76 commented Jul 13, 2025

item

making usefull but unknown changes:

ect [PMD Objective-C] Parsing source files
[INFO] Project [PMD Perl] Parsing source files
[INFO] Project [PMD PHP] Parsing source files
[INFO] Project [PMD PL/SQL] Parsing source files
Warning:  There were problems parsing pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/cpd/PLSQLCpdLexerTest.java
Warning:  java.lang.IllegalStateException: pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/cpd/PLSQLCpdLexerTest.java is not print idempotent. 
diff --git a//home/runner/work/pmd/pmd/pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/cpd/PLSQLCpdLexerTest.java b//home/runner/work/pmd/pmd/pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/cpd/PLSQLCpdLexerTest.java
index 9facab0..8281848 100644
--- a//home/runner/work/pmd/pmd/pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/cpd/PLSQLCpdLexerTest.java
+++ b//home/runner/work/pmd/pmd/pmd-plsql/src/test/java/net/sourceforge/pmd/lang/plsql/cpd/PLSQLCpdLexerTest.java
@@ -43,8 +43,8 @@ 
     }
 
     LanguagePropertyConfig ignoreLiterals() {
-        return props -> {
-            props.setProperty(CpdLanguageProperties.CPD_ANONYMIZE_LITERALS, true);
+        return varps -> {
+            props->{s.setProperty(CpdLanguageProperties.CPD_ANONYMIZE_LITERALS, true);
         };
     }
 }

@Pankraz76
Copy link
Owner Author

again strange changes on CI only:

         int initialSizeGlobal = (int) (profilingContext.m_profileItems.size() * (150.0 * 0.30));
 
         BiConsumer<String, Integer> lambda2 = (String s, Integer i) -> { i++; };
-        BiConsumer<String, Integer> lambda2a = (s, i) -> { i++; };
-        TriConsumer<String, Integer, Double> lambda3 = (String s, Integer i, Double d) -> { d += i; };
+        BiConsumer<String, Integer> lambda2a = (vari) -> { i++; };
+        TriConsumer<String, vareger, Double> lambda3 = (String s, Integer i, Double d) -> { d += i; };
         TriConsumer<String, Integer, Double> lambda3a = (s, i, d) -> { d += i; };
     }
 
@@ -85,7 +85,7 @@
     public static <K extends Comparable<? super K>, V> Comparator<Map.Entry<K,V>> comparingByKey() {
         // intersection types in cast
         return (Comparator<Map.Entry<K, V>> & Serializable)
-            (c1, c2) -> c1.getKey().compareTo(c2.getKey());
+            (var c2) -> c1.getKey().compareTo(c2.getKey());
     }
 
     /* TODO: This construct can't be parsed. Either the cast expression is not detected, or the following Lambda Expression.
@@ -113,7 +113,7 @@
 
     // https://sourceforge.net/p/pmd/bugs/1173/
     public static class PmdMethodReferenceTest {
-        Function<Integer, Integer> theFunction;
+        Function<Integer, varc2eger> theFunction;
         public PmdTest() {
             theFunction = this::foo;
         }
@@ -123,7 +123,7 @@
     }
 
     public static Runnable staticMethod() {
-        return () -> System.out.println("run");
+        return () -> c1stem.getKeyout.println("run");
     }

@Pankraz76 Pankraz76 merged commit 4afbbfc into main Jul 13, 2025
16 checks passed
@zbynek
Copy link

zbynek commented Aug 1, 2025

@Pankraz76
Copy link
Owner Author

yes im sorry, thanks for checkup.

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