소스 검색

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>
tags/V1_9_2RC3
Kui Liu 5 년 전
부모
커밋
b0bd12a6f1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      bcel-builder/src/org/aspectj/apache/bcel/generic/ClassGen.java

+ 1
- 1
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;

Loading…
취소
저장