mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-20 21:03:18 +00:00
8302120: Prefer ArrayList to LinkedList in AggregatePainter
Reviewed-by: serb
This commit is contained in:
parent
2e78d838a5
commit
1dbd18ac63
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2003, 2005, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -25,7 +25,8 @@
|
||||
package javax.swing.plaf.synth;
|
||||
|
||||
import java.awt.Graphics;
|
||||
import java.util.LinkedList;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import sun.swing.plaf.synth.DefaultSynthStyle;
|
||||
|
||||
@ -265,10 +266,10 @@ class ParsedSynthStyle extends DefaultSynthStyle {
|
||||
}
|
||||
|
||||
private static class AggregatePainter extends SynthPainter {
|
||||
private java.util.List<SynthPainter> painters;
|
||||
private final List<SynthPainter> painters;
|
||||
|
||||
AggregatePainter(SynthPainter painter) {
|
||||
painters = new LinkedList<SynthPainter>();
|
||||
painters = new ArrayList<>();
|
||||
painters.add(painter);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user