Skip to content

Commit

Permalink
types: enhancement range class.Fields
Browse files Browse the repository at this point in the history
  • Loading branch information
zdyj3170101136 committed Aug 1, 2023
1 parent 7151b79 commit 91d9ca7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parser/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ func parseFields(r reader.Reader, classes ClassMap, cpools PoolMap, class *Class
if constants != nil && cap(*constants) == 0 && class.numConstants != 0 && !resolved {
*constants = make([]constant, 0, class.numConstants)
}
for _, f := range class.Fields {
for i := range class.Fields {
f := &class.Fields[i]
if f.ConstantPool {
if constants != nil && !resolved {
if err := appendConstant(r, constants, f.Name, f.Class); err != nil {
Expand Down

0 comments on commit 91d9ca7

Please sign in to comment.