Skip to content

Commit 699094c

Browse files
committed
Import optimizations
1 parent 1dc40e4 commit 699094c

File tree

23 files changed

+138
-123
lines changed

23 files changed

+138
-123
lines changed

app/3d-viewer/src/test/java/org/phoebus/app/viewer3d/Viewer3dParserDemo.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
*******************************************************************************/
88
package org.phoebus.app.viewer3d;
99

10-
import static org.junit.jupiter.api.Assertions.*;
11-
12-
import java.io.ByteArrayInputStream;
13-
14-
import org.junit.jupiter.api.Test;
15-
import org.phoebus.applications.viewer3d.Viewer3d;
16-
import org.phoebus.applications.viewer3d.Xform;
17-
1810
import javafx.application.Platform;
1911
import javafx.scene.paint.Color;
2012
import javafx.scene.paint.PhongMaterial;
2113
import javafx.scene.shape.Sphere;
14+
import org.junit.jupiter.api.Test;
15+
import org.phoebus.applications.viewer3d.Viewer3d;
16+
import org.phoebus.applications.viewer3d.Xform;
17+
18+
import java.io.ByteArrayInputStream;
19+
20+
import static org.junit.jupiter.api.Assertions.assertEquals;
21+
import static org.junit.jupiter.api.Assertions.assertTrue;
2222

2323
/** Demo of 3D parser.
2424
*

app/alarm/datasource/src/test/java/org/phoebus/pv/alarm/AlarmContextTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import org.junit.jupiter.api.Test;
44

5-
import static org.junit.jupiter.api.Assertions.*;
5+
import static org.junit.jupiter.api.Assertions.assertEquals;
66

77
public class AlarmContextTest {
88

app/alarm/datasource/src/test/java/org/phoebus/pv/alarm/AlarmPVInfoTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import java.util.Optional;
66

7-
import static org.junit.jupiter.api.Assertions.*;
7+
import static org.junit.jupiter.api.Assertions.assertEquals;
88

99
public class AlarmPVInfoTest {
1010

app/channel/views/src/test/java/org/phoebus/channel/views/ui/AddPropertyDemo.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
package org.phoebus.channel.views.ui;
22

3-
import java.io.IOException;
4-
import java.util.Arrays;
5-
63
import javafx.fxml.FXMLLoader;
74
import javafx.scene.Parent;
85
import javafx.scene.Scene;
96
import javafx.stage.Stage;
107
import org.phoebus.ui.javafx.ApplicationWrapper;
118

12-
import static org.phoebus.channelfinder.Property.Builder.*;
9+
import java.io.IOException;
10+
import java.util.Arrays;
11+
12+
import static org.phoebus.channelfinder.Property.Builder.property;
1313

1414
public class AddPropertyDemo extends ApplicationWrapper {
1515

app/display/convert-medm/src/test/java/org/csstudio/display/converter/medm/ConverterTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
package org.csstudio.display.converter.medm;
22

3-
import static org.junit.jupiter.api.Assertions.*;
3+
import org.csstudio.display.builder.model.DisplayModel;
4+
import org.csstudio.display.builder.model.Widget;
5+
import org.csstudio.display.builder.model.persist.ModelReader;
6+
import org.csstudio.display.builder.model.properties.ScriptPV;
7+
import org.csstudio.display.builder.model.rules.RuleInfo;
8+
import org.csstudio.display.builder.model.rules.RuleInfo.ExpressionInfo;
9+
import org.junit.jupiter.api.BeforeAll;
10+
import org.junit.jupiter.api.Test;
411

512
import java.io.BufferedReader;
613
import java.io.File;
@@ -12,14 +19,7 @@
1219
import java.util.logging.Logger;
1320
import java.util.stream.Collectors;
1421

15-
import org.csstudio.display.builder.model.DisplayModel;
16-
import org.csstudio.display.builder.model.Widget;
17-
import org.csstudio.display.builder.model.persist.ModelReader;
18-
import org.csstudio.display.builder.model.properties.ScriptPV;
19-
import org.csstudio.display.builder.model.rules.RuleInfo;
20-
import org.csstudio.display.builder.model.rules.RuleInfo.ExpressionInfo;
21-
import org.junit.jupiter.api.BeforeAll;
22-
import org.junit.jupiter.api.Test;
22+
import static org.junit.jupiter.api.Assertions.assertEquals;
2323

2424

2525
@SuppressWarnings("nls")

app/display/navigation/src/test/java/org/phoebus/applications/display/navigation/ProcessOPITest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
import java.util.HashSet;
88
import java.util.Set;
99

10-
import static org.junit.jupiter.api.Assertions.*;
11-
10+
import static org.hamcrest.CoreMatchers.is;
1211
import static org.hamcrest.MatcherAssert.assertThat;
13-
import static org.hamcrest.CoreMatchers.*;
12+
import static org.junit.jupiter.api.Assertions.assertThrows;
13+
import static org.junit.jupiter.api.Assertions.assertTrue;
1414

1515
/**
1616
* A utility Class for handling the navigation of .bob files

app/display/representation/src/test/java/org/csstudio/display/builder/representation/UpdateThrottleTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
*******************************************************************************/
88
package org.csstudio.display.builder.representation;
99

