From 883e3088ae0a9b24f9bd7f7e677bac43002ca604 Mon Sep 17 00:00:00 2001 From: Nathan Baltzell Date: Tue, 13 Oct 2026 17:10:53 -0400 Subject: [PATCH] remove defunct System.getSecurityManager --- .../src/main/java/cnuphys/splot/plot/VerticalLabelUI.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/common-tools/cnuphys/splot/src/main/java/cnuphys/splot/plot/VerticalLabelUI.java b/common-tools/cnuphys/splot/src/main/java/cnuphys/splot/plot/VerticalLabelUI.java index 15ed56ebe7..5fea097bfa 100644 --- a/common-tools/cnuphys/splot/src/main/java/cnuphys/splot/plot/VerticalLabelUI.java +++ b/common-tools/cnuphys/splot/src/main/java/cnuphys/splot/plot/VerticalLabelUI.java @@ -35,7 +35,6 @@ public class VerticalLabelUI extends BasicLabelUI { Rectangle verticalIconR = new Rectangle(); Rectangle verticalTextR = new Rectangle(); protected static VerticalLabelUI verticalLabelUI = new VerticalLabelUI(); - private final static VerticalLabelUI SAFE_VERTICAL_LABEL_UI = new VerticalLabelUI(); /** * Constructs a VerticalLabelUI with the default anticlockwise @@ -58,12 +57,7 @@ public VerticalLabelUI(boolean clockwise) { * @see ComponentUI#createUI(javax.swing.JComponent) */ public static ComponentUI createUI(JComponent c) { - if (System.getSecurityManager() != null) { - return SAFE_VERTICAL_LABEL_UI; - } - else { - return verticalLabelUI; - } + return verticalLabelUI; } /**