File tree Expand file tree Collapse file tree 7 files changed +69
-0
lines changed 
java/ql/integration-tests/java/maven-multimodule-test-java-version 
src/main/java/com/example 
src/main/java/com/example/tests Expand file tree Collapse file tree 7 files changed +69
-0
lines changed Original file line number Diff line number Diff line change 1+ <?xml  version =" 1.0"  encoding =" UTF-8"  ?>
2+ <project  xmlns =" http://maven.apache.org/POM/4.0.0"  >
3+   <modelVersion >4.0.0</modelVersion >
4+   <parent >
5+     <groupId >com.example</groupId >
6+     <artifactId >maven-multimodule-test-java-version</artifactId >
7+     <version >1.0</version >
8+   </parent >
9+   <artifactId >main-module</artifactId >
10+ </project >
Original file line number Diff line number Diff line change 1+ package  com .example ;
2+ 
3+ public  class  App  {
4+     public  static  void  main (String [] args ) {
5+         System .out .println ("Hello World!" );
6+     }
7+ }
Original file line number Diff line number Diff line change 1+ <?xml  version =" 1.0"  encoding =" UTF-8"  ?>
2+ <project  xmlns =" http://maven.apache.org/POM/4.0.0"  >
3+   <modelVersion >4.0.0</modelVersion >
4+   <groupId >com.example</groupId >
5+   <artifactId >maven-multimodule-test-java-version</artifactId >
6+   <version >1.0</version >
7+   <packaging >pom</packaging >
8+ 
9+   <properties >
10+     <maven .compiler.release>17</maven .compiler.release>
11+   </properties >
12+ 
13+   <modules >
14+     <module >main-module</module >
15+     <module >test-module</module >
16+   </modules >
17+ </project >
Original file line number Diff line number Diff line change 1+ main-module/pom.xml
2+ main-module/src/main/java/com/example/App.java
3+ main-module/target/maven-archiver/pom.properties
4+ pom.xml
5+ test-module/pom.xml
6+ test-module/src/main/java/com/example/tests/TestUtils.java
7+ test-module/target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change 1+ <?xml  version =" 1.0"  encoding =" UTF-8"  ?>
2+ <project  xmlns =" http://maven.apache.org/POM/4.0.0"  >
3+   <modelVersion >4.0.0</modelVersion >
4+   <parent >
5+     <groupId >com.example</groupId >
6+     <artifactId >maven-multimodule-test-java-version</artifactId >
7+     <version >1.0</version >
8+   </parent >
9+   <artifactId >test-module</artifactId >
10+ 
11+   <properties >
12+     <maven .compiler.release>21</maven .compiler.release>
13+   </properties >
14+ </project >
Original file line number Diff line number Diff line change 1+ package  com .example .tests ;
2+ 
3+ // Requires Java 21: switch with pattern matching and guards 
4+ public  class  TestUtils  {
5+     public  static  String  analyze (Object  obj ) {
6+         return  switch  (obj ) {
7+             case  String  s  when s .length () > 5  -> "long" ;
8+             case  String  s  -> "short" ;
9+             default  -> "other" ;
10+         };
11+     }
12+ }
Original file line number Diff line number Diff line change 1+ def  test (codeql , java ):
2+     codeql .database .create ()
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments