diff options
author | Kui Liu <brucekuiliu@gmail.com> | 2018-08-21 17:32:54 +0200 |
---|---|---|
committer | Andy Clement <aclement@pivotal.io> | 2018-10-11 11:00:54 -0700 |
commit | b0bd12a6f1efa815445ba3c9356d9781b4f1baaf (patch) | |
tree | 3d3e4661708a217a611fd991c0c6e6ff1f097945 /bcel-builder/src | |
parent | ef7411136acfe9dd531d8e9faeb439025cd3c3c6 (diff) | |
download | aspectj-b0bd12a6f1efa815445ba3c9356d9781b4f1baaf.tar.gz aspectj-b0bd12a6f1efa815445ba3c9356d9781b4f1baaf.zip |
Change the mehtod name "containsField" to "findsField".
The method implements finding a field object in the 'fieldsList' with a given name. If found, return the found field object, otherwise return null.
Thus, rename the method as "findsField" should be more clear than "containsField" since "containsField" is prone to ask whether the "fieldsFile" contains a field or not and return true or false.
Signed-off-by: Kui Liu <brucekuiliu@gmail.com>
Diffstat (limited to 'bcel-builder/src')
-rw-r--r-- | bcel-builder/src/org/aspectj/apache/bcel/generic/ClassGen.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bcel-builder/src/org/aspectj/apache/bcel/generic/ClassGen.java b/bcel-builder/src/org/aspectj/apache/bcel/generic/ClassGen.java index f12bd4491..4ba767d97 100644 --- a/bcel-builder/src/org/aspectj/apache/bcel/generic/ClassGen.java +++ b/bcel-builder/src/org/aspectj/apache/bcel/generic/ClassGen.java @@ -270,7 +270,7 @@ public class ClassGen extends Modifiers implements Cloneable { /** * @return field object with given name, or null if not found */ - public Field containsField(String name) { + public Field findsField(String name) { for (Field field : fieldsList) { if (field.getName().equals(name)) { return field; |