forked from typetools/stubparser
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to EISOP 3.32-eisop1 from 3.28-eisop1 (#55)
- Loading branch information
Showing
1,293 changed files
with
18,253 additions
and
11,000 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,12 @@ on: | |
# Enable manual triggering (important for contributors to enable a check on their fork) | ||
workflow_dispatch: | ||
|
||
# If a build is running in the current branch, and the branch is updated, we cancel the previous build and start | ||
# a new one with the updated changes. | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
maven_test: | ||
strategy: | ||
|
@@ -29,7 +35,8 @@ jobs: | |
## Different JDK versions have different implementations etc. -- test on all combinations (ideally 8 to latest). | ||
### exclude pre-8 (min development version jdk8) | ||
### exclude post-12 (changes to jdk causes reflection tests to fail due to added methods #1701 ) | ||
jdk: [ 8,9,10,11,12,13,14,15,16 ] | ||
# typetools: Exclude 10 because of crashes in the compiler | ||
jdk: [ 8,9,11,12,13,14,15,16 ] | ||
env: | ||
OS: ${{ matrix.os }} | ||
JDK: ${{ matrix.jdk }} | ||
|
@@ -39,7 +46,7 @@ jobs: | |
steps: | ||
## Checkout the current version of the code from the repo. | ||
- name: Checkout latest code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v3.3.0 | ||
with: | ||
fetch-depth: "0" | ||
|
||
|
@@ -82,7 +89,7 @@ jobs: | |
timeout-minutes: 10 | ||
with: | ||
files: javaparser-core-testing/target/site/jacoco/jacoco.xml,javaparser-core-testing-bdd/target/site/jacoco/jacoco.xml | ||
fail_ci_if_error: false # optional (default = false) | ||
fail_ci_if_error: false # optional (default = false) -- fail the build if upload to codecov.io fails | ||
verbose: false # optional (default = false): | ||
flags: javaparser-core,AlsoSlowTests,${{ matrix.os }},jdk-${{ matrix.jdk }} | ||
env_vars: OS,JDK | ||
|
@@ -92,7 +99,24 @@ jobs: | |
timeout-minutes: 10 | ||
with: | ||
file: javaparser-symbol-solver-testing/target/site/jacoco/jacoco.xml | ||
fail_ci_if_error: false # optional (default = false) | ||
fail_ci_if_error: false # optional (default = false) -- fail the build if upload to codecov.io fails | ||
verbose: false # optional (default = false): | ||
flags: javaparser-symbol-solver,AlsoSlowTests,${{ matrix.os }},jdk-${{ matrix.jdk }} | ||
env_vars: OS,JDK | ||
|
||
# Run checkstyle validations for pipeline | ||
checkstyle_check: | ||
name: Validate checkstyle | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout latest code | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: "0" | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'zulu' | ||
- name: Validate Project Checkstyle | ||
run: ./mvnw -B checkstyle:check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!DOCTYPE module PUBLIC | ||
"-//Puppy Crawl//DTD Check Configuration 1.3//EN" | ||
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> | ||
<module name="Checker"> | ||
|
||
<!-- Based on documentation: https://github.com/javaparser/javaparser/wiki/Coding-Guidelines --> | ||
|
||
<property name="fileExtensions" value="java"/> | ||
|
||
<!-- Wrap lines at 120 characters --> | ||
<module name="LineLength"> | ||
<property name="max" value="120"/> | ||
<property name="severity" value="warning" /> | ||
</module> | ||
|
||
<module name="TreeWalker"> | ||
|
||
<!-- Indent with four spaces --> | ||
<module name="Indentation"> | ||
<property name="severity" value="warning" /> | ||
</module> | ||
|
||
<!-- Type and Method annotations go on a separate line --> | ||
<module name="AnnotationLocation"> | ||
<property name="allowSamelineMultipleAnnotations" value="false"/> | ||
<property name="allowSamelineSingleParameterlessAnnotation" value="false"/> | ||
<property name="allowSamelineParameterizedAnnotation" value="false"/> | ||
<property name="severity" value="warning" /> | ||
</module> | ||
|
||
<!-- Import order --> | ||
<module name="CustomImportOrder"> | ||
<property name="customImportOrderRules" | ||
value="THIRD_PARTY_PACKAGE###SPECIAL_IMPORTS###STANDARD_JAVA_PACKAGE###STATIC"/> | ||
<property name="specialImportsRegExp" value="^javax\."/> | ||
<property name="standardPackageRegExp" value="^java\."/> | ||
<property name="sortImportsInGroupAlphabetically" value="false"/> | ||
<property name="separateLineBetweenGroups" value="false"/> | ||
<property name="severity" value="warning" /> | ||
</module> | ||
|
||
<!-- Imports that are not used, should be removed --> | ||
<module name="UnusedImports"/> | ||
|
||
</module> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
...re-generators/src/main/java/com/github/javaparser/generator/CompilationUnitGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright (C) 2007-2010 Júlio Vilmar Gesser. | ||
* Copyright (C) 2011, 2013-2023 The JavaParser Team. | ||
* | ||
* This file is part of JavaParser. | ||
* | ||
* JavaParser can be used either under the terms of | ||
* a) the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* b) the terms of the Apache License | ||
* | ||
* You should have received a copy of both licenses in LICENCE.LGPL and | ||
* LICENCE.APACHE. Please refer to those files for details. | ||
* | ||
* JavaParser is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
*/ | ||
|
||
package com.github.javaparser.generator; | ||
|
||
import com.github.javaparser.ParseResult; | ||
import com.github.javaparser.ast.CompilationUnit; | ||
import com.github.javaparser.utils.SourceRoot; | ||
|
||
import java.util.List; | ||
|
||
public abstract class CompilationUnitGenerator extends Generator { | ||
|
||
protected CompilationUnitGenerator(SourceRoot sourceRoot) { | ||
super(sourceRoot); | ||
} | ||
|
||
@Override | ||
public void generate() throws Exception { | ||
List<ParseResult<CompilationUnit>> parsedCus = sourceRoot.tryToParse(); | ||
for (ParseResult<CompilationUnit> cu : parsedCus) { | ||
cu.ifSuccessful(this::generateCompilationUnit); | ||
} | ||
} | ||
|
||
protected abstract void generateCompilationUnit(CompilationUnit compilationUnit); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
javaparser-core-generators/src/main/java/com/github/javaparser/generator/NodeGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...arser-core-generators/src/main/java/com/github/javaparser/generator/VisitorGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...e-generators/src/main/java/com/github/javaparser/generator/core/node/AcceptGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...re-generators/src/main/java/com/github/javaparser/generator/core/node/CloneGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rators/src/main/java/com/github/javaparser/generator/core/node/GetMetaModelGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ors/src/main/java/com/github/javaparser/generator/core/node/MainConstructorGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rators/src/main/java/com/github/javaparser/generator/core/node/NodeModifierGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...generators/src/main/java/com/github/javaparser/generator/core/node/PropertyGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rators/src/main/java/com/github/javaparser/generator/core/node/RemoveMethodGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ators/src/main/java/com/github/javaparser/generator/core/node/ReplaceMethodGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...erators/src/main/java/com/github/javaparser/generator/core/node/TypeCastingGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.