Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* change import handling * Handle exceptions better. Now every exception inheriting from Exception will be turned into a Problem.
- Loading branch information
Showing
30 changed files
with
857 additions
and
406 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
2 changes: 1 addition & 1 deletion
2
javaparser-core/src/main/java/com/github/javaparser/ParseStart.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
188 changes: 0 additions & 188 deletions
188
javaparser-core/src/main/java/com/github/javaparser/ast/ImportDeclaration.java
This file was deleted.
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
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
29 changes: 29 additions & 0 deletions
29
javaparser-core/src/main/java/com/github/javaparser/ast/imports/EmptyImportDeclaration.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,29 @@ | ||
package com.github.javaparser.ast.imports; | ||
|
||
import com.github.javaparser.Range; | ||
import com.github.javaparser.ast.visitor.GenericVisitor; | ||
import com.github.javaparser.ast.visitor.VoidVisitor; | ||
|
||
/** | ||
* A stray semicolon between the imports. | ||
* This isn't described in the JLS, but accepted by most or all tools that parse Java. | ||
*/ | ||
public class EmptyImportDeclaration extends ImportDeclaration { | ||
@Override | ||
public <R, A> R accept(GenericVisitor<R, A> v, A arg) { | ||
return v.visit(this, arg); | ||
} | ||
|
||
@Override | ||
public <A> void accept(VoidVisitor<A> v, A arg) { | ||
v.visit(this, arg); | ||
} | ||
|
||
public EmptyImportDeclaration() { | ||
this(Range.UNKNOWN); | ||
} | ||
|
||
public EmptyImportDeclaration(Range range) { | ||
super(range); | ||
} | ||
} |
Oops, something went wrong.