aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core/src
diff options
context:
space:
mode:
authorLars Grefer <eclipse@larsgrefer.de>2020-08-17 01:19:52 +0200
committerLars Grefer <eclipse@larsgrefer.de>2020-08-17 01:19:52 +0200
commit85ad27ee704fa8c17345bbe46c959a3e6ccbd179 (patch)
tree64db483a4fd9027cb3ba862e371427538631b5dc /org.aspectj.ajdt.core/src
parentc5be7f17349f1e7ea5d3da4be09b5f3e964de19b (diff)
downloadaspectj-85ad27ee704fa8c17345bbe46c959a3e6ccbd179.tar.gz
aspectj-85ad27ee704fa8c17345bbe46c959a3e6ccbd179.zip
Remove unnecessary interface modifiers
Signed-off-by: Lars Grefer <eclipse@larsgrefer.de>
Diffstat (limited to 'org.aspectj.ajdt.core/src')
-rw-r--r--org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java4
-rw-r--r--org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/core/builder/IStateListener.java38
-rw-r--r--org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjASTTestCase.java36
3 files changed, 39 insertions, 39 deletions
diff --git a/org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java b/org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java
index f81e5bf95..b24012963 100644
--- a/org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java
+++ b/org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/compiler/ast/AspectDeclaration.java
@@ -403,8 +403,8 @@ public class AspectDeclaration extends TypeDeclaration {
}
}
- private static interface BodyGenerator {
- public void generate(CodeStream codeStream);
+ private interface BodyGenerator {
+ void generate(CodeStream codeStream);
}
private void generateMethod(ClassFile classFile, ResolvedMember member, BodyGenerator gen) {
diff --git a/org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/core/builder/IStateListener.java b/org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/core/builder/IStateListener.java
index 97a2a2baf..87c24374d 100644
--- a/org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/core/builder/IStateListener.java
+++ b/org.aspectj.ajdt.core/src/main/java/org/aspectj/ajdt/internal/core/builder/IStateListener.java
@@ -1,13 +1,13 @@
/**
* Copyright (c) 2005 IBM and other contributors
- * All rights reserved.
- * This program and the accompanying materials are made available
- * under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Andy Clement initial implementation
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Andy Clement initial implementation
* ******************************************************************/
package org.aspectj.ajdt.internal.core.builder;
@@ -22,34 +22,34 @@ import java.util.List;
*
* Not yet complete, will expand as we determine what extra useful information
* should be recorded.
- *
+ *
* @author AndyClement
*/
public interface IStateListener {
- public void detectedClassChangeInThisDir(File f);
+ void detectedClassChangeInThisDir(File f);
+
+ void aboutToCompareClasspaths(List oldClasspath, List newClasspath);
- public void aboutToCompareClasspaths(List oldClasspath, List newClasspath);
+ void pathChangeDetected();
- public void pathChangeDetected();
-
/**
* Called if state processing detects a file was deleted that contained an aspect declaration.
* Incremental compilation will not be attempted if this occurs.
*/
- public void detectedAspectDeleted(File f);
+ void detectedAspectDeleted(File f);
+
+ void buildSuccessful(boolean wasFullBuild);
- public void buildSuccessful(boolean wasFullBuild);
-
/**
* When a decision is made during compilation (such as needing to recompile some new file, or drop back to batch) this
* method is called with the decision.
*/
- public void recordDecision(String decision);
-
+ void recordDecision(String decision);
+
/**
* Provides feedback during compilation on what stage we are at
*/
- public void recordInformation(String info);
+ void recordInformation(String info);
}
diff --git a/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjASTTestCase.java b/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjASTTestCase.java
index 304a7996b..a28308bb1 100644
--- a/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjASTTestCase.java
+++ b/org.aspectj.ajdt.core/src/test/java/org/aspectj/tools/ajc/AjASTTestCase.java
@@ -1,10 +1,10 @@
/********************************************************************
- * Copyright (c) 2006, 2010 Contributors. All rights reserved.
- * This program and the accompanying materials are made available
- * under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution and is available at
- * http://eclipse.org/legal/epl-v10.html
- *
+ * Copyright (c) 2006, 2010 Contributors. All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://eclipse.org/legal/epl-v10.html
+ *
* Contributors: Helen Hawkins - initial implementation
* Matthew Webster - initial implementation
*******************************************************************/
@@ -59,7 +59,7 @@ public abstract class AjASTTestCase extends TestCase {
}
/**
- *
+ *
* @param source
* to parse and visit
* @param expectedSourceRanges
@@ -72,7 +72,7 @@ public abstract class AjASTTestCase extends TestCase {
}
/**
- *
+ *
* @param source
* to parse and visit
* @param expectedCategory
@@ -96,37 +96,37 @@ public abstract class AjASTTestCase extends TestCase {
}
/*
- *
- *
+ *
+ *
* Testing Classes and Interfaces
*/
/**
* Tests the results of a visitor when walking the AST
- *
+ *
*/
interface ITypePatternTester {
/**
- *
+ *
* @return visitor to walk the AST. Must not be null.
*/
- public AjASTVisitor createVisitor();
+ AjASTVisitor createVisitor();
/**
* Tests a condition after the visitor has visited the AST. This means
* the visitor should contain the results of the visitation.
- *
+ *
* @return true if test condition passed. False otherwise
*/
- public void testCondition(AjASTVisitor visitor);
+ void testCondition(AjASTVisitor visitor);
}
/**
* Tests whether a particular type category type pattern (InnerType,
* InterfaceType, ClassType, etc..) is encountered when visiting nodes in an
* AST.
- *
+ *
*/
class TypeCategoryTester implements ITypePatternTester {
@@ -163,7 +163,7 @@ public abstract class AjASTTestCase extends TestCase {
/**
* Tests the starting location and source length of each TypePattern node
* encountered while walking the AST.
- *
+ *
*/
class TypePatternSourceRangeTester implements ITypePatternTester {
@@ -204,7 +204,7 @@ public abstract class AjASTTestCase extends TestCase {
/**
* Tests whether a particular AST node starts at a given expected location
* and has an expected length
- *
+ *
*/
class SourceRangeTester implements ITypePatternTester {