Skip to content

Commit fbdb24f

Browse files
committed
Simplify decorators construction
1 parent 444a2ea commit fbdb24f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

api/src/main/java/org/commonjava/maven/galley/io/TransferDecoratorManager.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class TransferDecoratorManager
4444
@Inject
4545
private Instance<TransferDecorator> transferDecorators;
4646

47-
private List<TransferDecorator> decorators;
47+
private List<TransferDecorator> decorators = new ArrayList<>();
4848

4949
public TransferDecoratorManager()
5050
{
@@ -53,7 +53,6 @@ public TransferDecoratorManager()
5353
@PostConstruct
5454
private void initDecorators()
5555
{
56-
decorators = new ArrayList<>();
5756
if ( transferDecorators != null )
5857
{
5958
transferDecorators.forEach( decorator -> decorators.add( decorator ) );

0 commit comments

Comments
 (0)