Skip to content

Commit

Permalink
HV-405 Removing java 6 specific Arrays.copyOf call
Browse files Browse the repository at this point in the history
  • Loading branch information
hferentschik committed Dec 14, 2010
1 parent 8fc2078 commit 5dfa72c
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -191,13 +191,13 @@ private GroupChain determineGroupExecutionOrder(Class<?>[] groups) {
throw new IllegalArgumentException( "null passed as group name" );
}

Class<?>[] groupCopy = Arrays.copyOf( groups, groups.length );
Class<?>[] tmpGroups = groups;
// if no groups is specified use the default
if ( groupCopy.length == 0 ) {
groupCopy = DEFAULT_GROUP_ARRAY;
if ( tmpGroups.length == 0 ) {
tmpGroups = DEFAULT_GROUP_ARRAY;
}

return groupChainGenerator.getGroupChainFor( Arrays.asList( groupCopy ) );
return groupChainGenerator.getGroupChainFor( Arrays.asList( tmpGroups ) );
}

/**
Expand Down

0 comments on commit 5dfa72c

Please sign in to comment.