protect 47 no-arg constructors in the jme3-core library (#1228)

This commit is contained in:
Stephen Gold 2019-12-01 14:35:52 -08:00 committed by GitHub
parent c73fd99dd6
commit 9d2d393fc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
42 changed files with 68 additions and 68 deletions

View File

@ -16,7 +16,7 @@ public class AnimClip implements JmeCloneable, Savable {
private AnimTrack[] tracks;
public AnimClip() {
protected AnimClip() {
}
public AnimClip(String name) {

View File

@ -28,7 +28,7 @@ public class Armature implements JmeCloneable, Savable {
/**
* Serialization only
*/
public Armature() {
protected Armature() {
}
/**

View File

@ -59,7 +59,7 @@ public class MorphTrack implements AnimTrack<float[]> {
/**
* Serialization-only. Do not use.
*/
public MorphTrack() {
protected MorphTrack() {
}
/**

View File

@ -115,7 +115,7 @@ public class SkinningControl extends AbstractControl implements Cloneable, JmeCl
/**
* Serialization only. Do not use.
*/
public SkinningControl() {
protected SkinningControl() {
}
/**

View File

@ -65,7 +65,7 @@ public class Animation implements Savable, Cloneable, JmeCloneable {
/**
* Serialization-only. Do not use.
*/
public Animation() {
protected Animation() {
}
/**

View File

@ -82,9 +82,9 @@ public class AudioTrack implements ClonableTrack {
}
/**
* default constructor for serialization only
* constructor for serialization only
*/
public AudioTrack() {
protected AudioTrack() {
}
/**

View File

@ -176,7 +176,7 @@ public final class Bone implements Savable, JmeCloneable {
/**
* Serialization only. Do not use.
*/
public Bone() {
protected Bone() {
}
@Override

View File

@ -65,7 +65,7 @@ public final class BoneTrack implements JmeCloneable, Track {
/**
* Serialization-only. Do not use.
*/
public BoneTrack() {
protected BoneTrack() {
}
/**

View File

@ -144,9 +144,9 @@ public class EffectTrack implements ClonableTrack {
}
/**
* default constructor only for serialization
* constructor only for serialization
*/
public EffectTrack() {
protected EffectTrack() {
}
/**

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -63,7 +63,7 @@ public final class Pose implements Savable, Cloneable {
/**
* Serialization-only. Do not use.
*/
public Pose()
protected Pose()
{
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -62,7 +62,7 @@ public final class PoseTrack implements Track {
/**
* Serialization-only. Do not use.
*/
public PoseFrame()
protected PoseFrame()
{
}
@ -114,7 +114,7 @@ public final class PoseTrack implements Track {
/**
* Serialization-only. Do not use.
*/
public PoseTrack()
protected PoseTrack()
{
}

View File

@ -121,7 +121,7 @@ public final class Skeleton implements Savable, JmeCloneable {
/**
* Serialization only. Do not use.
*/
public Skeleton() {
protected Skeleton() {
}
@Override

View File

@ -113,7 +113,7 @@ public class SkeletonControl extends AbstractControl implements Cloneable, JmeCl
/**
* Serialization only. Do not use.
*/
public SkeletonControl() {
protected SkeletonControl() {
}
private void switchToHardware() {

View File

@ -105,7 +105,7 @@ public class Cinematic extends AbstractCinematicEvent implements AppState {
* Used for serialization creates a cinematic, don't use this constructor
* directly
*/
public Cinematic() {
protected Cinematic() {
super();
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -75,7 +75,7 @@ public class AnimationEvent extends AbstractCinematicEvent {
* used for serialization don't call directly use one of the following
* constructors
*/
public AnimationEvent() {
protected AnimationEvent() {
super();
}

View File

@ -297,7 +297,7 @@ public class ParticleEmitter extends Geometry {
/**
* For serialization only. Do not use.
*/
public ParticleEmitter() {
protected ParticleEmitter() {
super();
setBatchHint(BatchHint.Never);
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -69,9 +69,9 @@ public final class LightList implements Iterable<Light>, Savable, Cloneable, Jme
};
/**
* Default constructor for serialization. Do not use
* constructor for serialization. Do not use
*/
public LightList(){
protected LightList(){
}
/**

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -66,7 +66,7 @@ public class MatParam implements Savable, Cloneable {
/**
* Serialization only. Do not use.
*/
public MatParam() {
protected MatParam() {
}
/**

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2016 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -83,7 +83,7 @@ public final class MatParamOverride extends MatParam {
/**
* Serialization only. Do not use.
*/
public MatParamOverride() {
protected MatParamOverride() {
super();
}

View File

@ -59,7 +59,7 @@ public class MaterialDef{
/**
* Serialization only. Do not use.
*/
public MaterialDef(){
protected MaterialDef(){
}
/**

View File

@ -181,7 +181,7 @@ public class TechniqueDef implements Savable, Cloneable {
/**
* Serialization only. Do not use.
*/
public TechniqueDef() {
protected TechniqueDef() {
shaderLanguages = new EnumMap<Shader.ShaderType, String>(Shader.ShaderType.class);
shaderNames = new EnumMap<Shader.ShaderType, String>(Shader.ShaderType.class);
defineNames = new ArrayList<String>();

View File

@ -99,7 +99,7 @@ public class FilterPostProcessor implements SceneProcessor, Savable {
* Don't use this constructor, use {@link #FilterPostProcessor(AssetManager assetManager)}<br>
* This constructor is used for serialization only
*/
public FilterPostProcessor() {
protected FilterPostProcessor() {
}
/**

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -52,7 +52,7 @@ public class CameraNode extends Node {
/**
* Serialization only. Do not use.
*/
public CameraNode() {
protected CameraNode() {
super();
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -52,7 +52,7 @@ public class LightNode extends Node {
/**
* Serialization only. Do not use.
*/
public LightNode() {
protected LightNode() {
}
public LightNode(String name, Light light) {

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -382,7 +382,7 @@ public class VertexBuffer extends NativeObject implements Savable, Cloneable {
/**
* Serialization only. Do not use.
*/
public VertexBuffer(){
protected VertexBuffer(){
super();
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2018 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -62,7 +62,7 @@ public class Arrow extends Mesh {
/**
* Serialization only. Do not use.
*/
public Arrow() {
protected Arrow() {
}
/**

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -42,7 +42,7 @@ public class JointShape extends Mesh {
/**
* Serialization only. Do not use.
*/
public JointShape() {
protected JointShape() {
float width = 1;
float height = 1;
setBuffer(Type.Position, 3, new float[]{-width * 0.5f, -width * 0.5f, 0,

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -67,7 +67,7 @@ public class InstancedGeometry extends Geometry {
/**
* Serialization only. Do not use.
*/
public InstancedGeometry() {
protected InstancedGeometry() {
super();
setIgnoreTransform(true);
setBatchHint(BatchHint.Never);

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2018 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -130,7 +130,7 @@ public class Box extends AbstractBox {
/**
* Empty constructor for serialization only. Do not use.
*/
public Box(){
protected Box(){
super();
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -55,7 +55,7 @@ public class Curve extends Mesh {
/**
* Serialization only. Do not use.
*/
public Curve() {
protected Curve() {
}
/**

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2018 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -64,9 +64,9 @@ public class Cylinder extends Mesh {
private boolean inverted;
/**
* Default constructor for serialization only. Do not use.
* constructor for serialization only. Do not use.
*/
public Cylinder() {
protected Cylinder() {
}
/**

View File

@ -66,7 +66,7 @@ public class Dome extends Mesh {
/**
* Serialization only. Do not use.
*/
public Dome() {
protected Dome() {
}
/**

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2010 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -56,7 +56,7 @@ public class Quad extends Mesh {
/**
* Serialization only. Do not use.
*/
public Quad(){
protected Quad(){
}
/**

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2018 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -84,7 +84,7 @@ public class Sphere extends Mesh {
/**
* Serialization only. Do not use.
*/
public Sphere() {
protected Sphere() {
}
/**

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -124,7 +124,7 @@ public class StripBox extends AbstractBox {
/**
* Empty constructor for serialization only. Do not use.
*/
public StripBox(){
protected StripBox(){
super();
}

View File

@ -77,7 +77,7 @@ public class DirectionalLightShadowRenderer extends AbstractShadowRenderer {
* DirectionalLightShadowRenderer#DirectionalLightShadowRenderer(AssetManager
* assetManager, int shadowMapSize, int nbSplits)
*/
public DirectionalLightShadowRenderer() {
protected DirectionalLightShadowRenderer() {
super();
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2018 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -62,7 +62,7 @@ public class PointLightShadowFilter extends AbstractShadowFilter<PointLightShado
* assetManager, int shadowMapSize)
* instead.
*/
public PointLightShadowFilter() {
protected PointLightShadowFilter() {
super();
}

View File

@ -68,7 +68,7 @@ public class PointLightShadowRenderer extends AbstractShadowRenderer {
* assetManager, int shadowMapSize)
* instead.
*/
public PointLightShadowRenderer() {
protected PointLightShadowRenderer() {
super();
}

View File

@ -75,7 +75,7 @@ public class PssmShadowFilter extends Filter {
* assetManager, int size, int nbSplits)
* instead.
*/
public PssmShadowFilter() {
protected PssmShadowFilter() {
super();
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2018 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -62,7 +62,7 @@ public class SpotLightShadowFilter extends AbstractShadowFilter<SpotLightShadowR
* int shadowMapSize)
* instead.
*/
public SpotLightShadowFilter() {
protected SpotLightShadowFilter() {
super();
}

View File

@ -73,7 +73,7 @@ public class SpotLightShadowRenderer extends AbstractShadowRenderer {
/**
* Used for serialization use SpotLightShadowRenderer#SpotLightShadowRenderer(AssetManager assetManager, int shadowMapSize)
*/
public SpotLightShadowRenderer() {
protected SpotLightShadowRenderer() {
super();
}

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2009-2012 jMonkeyEngine
* Copyright (c) 2009-2019 jMonkeyEngine
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -83,7 +83,7 @@ public class Picture extends Geometry {
/*
* Serialization only. Do not use.
*/
public Picture(){
protected Picture(){
}
/**