Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
J
jetbrains-plugin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JastAdd
jetbrains-plugin
Commits
6330a625
Commit
6330a625
authored
2 years ago
by
Johannes Mey
Browse files
Options
Downloads
Patches
Plain Diff
fix some wrong inspection messages
parent
34499bb9
No related branches found
No related tags found
1 merge request
!14
fix some wrong inspection messages
Pipeline
#14148
passed
2 years ago
Stage: test
Stage: jar
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-0
1 addition, 0 deletions
CHANGELOG.md
src/main/java/org/jastadd/tooling/aspect/JavaLanguageInjector.java
+2
-2
2 additions, 2 deletions
...java/org/jastadd/tooling/aspect/JavaLanguageInjector.java
with
3 additions
and
2 deletions
CHANGELOG.md
+
1
−
0
View file @
6330a625
...
...
@@ -24,6 +24,7 @@
### Fixed
-
A bug for type name refactoring in grammar files which prevented the actual definition from being renamed.
-
Wrong inspection messages related to names in wrappers of injected java code ("x", "m", "X").
## [0.2.0]
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/jastadd/tooling/aspect/JavaLanguageInjector.java
+
2
−
2
View file @
6330a625
...
...
@@ -26,9 +26,9 @@ public class JavaLanguageInjector implements LanguageInjector {
if
(
host
.
isValidHost
())
{
// TODO more injections
if
(
host
instanceof
JastAddAspectBlock
)
{
injectionPlacesRegistrar
.
addPlace
(
JavaLanguage
.
INSTANCE
,
new
TextRange
(
1
,
host
.
getTextLength
()
-
1
),
"class
X { public void m
() {"
,
"}}"
);
injectionPlacesRegistrar
.
addPlace
(
JavaLanguage
.
INSTANCE
,
new
TextRange
(
1
,
host
.
getTextLength
()
-
1
),
"class
Unused$ClassName { public void unused$MethodName
() {"
,
"}}"
);
}
else
if
(
host
instanceof
JastAddAspectExpression
)
{
injectionPlacesRegistrar
.
addPlace
(
JavaLanguage
.
INSTANCE
,
new
TextRange
(
0
,
host
.
getTextLength
()),
"class
X { public void m() {Object x
= "
,
";}}"
);
injectionPlacesRegistrar
.
addPlace
(
JavaLanguage
.
INSTANCE
,
new
TextRange
(
0
,
host
.
getTextLength
()),
"class
Unused$ClassName { public void unused$MethodName() {Object unused$VariableName
= "
,
";}}"
);
}
else
if
(
host
instanceof
JastAddAspectAspectClassDeclaration
)
{
injectionPlacesRegistrar
.
addPlace
(
JavaLanguage
.
INSTANCE
,
new
TextRange
(
0
,
host
.
getTextLength
()),
""
,
""
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment