Skip to content

Commit

Permalink
Remove use of deprecated method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Beust committed Sep 4, 2011
1 parent 413eb43 commit 0a809ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/testng/internal/TestMethodWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ protected void invokeAfterClassMethods(ITestClass testClass, IMethodInstance mi)
//
List<Object> invokeInstances= Lists.newArrayList();
ITestNGMethod tm= mi.getMethod();
if (m_classMethodMap.removeAndCheckIfLast(tm, mi.getInstances()[0])) {
if (m_classMethodMap.removeAndCheckIfLast(tm, mi.getInstance())) {
Map<ITestClass, Set<Object>> invokedAfterClassMethods
= m_classMethodMap.getInvokedAfterClassMethods();
synchronized(invokedAfterClassMethods) {
Expand Down

0 comments on commit 0a809ad

Please sign in to comment.