10-
import static org.hamcrest.CoreMatchers.equalTo;
11-
import static org.hamcrest.MatcherAssert.*;
10+
import org.csstudio.display.builder.model.Widget;
11+
import org.junit.jupiter.api.Test;
1212

1313
import java.time.Instant;
1414
import java.util.concurrent.Executors;
1515
import java.util.concurrent.TimeUnit;
1616
import java.util.concurrent.atomic.AtomicInteger;
1717

18-
import org.csstudio.display.builder.model.Widget;
19-
import org.junit.jupiter.api.Test;
18+
import static org.hamcrest.CoreMatchers.equalTo;
19+
import static org.hamcrest.MatcherAssert.assertThat;
2020

2121
/** JUnit test of {@link UpdateThrottleTest}
2222
*

app/display/runtime/src/test/java/org/csstudio/display/builder/runtime/test/JythonTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
*******************************************************************************/
88
package org.csstudio.display.builder.runtime.test;
99

10-
import static org.hamcrest.CoreMatchers.containsString;
11-
import static org.hamcrest.CoreMatchers.not;
12-
import static org.hamcrest.CoreMatchers.nullValue;
13-
import static org.hamcrest.MatcherAssert.*;
10+
import org.junit.jupiter.api.Test;
11+
import org.python.core.PyCode;
12+
import org.python.core.PySystemState;
13+
import org.python.core.RegistryKey;
14+
import org.python.util.PythonInterpreter;
1415

1516
import java.util.ArrayList;
1617
import java.util.List;
@@ -20,11 +21,10 @@
2021
import java.util.concurrent.Executors;
2122
import java.util.concurrent.Future;
2223

23-
import org.junit.jupiter.api.Test;
24-
import org.python.core.PyCode;
25-
import org.python.core.PySystemState;
26-
import org.python.core.RegistryKey;
27-
import org.python.util.PythonInterpreter;
24+
import static org.hamcrest.CoreMatchers.containsString;
25+
import static org.hamcrest.CoreMatchers.not;
26+
import static org.hamcrest.CoreMatchers.nullValue;
27+
import static org.hamcrest.MatcherAssert.assertThat;
2828

2929
/** Jython Demo
3030
*

app/logbook/olog/ui/src/test/java/org/phoebus/logbook/olog/ui/LogPropertiesEditorDemo.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,12 @@
1818
import org.phoebus.ui.javafx.ApplicationWrapper;
1919

2020
import java.io.IOException;
21-
import java.util.*;
21+
import java.util.Arrays;
22+
import java.util.Collection;
23+
import java.util.HashMap;
24+
import java.util.List;
25+
import java.util.Map;
26+
import java.util.ResourceBundle;
2227
import java.util.logging.Level;
2328
import java.util.logging.Logger;
2429

app/rtplot/src/test/java/org/csstudio/javafx/rtplot/TicksTestBase.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@
77
******************************************************************************/
88
package org.csstudio.javafx.rtplot;
99

10-
import static org.hamcrest.CoreMatchers.equalTo;
11-
import static org.hamcrest.MatcherAssert.*;
12-
13-
import java.awt.Graphics2D;
14-
import java.awt.image.BufferedImage;
15-
import java.util.Iterator;
16-
import java.util.List;
17-
import java.util.Locale;
18-
1910
import org.csstudio.javafx.rtplot.internal.LinearTicks;
2011
import org.csstudio.javafx.rtplot.internal.MajorTick;
2112
import org.csstudio.javafx.rtplot.internal.MinorTick;
@@ -24,6 +15,15 @@
2415
import org.junit.jupiter.api.BeforeAll;
2516
import org.junit.jupiter.api.Test;
2617

18+
import java.awt.Graphics2D;
19+
import java.awt.image.BufferedImage;
20+
import java.util.Iterator;
21+
import java.util.List;
22+
import java.util.Locale;
23+
24+
import static org.hamcrest.CoreMatchers.equalTo;
25+
import static org.hamcrest.MatcherAssert.assertThat;
26+
2727

2828
/** Helper for testing ticks
2929
* @author Kay Kasemir

0 commit comments

Comments
 (0)