Skip to content

Commit 250a0e2

Browse files
committed
PR comment
1 parent f0c4020 commit 250a0e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tez-dag/src/main/java/org/apache/tez/dag/app/PluginManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ public static void parsePlugin(List<NamedEntityDescriptor> resultList,
189189
public static void addDescriptor(List<NamedEntityDescriptor> list, BiMap<String, Integer> pluginMap,
190190
NamedEntityDescriptor namedEntityDescriptor) {
191191
list.add(namedEntityDescriptor);
192-
pluginMap.put(list.get(list.size() - 1).getEntityName(), list.size() - 1);
192+
pluginMap.put(list.getLast().getEntityName(), list.size() - 1);
193193
}
194194

195195
/**

0 commit comments

Comments
 (0)