From 9d2d393fc3082415c6844152c7a002ecc38bfdd9 Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Sun, 1 Dec 2019 14:35:52 -0800 Subject: [PATCH] protect 47 no-arg constructors in the jme3-core library (#1228) --- jme3-core/src/main/java/com/jme3/anim/AnimClip.java | 2 +- jme3-core/src/main/java/com/jme3/anim/Armature.java | 2 +- jme3-core/src/main/java/com/jme3/anim/MorphTrack.java | 2 +- jme3-core/src/main/java/com/jme3/anim/SkinningControl.java | 2 +- jme3-core/src/main/java/com/jme3/animation/Animation.java | 2 +- jme3-core/src/main/java/com/jme3/animation/AudioTrack.java | 4 ++-- jme3-core/src/main/java/com/jme3/animation/Bone.java | 2 +- jme3-core/src/main/java/com/jme3/animation/BoneTrack.java | 2 +- jme3-core/src/main/java/com/jme3/animation/EffectTrack.java | 4 ++-- jme3-core/src/main/java/com/jme3/animation/Pose.java | 4 ++-- jme3-core/src/main/java/com/jme3/animation/PoseTrack.java | 6 +++--- jme3-core/src/main/java/com/jme3/animation/Skeleton.java | 2 +- .../src/main/java/com/jme3/animation/SkeletonControl.java | 2 +- jme3-core/src/main/java/com/jme3/cinematic/Cinematic.java | 2 +- .../main/java/com/jme3/cinematic/events/AnimationEvent.java | 4 ++-- .../src/main/java/com/jme3/effect/ParticleEmitter.java | 2 +- jme3-core/src/main/java/com/jme3/light/LightList.java | 6 +++--- jme3-core/src/main/java/com/jme3/material/MatParam.java | 4 ++-- .../src/main/java/com/jme3/material/MatParamOverride.java | 4 ++-- jme3-core/src/main/java/com/jme3/material/MaterialDef.java | 2 +- jme3-core/src/main/java/com/jme3/material/TechniqueDef.java | 2 +- .../src/main/java/com/jme3/post/FilterPostProcessor.java | 2 +- jme3-core/src/main/java/com/jme3/scene/CameraNode.java | 4 ++-- jme3-core/src/main/java/com/jme3/scene/LightNode.java | 4 ++-- jme3-core/src/main/java/com/jme3/scene/VertexBuffer.java | 4 ++-- jme3-core/src/main/java/com/jme3/scene/debug/Arrow.java | 4 ++-- .../main/java/com/jme3/scene/debug/custom/JointShape.java | 4 ++-- .../java/com/jme3/scene/instancing/InstancedGeometry.java | 4 ++-- jme3-core/src/main/java/com/jme3/scene/shape/Box.java | 4 ++-- jme3-core/src/main/java/com/jme3/scene/shape/Curve.java | 4 ++-- jme3-core/src/main/java/com/jme3/scene/shape/Cylinder.java | 6 +++--- jme3-core/src/main/java/com/jme3/scene/shape/Dome.java | 2 +- jme3-core/src/main/java/com/jme3/scene/shape/Quad.java | 4 ++-- jme3-core/src/main/java/com/jme3/scene/shape/Sphere.java | 4 ++-- jme3-core/src/main/java/com/jme3/scene/shape/StripBox.java | 4 ++-- .../com/jme3/shadow/DirectionalLightShadowRenderer.java | 2 +- .../main/java/com/jme3/shadow/PointLightShadowFilter.java | 4 ++-- .../main/java/com/jme3/shadow/PointLightShadowRenderer.java | 2 +- .../src/main/java/com/jme3/shadow/PssmShadowFilter.java | 2 +- .../main/java/com/jme3/shadow/SpotLightShadowFilter.java | 4 ++-- .../main/java/com/jme3/shadow/SpotLightShadowRenderer.java | 2 +- jme3-core/src/main/java/com/jme3/ui/Picture.java | 4 ++-- 42 files changed, 68 insertions(+), 68 deletions(-) diff --git a/jme3-core/src/main/java/com/jme3/anim/AnimClip.java b/jme3-core/src/main/java/com/jme3/anim/AnimClip.java index be29e2105..eb00f8c43 100644 --- a/jme3-core/src/main/java/com/jme3/anim/AnimClip.java +++ b/jme3-core/src/main/java/com/jme3/anim/AnimClip.java @@ -16,7 +16,7 @@ public class AnimClip implements JmeCloneable, Savable { private AnimTrack[] tracks; - public AnimClip() { + protected AnimClip() { } public AnimClip(String name) { diff --git a/jme3-core/src/main/java/com/jme3/anim/Armature.java b/jme3-core/src/main/java/com/jme3/anim/Armature.java index 361603b9d..244370254 100644 --- a/jme3-core/src/main/java/com/jme3/anim/Armature.java +++ b/jme3-core/src/main/java/com/jme3/anim/Armature.java @@ -28,7 +28,7 @@ public class Armature implements JmeCloneable, Savable { /** * Serialization only */ - public Armature() { + protected Armature() { } /** diff --git a/jme3-core/src/main/java/com/jme3/anim/MorphTrack.java b/jme3-core/src/main/java/com/jme3/anim/MorphTrack.java index a72456c72..4ae14dd55 100644 --- a/jme3-core/src/main/java/com/jme3/anim/MorphTrack.java +++ b/jme3-core/src/main/java/com/jme3/anim/MorphTrack.java @@ -59,7 +59,7 @@ public class MorphTrack implements AnimTrack { /** * Serialization-only. Do not use. */ - public MorphTrack() { + protected MorphTrack() { } /** diff --git a/jme3-core/src/main/java/com/jme3/anim/SkinningControl.java b/jme3-core/src/main/java/com/jme3/anim/SkinningControl.java index 02f480825..154221361 100644 --- a/jme3-core/src/main/java/com/jme3/anim/SkinningControl.java +++ b/jme3-core/src/main/java/com/jme3/anim/SkinningControl.java @@ -115,7 +115,7 @@ public class SkinningControl extends AbstractControl implements Cloneable, JmeCl /** * Serialization only. Do not use. */ - public SkinningControl() { + protected SkinningControl() { } /** diff --git a/jme3-core/src/main/java/com/jme3/animation/Animation.java b/jme3-core/src/main/java/com/jme3/animation/Animation.java index fe0ac8ce4..6e899c5fc 100644 --- a/jme3-core/src/main/java/com/jme3/animation/Animation.java +++ b/jme3-core/src/main/java/com/jme3/animation/Animation.java @@ -65,7 +65,7 @@ public class Animation implements Savable, Cloneable, JmeCloneable { /** * Serialization-only. Do not use. */ - public Animation() { + protected Animation() { } /** diff --git a/jme3-core/src/main/java/com/jme3/animation/AudioTrack.java b/jme3-core/src/main/java/com/jme3/animation/AudioTrack.java index 1f9df35e6..e511cc9d9 100644 --- a/jme3-core/src/main/java/com/jme3/animation/AudioTrack.java +++ b/jme3-core/src/main/java/com/jme3/animation/AudioTrack.java @@ -82,9 +82,9 @@ public class AudioTrack implements ClonableTrack { } /** - * default constructor for serialization only + * constructor for serialization only */ - public AudioTrack() { + protected AudioTrack() { } /** diff --git a/jme3-core/src/main/java/com/jme3/animation/Bone.java b/jme3-core/src/main/java/com/jme3/animation/Bone.java index 6c99e5b99..a171002fe 100644 --- a/jme3-core/src/main/java/com/jme3/animation/Bone.java +++ b/jme3-core/src/main/java/com/jme3/animation/Bone.java @@ -176,7 +176,7 @@ public final class Bone implements Savable, JmeCloneable { /** * Serialization only. Do not use. */ - public Bone() { + protected Bone() { } @Override diff --git a/jme3-core/src/main/java/com/jme3/animation/BoneTrack.java b/jme3-core/src/main/java/com/jme3/animation/BoneTrack.java index 3d613984c..d12f004de 100644 --- a/jme3-core/src/main/java/com/jme3/animation/BoneTrack.java +++ b/jme3-core/src/main/java/com/jme3/animation/BoneTrack.java @@ -65,7 +65,7 @@ public final class BoneTrack implements JmeCloneable, Track { /** * Serialization-only. Do not use. */ - public BoneTrack() { + protected BoneTrack() { } /** diff --git a/jme3-core/src/main/java/com/jme3/animation/EffectTrack.java b/jme3-core/src/main/java/com/jme3/animation/EffectTrack.java index 597237d24..278568c3f 100644 --- a/jme3-core/src/main/java/com/jme3/animation/EffectTrack.java +++ b/jme3-core/src/main/java/com/jme3/animation/EffectTrack.java @@ -144,9 +144,9 @@ public class EffectTrack implements ClonableTrack { } /** - * default constructor only for serialization + * constructor only for serialization */ - public EffectTrack() { + protected EffectTrack() { } /** diff --git a/jme3-core/src/main/java/com/jme3/animation/Pose.java b/jme3-core/src/main/java/com/jme3/animation/Pose.java index f5d0e305a..4a0f659c8 100644 --- a/jme3-core/src/main/java/com/jme3/animation/Pose.java +++ b/jme3-core/src/main/java/com/jme3/animation/Pose.java @@ -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() { } diff --git a/jme3-core/src/main/java/com/jme3/animation/PoseTrack.java b/jme3-core/src/main/java/com/jme3/animation/PoseTrack.java index 73ad14254..09817c5ea 100644 --- a/jme3-core/src/main/java/com/jme3/animation/PoseTrack.java +++ b/jme3-core/src/main/java/com/jme3/animation/PoseTrack.java @@ -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() { } diff --git a/jme3-core/src/main/java/com/jme3/animation/Skeleton.java b/jme3-core/src/main/java/com/jme3/animation/Skeleton.java index e29ffb3cc..33c81e8f0 100644 --- a/jme3-core/src/main/java/com/jme3/animation/Skeleton.java +++ b/jme3-core/src/main/java/com/jme3/animation/Skeleton.java @@ -121,7 +121,7 @@ public final class Skeleton implements Savable, JmeCloneable { /** * Serialization only. Do not use. */ - public Skeleton() { + protected Skeleton() { } @Override diff --git a/jme3-core/src/main/java/com/jme3/animation/SkeletonControl.java b/jme3-core/src/main/java/com/jme3/animation/SkeletonControl.java index 2f54771db..31c437279 100644 --- a/jme3-core/src/main/java/com/jme3/animation/SkeletonControl.java +++ b/jme3-core/src/main/java/com/jme3/animation/SkeletonControl.java @@ -113,7 +113,7 @@ public class SkeletonControl extends AbstractControl implements Cloneable, JmeCl /** * Serialization only. Do not use. */ - public SkeletonControl() { + protected SkeletonControl() { } private void switchToHardware() { diff --git a/jme3-core/src/main/java/com/jme3/cinematic/Cinematic.java b/jme3-core/src/main/java/com/jme3/cinematic/Cinematic.java index 3bcbc17a7..73db01d47 100644 --- a/jme3-core/src/main/java/com/jme3/cinematic/Cinematic.java +++ b/jme3-core/src/main/java/com/jme3/cinematic/Cinematic.java @@ -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(); } diff --git a/jme3-core/src/main/java/com/jme3/cinematic/events/AnimationEvent.java b/jme3-core/src/main/java/com/jme3/cinematic/events/AnimationEvent.java index 9616ebca5..cc409b8ec 100644 --- a/jme3-core/src/main/java/com/jme3/cinematic/events/AnimationEvent.java +++ b/jme3-core/src/main/java/com/jme3/cinematic/events/AnimationEvent.java @@ -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(); } diff --git a/jme3-core/src/main/java/com/jme3/effect/ParticleEmitter.java b/jme3-core/src/main/java/com/jme3/effect/ParticleEmitter.java index 19268b817..ea0a2a3b4 100644 --- a/jme3-core/src/main/java/com/jme3/effect/ParticleEmitter.java +++ b/jme3-core/src/main/java/com/jme3/effect/ParticleEmitter.java @@ -297,7 +297,7 @@ public class ParticleEmitter extends Geometry { /** * For serialization only. Do not use. */ - public ParticleEmitter() { + protected ParticleEmitter() { super(); setBatchHint(BatchHint.Never); } diff --git a/jme3-core/src/main/java/com/jme3/light/LightList.java b/jme3-core/src/main/java/com/jme3/light/LightList.java index dfeb65405..cdb96e3a5 100644 --- a/jme3-core/src/main/java/com/jme3/light/LightList.java +++ b/jme3-core/src/main/java/com/jme3/light/LightList.java @@ -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, Savable, Cloneable, Jme }; /** - * Default constructor for serialization. Do not use + * constructor for serialization. Do not use */ - public LightList(){ + protected LightList(){ } /** diff --git a/jme3-core/src/main/java/com/jme3/material/MatParam.java b/jme3-core/src/main/java/com/jme3/material/MatParam.java index 06bb1c8c8..f274d9340 100644 --- a/jme3-core/src/main/java/com/jme3/material/MatParam.java +++ b/jme3-core/src/main/java/com/jme3/material/MatParam.java @@ -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() { } /** diff --git a/jme3-core/src/main/java/com/jme3/material/MatParamOverride.java b/jme3-core/src/main/java/com/jme3/material/MatParamOverride.java index 1b4aad480..7b41f6f06 100644 --- a/jme3-core/src/main/java/com/jme3/material/MatParamOverride.java +++ b/jme3-core/src/main/java/com/jme3/material/MatParamOverride.java @@ -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(); } diff --git a/jme3-core/src/main/java/com/jme3/material/MaterialDef.java b/jme3-core/src/main/java/com/jme3/material/MaterialDef.java index 59e84db62..9cbd482e0 100644 --- a/jme3-core/src/main/java/com/jme3/material/MaterialDef.java +++ b/jme3-core/src/main/java/com/jme3/material/MaterialDef.java @@ -59,7 +59,7 @@ public class MaterialDef{ /** * Serialization only. Do not use. */ - public MaterialDef(){ + protected MaterialDef(){ } /** diff --git a/jme3-core/src/main/java/com/jme3/material/TechniqueDef.java b/jme3-core/src/main/java/com/jme3/material/TechniqueDef.java index cd0c1da86..913fe59ce 100644 --- a/jme3-core/src/main/java/com/jme3/material/TechniqueDef.java +++ b/jme3-core/src/main/java/com/jme3/material/TechniqueDef.java @@ -181,7 +181,7 @@ public class TechniqueDef implements Savable, Cloneable { /** * Serialization only. Do not use. */ - public TechniqueDef() { + protected TechniqueDef() { shaderLanguages = new EnumMap(Shader.ShaderType.class); shaderNames = new EnumMap(Shader.ShaderType.class); defineNames = new ArrayList(); diff --git a/jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java b/jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java index d3580ccab..b5db4d0f4 100644 --- a/jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java +++ b/jme3-core/src/main/java/com/jme3/post/FilterPostProcessor.java @@ -99,7 +99,7 @@ public class FilterPostProcessor implements SceneProcessor, Savable { * Don't use this constructor, use {@link #FilterPostProcessor(AssetManager assetManager)}
* This constructor is used for serialization only */ - public FilterPostProcessor() { + protected FilterPostProcessor() { } /** diff --git a/jme3-core/src/main/java/com/jme3/scene/CameraNode.java b/jme3-core/src/main/java/com/jme3/scene/CameraNode.java index 220686f56..ab8a16e54 100644 --- a/jme3-core/src/main/java/com/jme3/scene/CameraNode.java +++ b/jme3-core/src/main/java/com/jme3/scene/CameraNode.java @@ -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(); } diff --git a/jme3-core/src/main/java/com/jme3/scene/LightNode.java b/jme3-core/src/main/java/com/jme3/scene/LightNode.java index a64250c50..d03304176 100644 --- a/jme3-core/src/main/java/com/jme3/scene/LightNode.java +++ b/jme3-core/src/main/java/com/jme3/scene/LightNode.java @@ -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) { diff --git a/jme3-core/src/main/java/com/jme3/scene/VertexBuffer.java b/jme3-core/src/main/java/com/jme3/scene/VertexBuffer.java index bb5d70afb..7b0b4146c 100644 --- a/jme3-core/src/main/java/com/jme3/scene/VertexBuffer.java +++ b/jme3-core/src/main/java/com/jme3/scene/VertexBuffer.java @@ -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(); } diff --git a/jme3-core/src/main/java/com/jme3/scene/debug/Arrow.java b/jme3-core/src/main/java/com/jme3/scene/debug/Arrow.java index 5f6425823..24efb597e 100644 --- a/jme3-core/src/main/java/com/jme3/scene/debug/Arrow.java +++ b/jme3-core/src/main/java/com/jme3/scene/debug/Arrow.java @@ -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() { } /** diff --git a/jme3-core/src/main/java/com/jme3/scene/debug/custom/JointShape.java b/jme3-core/src/main/java/com/jme3/scene/debug/custom/JointShape.java index b854095b9..266607eb3 100644 --- a/jme3-core/src/main/java/com/jme3/scene/debug/custom/JointShape.java +++ b/jme3-core/src/main/java/com/jme3/scene/debug/custom/JointShape.java @@ -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, diff --git a/jme3-core/src/main/java/com/jme3/scene/instancing/InstancedGeometry.java b/jme3-core/src/main/java/com/jme3/scene/instancing/InstancedGeometry.java index 91522acbe..6749005be 100644 --- a/jme3-core/src/main/java/com/jme3/scene/instancing/InstancedGeometry.java +++ b/jme3-core/src/main/java/com/jme3/scene/instancing/InstancedGeometry.java @@ -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); diff --git a/jme3-core/src/main/java/com/jme3/scene/shape/Box.java b/jme3-core/src/main/java/com/jme3/scene/shape/Box.java index 15b25d24b..a36af31db 100644 --- a/jme3-core/src/main/java/com/jme3/scene/shape/Box.java +++ b/jme3-core/src/main/java/com/jme3/scene/shape/Box.java @@ -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(); } diff --git a/jme3-core/src/main/java/com/jme3/scene/shape/Curve.java b/jme3-core/src/main/java/com/jme3/scene/shape/Curve.java index d6eb8dc20..063bbab11 100644 --- a/jme3-core/src/main/java/com/jme3/scene/shape/Curve.java +++ b/jme3-core/src/main/java/com/jme3/scene/shape/Curve.java @@ -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() { } /** diff --git a/jme3-core/src/main/java/com/jme3/scene/shape/Cylinder.java b/jme3-core/src/main/java/com/jme3/scene/shape/Cylinder.java index a3dbadbf9..01d38a495 100644 --- a/jme3-core/src/main/java/com/jme3/scene/shape/Cylinder.java +++ b/jme3-core/src/main/java/com/jme3/scene/shape/Cylinder.java @@ -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() { } /** diff --git a/jme3-core/src/main/java/com/jme3/scene/shape/Dome.java b/jme3-core/src/main/java/com/jme3/scene/shape/Dome.java index c3c458374..6c44409a8 100644 --- a/jme3-core/src/main/java/com/jme3/scene/shape/Dome.java +++ b/jme3-core/src/main/java/com/jme3/scene/shape/Dome.java @@ -66,7 +66,7 @@ public class Dome extends Mesh { /** * Serialization only. Do not use. */ - public Dome() { + protected Dome() { } /** diff --git a/jme3-core/src/main/java/com/jme3/scene/shape/Quad.java b/jme3-core/src/main/java/com/jme3/scene/shape/Quad.java index 6abbb53b4..c5a4d0e13 100644 --- a/jme3-core/src/main/java/com/jme3/scene/shape/Quad.java +++ b/jme3-core/src/main/java/com/jme3/scene/shape/Quad.java @@ -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(){ } /** diff --git a/jme3-core/src/main/java/com/jme3/scene/shape/Sphere.java b/jme3-core/src/main/java/com/jme3/scene/shape/Sphere.java index e02e7221b..a9deee367 100644 --- a/jme3-core/src/main/java/com/jme3/scene/shape/Sphere.java +++ b/jme3-core/src/main/java/com/jme3/scene/shape/Sphere.java @@ -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() { } /** diff --git a/jme3-core/src/main/java/com/jme3/scene/shape/StripBox.java b/jme3-core/src/main/java/com/jme3/scene/shape/StripBox.java index 5ac256e93..b76168b75 100644 --- a/jme3-core/src/main/java/com/jme3/scene/shape/StripBox.java +++ b/jme3-core/src/main/java/com/jme3/scene/shape/StripBox.java @@ -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(); } diff --git a/jme3-core/src/main/java/com/jme3/shadow/DirectionalLightShadowRenderer.java b/jme3-core/src/main/java/com/jme3/shadow/DirectionalLightShadowRenderer.java index 252891186..6e5da5dd3 100644 --- a/jme3-core/src/main/java/com/jme3/shadow/DirectionalLightShadowRenderer.java +++ b/jme3-core/src/main/java/com/jme3/shadow/DirectionalLightShadowRenderer.java @@ -77,7 +77,7 @@ public class DirectionalLightShadowRenderer extends AbstractShadowRenderer { * DirectionalLightShadowRenderer#DirectionalLightShadowRenderer(AssetManager * assetManager, int shadowMapSize, int nbSplits) */ - public DirectionalLightShadowRenderer() { + protected DirectionalLightShadowRenderer() { super(); } diff --git a/jme3-core/src/main/java/com/jme3/shadow/PointLightShadowFilter.java b/jme3-core/src/main/java/com/jme3/shadow/PointLightShadowFilter.java index 1e26772dd..a2adb2cf4 100644 --- a/jme3-core/src/main/java/com/jme3/shadow/PointLightShadowFilter.java +++ b/jme3-core/src/main/java/com/jme3/shadow/PointLightShadowFilter.java @@ -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