Skip to content
Snippets Groups Projects

fix some wrong inspection messages

Merged Johannes Mey requested to merge bugfix/avoid-exception-not-thrown-warning into develop
2 files
+ 3
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -26,9 +26,9 @@ public class JavaLanguageInjector implements LanguageInjector {
@@ -26,9 +26,9 @@ public class JavaLanguageInjector implements LanguageInjector {
if (host.isValidHost()) {
if (host.isValidHost()) {
// TODO more injections
// TODO more injections
if (host instanceof JastAddAspectBlock) {
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) {
} 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) {
} else if (host instanceof JastAddAspectAspectClassDeclaration) {
injectionPlacesRegistrar.addPlace(JavaLanguage.INSTANCE, new TextRange(0, host.getTextLength()), "", "");
injectionPlacesRegistrar.addPlace(JavaLanguage.INSTANCE, new TextRange(0, host.getTextLength()), "", "");
}
}
Loading