mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
GP-5346 - Decompiler - Fixed sporadic function color bug that caused bad
function colors to oscillate
This commit is contained in:
parent
802586c6fb
commit
f078e5fe62
3 changed files with 20 additions and 13 deletions
|
@ -4,9 +4,9 @@
|
|||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
@ -16,6 +16,7 @@
|
|||
package docking.widgets.fieldpanel.field;
|
||||
|
||||
import java.awt.*;
|
||||
import java.util.Objects;
|
||||
|
||||
import javax.swing.Icon;
|
||||
import javax.swing.JComponent;
|
||||
|
@ -94,9 +95,9 @@ public class AttributedString {
|
|||
throw new NullPointerException("underline color cannot be null when underlining.");
|
||||
}
|
||||
this.icon = icon;
|
||||
this.text = text;
|
||||
this.fontMetrics = fontMetrics;
|
||||
this.textColor = textColor;
|
||||
this.text = Objects.requireNonNull(text);
|
||||
this.fontMetrics = Objects.requireNonNull(fontMetrics);
|
||||
this.textColor = Objects.requireNonNull(textColor);
|
||||
this.isUnderlined = underline;
|
||||
this.underlineColor = underlineColor;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue