Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed May 3, 2021
1 parent 60983dd commit 1b52f9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/fornwall/jelf/ElfFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public ElfSection firstSectionByType(int type) throws ElfException {
public <T extends ElfSection> T firstSectionByType(Class<T> type) throws ElfException {
for (int i = 1; i < num_sh; i++) {
ElfSection sh = getSection(i);
if (type.isInstance(sh)) return (T) sh;
if (type.isInstance(sh)) return type.cast(sh);
}
return null;
}
Expand Down

0 comments on commit 1b52f9d

Please sign in to comment.