Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecations #182

Merged
merged 11 commits into from
Oct 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions nbproject/configs/AirspaceBuilder.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.AirspaceBuilder
1 change: 1 addition & 0 deletions nbproject/configs/Balloons.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.Balloons
1 change: 1 addition & 0 deletions nbproject/configs/ContextMenusOnShapes.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.ContextMenusOnShapes
1 change: 1 addition & 0 deletions nbproject/configs/ContourLines.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.ContourLines
1 change: 1 addition & 0 deletions nbproject/configs/DataInstallerApp.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.applications.dataimporter.DataInstallerApp
1 change: 1 addition & 0 deletions nbproject/configs/DebuggingGLErrors.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.DebuggingGLErrors
1 change: 1 addition & 0 deletions nbproject/configs/ExtrudedShapes.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.ExtrudedShapes
1 change: 1 addition & 0 deletions nbproject/configs/FlatWorld.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.FlatWorld
1 change: 1 addition & 0 deletions nbproject/configs/GeoRSS.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.GeoRSS
1 change: 1 addition & 0 deletions nbproject/configs/GetBestElevations.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.GetBestElevations
1 change: 1 addition & 0 deletions nbproject/configs/GliderTestApp.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.applications.glider.GliderTestApp
1 change: 1 addition & 0 deletions nbproject/configs/Graticule.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.Graticule
1 change: 1 addition & 0 deletions nbproject/configs/ImportImagery.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.dataimport.ImportImagery
1 change: 1 addition & 0 deletions nbproject/configs/KeepObjectsInView.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.KeepingObjectsInView
1 change: 1 addition & 0 deletions nbproject/configs/LayerManagerApp.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.layermanager.LayerManagerApp
1 change: 1 addition & 0 deletions nbproject/configs/LineBackground.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.LineBackground
1 change: 1 addition & 0 deletions nbproject/configs/LinesOfSight.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.lineofsight.LinesOfSight
1 change: 1 addition & 0 deletions nbproject/configs/LoggingControl.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.LoggingControl
1 change: 1 addition & 0 deletions nbproject/configs/MeasureToolUsage.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.MeasureToolUsage
1 change: 1 addition & 0 deletions nbproject/configs/MultiResPath.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.MultiResPath
1 change: 1 addition & 0 deletions nbproject/configs/Paths.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.Paths
1 change: 1 addition & 0 deletions nbproject/configs/SARApp.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.applications.sar.SARApp
1 change: 1 addition & 0 deletions nbproject/configs/SurfaceImages.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.SurfaceImages
1 change: 1 addition & 0 deletions nbproject/configs/TerrainIntersections.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.TerrainIntersections
1 change: 1 addition & 0 deletions nbproject/configs/TerrainProfiler.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.TerrainProfiler
1 change: 1 addition & 0 deletions nbproject/configs/ViewControls.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.ViewControls
1 change: 1 addition & 0 deletions nbproject/configs/ViewLookAround.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.ViewLookAround
1 change: 1 addition & 0 deletions nbproject/configs/WorldWindDiagnostics.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.examples.WorldWindDiagnostics
1 change: 1 addition & 0 deletions nbproject/configs/WorldWindow.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
main.class=gov.nasa.worldwindx.applications.worldwindow.WorldWindow
File renamed without changes.
8 changes: 1 addition & 7 deletions build.properties → release-build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ worldwind.classes.dir=${worldwind.build.dir}/classes
worldwind.doc.dir=${worldwind.build.dir}/doc
worldwind.jar.dir=${worldwind.build.dir}/jar
worldwind.test.results.dir=${worldwind.build.dir}/test-results
worldwind.jdk=1.8
worldwind.jdk=11
#worldwind.exclude.jackson=true

# MIL-STD-2525 package build properties
Expand All @@ -26,9 +26,3 @@ milstd2525.png.dir=${milstd2525.out.dir}/png
milstd2525.png.width=128
milstd2525.png.height=128

# WebStart package build properties
webstart.src.dir=${basedir}/webstart
webstart.out.dir=${worldwind.build.dir}/webstart
webstart.unsigned.dir=${webstart.out.dir}/jar-unsigned
webstart.jar.dir=${webstart.out.dir}/jar
webstart.jnlp.dir=${webstart.out.dir}/jnlp
4 changes: 2 additions & 2 deletions release-build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

<!-- Import the ANT build properties and project ANT macros. -->

<property file="build.properties"/>
<import file="build.macros.xml"/>
<property file="release-build.properties"/>
<import file="release-build.macros.xml"/>

<!-- Main build targets. Provides generic targets that compile the Java sources, bundle JAR libraries, assemble API
documentation, test the Java sources, and clean up the build output. -->
Expand Down
25 changes: 9 additions & 16 deletions src/gov/nasa/worldwind/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,48 +3,41 @@
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/

package gov.nasa.worldwind;

/**
* @author tag
* @version $Id: Version.java 1171 2013-02-11 21:45:02Z dcollins $
*/
public class Version
{
public class Version {

private static final String MAJOR_VALUE = "2";
private static final String MINOR_VALUE = "1";
private static final String MINOR_VALUE = "2";
private static final String DOT_VALUE = "0";
private static final String versionNumber = "v" + MAJOR_VALUE + "." + MINOR_VALUE + "." + DOT_VALUE;
private static final String versionName = "NASA WorldWind Java";

public static String getVersion()
{
public static String getVersion() {
return versionName + " " + versionNumber;
}

public static String getVersionName()
{
public static String getVersionName() {
return versionName;
}

public static String getVersionNumber()
{
public static String getVersionNumber() {
return versionNumber;
}

public static String getVersionMajorNumber()
{
public static String getVersionMajorNumber() {
return MAJOR_VALUE;
}

public static String getVersionMinorNumber()
{
public static String getVersionMinorNumber() {
return MINOR_VALUE;
}

public static String getVersionDotNumber()
{
public static String getVersionDotNumber() {
return DOT_VALUE;
}
}
4 changes: 2 additions & 2 deletions src/gov/nasa/worldwind/WorldWind.java
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ public static Object createComponent(String className) throws WWRuntimeException

try
{
Class c = Class.forName(className.trim());
return c.newInstance();
Class<?> c = Class.forName(className.trim());
return c.getConstructor().newInstance();
}
catch (Exception e)
{
Expand Down
Loading